Re: gtk+-2.0.6 not compiling



Amir,

I've no idea on the pkgconfig problem, but for the undefined symbols problem
you should check the archives for this list around the dates of the 5th and
25th September (and about 3 days ago, 21st October) where this same problem
was discussed.

For example, start at:

    http://mail.gnome.org/archives/gtk-list/2002-September/msg00023.html

A quick hack to get you going would be to remove the "const" from the
definitions of the undefined symbols in both the headers and source files
(within the library code).

It would be interesting to know what operating system you're using - Solaris
2.8 by any chance?

Richard.


----- Original Message -----
From: "Amir 'CG' Caspi" <cepheid socrates Berkeley EDU>
To: <gtk-list gnome org>
Sent: Wednesday, October 23, 2002 10:03 PM
Subject: gtk+-2.0.6 not compiling


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
cc  -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/gt
k+-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]