[gtk-server] build problem on lubuntu

  • From: Adam Jensen <hanzer@xxxxxxxxxx>
  • To: gtk-server@xxxxxxxxxxxxx
  • Date: Fri, 19 Jun 2015 11:29:54 -0400

Linux helix 3.19.0-21-generic #21-Ubuntu SMP Sun Jun 14 18:34:06 UTC 2015 i686
i686 i686 GNU/Linux

gtk-server-2.3.1-sr.tar.gz


$ ./configure --prefix=$HOME/local --with-gtk2 --with-ssl

---------------------------------
Configured options for GTK-server
---------------------------------

- Use GTK 1.x backend: NO
- Use GTK 2.x backend: YES
- Use XForms backend: NO
- Use console backend: NO
- Library support for Scriptbasic: NO
- Library support for S-Lang: NO
- Library support for Kornshell93: NO
- Statically link: NO
- Support for SSL: YES

The GTK-server will be built with gcc as a standalone executable using the
Foreign Function Interface (FFI).

Now run 'make' and 'make install' to build and install the GTK-server.

$ make

[snip]

gcc -o gtk-server gtk-server.o -export-dynamic -lffi -lgtk-x11-2.0
-lgdk-x11-2.0 -lpangocairo-1.0 -latk-1.0 -lcairo -lgdk_pixbuf-2.0 -lgio-2.0
-lpangoft2-1.0 -lpango-1.0 -lgobject-2.0 -lglib-2.0 -lfontconfig -lfreetype
-lcrypto -lssl
/usr/bin/ld: gtk-server.o: undefined reference to symbol 'dlopen@@GLIBC_2.1'
/lib/i386-linux-gnu/libdl.so.2: error adding symbols: DSO missing from command
line
collect2: error: ld returned 1 exit status
Makefile:23: recipe for target 'gtk-server' failed
make: *** [gtk-server] Error 1


Also:

$ LIBS=-ldl make

gcc -o gtk-server gtk-server.o -export-dynamic -lffi -lgtk-x11-2.0
-lgdk-x11-2.0 -lpangocairo-1.0 -latk-1.0 -lcairo -lgdk_pixbuf-2.0 -lgio-2.0
-lpangoft2-1.0 -lpango-1.0 -lgobject-2.0 -lglib-2.0 -lfontconfig -lfreetype
-lcrypto -lssl
/usr/bin/ld: gtk-server.o: undefined reference to symbol 'dlopen@@GLIBC_2.1'
/lib/i386-linux-gnu/libdl.so.2: error adding symbols: DSO missing from command
line
collect2: error: ld returned 1 exit status
Makefile:23: recipe for target 'gtk-server' failed
make: *** [gtk-server] Error 1

Other related posts: