gtk+-2.0.6 not compiling
- From: "Amir 'CG' Caspi" <cepheid socrates Berkeley EDU>
- To: gtk-list gnome org
- Subject: gtk+-2.0.6 not compiling
- Date: Wed, 23 Oct 2002 14:03:48 -0700 (PDT)
Hi all...
I was wondering whether anyone might be able to help me with a
problem. I've been trying to build gtk+-2.0.6 and am getting stuck when
testgtk.o fails to link properly to another gtk+ library. Specifically,
I'm getting an "undefined symbol" error, although the symbols though be
defined perfectly well in one of the other libraries.
The build command and the error are included below.
Additionally, I was using libpng-1.2.5 and noticed that EVEN THOUGH I had
added /usr/local/libpng-1.2.5/lib/pkgconfig to my PKG_CONFIG_PATH, the
configure script of gtk+-2.0.6 was NOT calling pkg-config on that package!
This was causing me other build problems that I managed to fix by manually
configuring the CFLAGS and LDFLAGS to include libpng12 and libz, but
shouldn't have the configure script automatically done this for me? I
checked the script and it *looks* like it checks for the libpng pkgconfig,
but obviously this wasn't happening despite my various efforts.
If anyone can tell me why this wasn't happening automatically, I'd
be most grateful. =) As I mentioned, I had added the proper path to my
PKG_CONFIG_PATH, and just to be sure I also added
/usr/local/libpng-1.2.5/lib to LD_LIBRARY_PATH... neither one helped.
Any help on the build error above would be even more appreciated... I know
I'm probably missing something simple, but after this long, I just can't
figure out what it is and need a fresh perspective. =)
Thanks!
--- Amir
Build error:
make[2]: Entering directory `/tmp/cepheid/gtk+-2.0.6/tests'
/bin/bash ../libtool --mode=link gcc -I/tmp/cepheid/local/libpng/include/libpng12 -I/usr/local/jpeg/include -I/tmp/cepheid/local/libpng/include -I/tmp/cepheid/local/tiff/include -I/tmp/cepheid/local/zlib/include -Wall -lpng12 -lz -lm -o testgtk prop-editor.o testgtk.o ../gdk-pixbuf/libgdk_pixbuf-2.0.la ../gdk/libgdk-x11-2.0.la ../gtk/libgtk-x11-2.0.la
gcc -I/tmp/cepheid/local/libpng/include/libpng12 -I/usr/local/jpeg/include -I/tmp/cepheid/local/libpng/include -I/tmp/cepheid/local/tiff/include -I/tmp/cepheid/local/zlib/include -Wall -o .libs/testgtk prop-editor.o testgtk.o ../gdk-pixbuf/.libs/libgdk_pixbuf-2.0.so -L/tmp/cepheid/local/glib-2.0.6/lib ../gdk/.libs/libgdk-x11-2.0.so -L/usr/openwin/lib -L/tmp/cepheid/local/pango-1.0.5/lib ../gtk/.libs/libgtk-x11-2.0.so /tmp/cepheid/gtk+-2.0.6/gdk/.libs/libgdk-x11-2.0.so /tmp/cepheid/gtk+-2.0.6/gdk-pixbuf/.libs/libgdk_pixbuf-2.0.so -lXext -lX11 -lsocket -lnsl -lpng12 -lz -L/tmp/cepheid/local/atk-1.0.3/lib /tmp/cepheid/local/pango-1.0.5/lib/libpangox-1.0.so /tmp/cepheid/local/pango-1.0.5/lib/libpango-1.0.so /tmp/cepheid/local/atk-1.0.3/lib/libatk-1.0.so /tmp/cepheid/local/glib-2.0.6/lib/libgobject-2.0.so /tmp/cepheid/local/glib-2.0.6/lib/libgmodule-2.0.so -ldl /tmp/cepheid/local/glib-2.0.6/lib/libglib-2.0.so -lm -R/tmp/cepheid/local/gtk+-2.0.6/lib -R/tmp/cepheid/local/pango-1.0.5/lib -R/tmp/cepheid/local/atk-1.0.3/lib -R/tmp/cepheid/local/glib-2.0.6/lib
ld: warning: file /tmp/cepheid/gtk+-2.0.6/gdk/.libs/libgdk-x11-2.0.so: linked to ../gdk/.libs/libgdk-x11-2.0.so: attempted multiple inclusion of file
ld: warning: file /tmp/cepheid/gtk+-2.0.6/gdk-pixbuf/.libs/libgdk_pixbuf-2.0.so: linked to ../gdk-pixbuf/.libs/libgdk_pixbuf-2.0.so: attempted multiple inclusion of file
Undefined first referenced
symbol in file
gtk_minor_version testgtk.o
gtk_micro_version testgtk.o
gtk_major_version testgtk.o
ld: fatal: Symbol referencing errors. No output written to .libs/testgtk
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]