Building gtk+ from CVS src
- From: "Robert M. Fuhrer" <rmf asgard cs columbia edu>
- To: gnome-list gnome org
- Subject: Building gtk+ from CVS src
- Date: Sun, 11 Oct 1998 01:17:21 -0400
I'm having problems with the gtk+ build, but only for the test executables.
In particular, I get undefined refs in the link, for things in glib. I've
grabbed glib from CVS, and it built and installed fine (after which I edited
/etc/ld.so.conf and ran ldconfig). I've installed in /opt/gnome.
nm'ing /opt/gnome/lib/libglib.so shows that the symbols that the link is
trying to find are in fact in there, and the link command looks right.
What am I missing?
$ make
[... build of gtk and gdk libs goes fine ...]
make[2]: Entering directory `/usr/src/GNOME/src/gtk+/gtk'
/bin/sh ../libtool --mode=link gcc -g -O2 -DGTK_NO_CHECK_CASTS -Wall -DUSE_XIM -o testgtk testgtk.o libgtk.la ../gdk/libgdk.la -L/usr/X11R6.3/lib -lXext -lX11 -L/opt/gnome/lib -rdynamic -lgmodule -lglib -ldl -lm
gcc -g -O2 -DGTK_NO_CHECK_CASTS -Wall -DUSE_XIM -o .libs/testgtk testgtk.o -Wl,--rpath -Wl,/opt/gnome/lib .libs/libgtk.so -Wl,--rpath -Wl,/opt/gnome/lib ../gdk/.libs/libgdk.so -L/usr/X11R6.3/lib -lXext -lX11 -L/usr/X11R6.3/lib -lXext -lX11 -L/opt/gnome/lib -rdynamic -lgmodule -lglib -ldl -lm
gcc: unrecognized option `-rdynamic'
testgtk.o: In function `create_tree_sample':
/usr/src/GNOME/src/gtk+/gtk/testgtk.c:1189: undefined reference to `g_log'
testgtk.o: In function `gtk_ifactory_cb':
/usr/src/GNOME/src/gtk+/gtk/testgtk.c:2246: undefined reference to `g_log'
testgtk.o: In function `cursor_expose_event':
/usr/src/GNOME/src/gtk+/gtk/testgtk.c:2981: undefined reference to `g_log'
testgtk.o: In function `export_ctree':
/usr/src/GNOME/src/gtk+/gtk/testgtk.c:4346: undefined reference to `g_node_destroy'
make[2]: *** [testgtk] Error 1
make[2]: Leaving directory `/usr/src/GNOME/src/gtk+/gtk'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/src/GNOME/src/gtk+'
make: *** [all-recursive-am] Error 2
Oh, and the link succeeds if I manually specify /opt/gnome/lib/libglib.so on
the link cmd line, like so:
$ gcc -g -O2 -DGTK_NO_CHECK_CASTS -Wall -DUSE_XIM -o .libs/testgtk testgtk.o -Wl,--rpath -Wl,/opt/gnome/lib .libs/libgtk.so -Wl,--rpath -Wl,/opt/gnome/lib ../gdk/.libs/libgdk.so -L/usr/X11R6.3/lib -lXext -lX11 -L/usr/X11R6.3/lib -lXext -lX11 -L/opt/gnome/lib -lgmodule /opt/gnome/lib/libglib.so -ldl -lm
$
I can then run testgtk (by tweaking LD_LIBRARY_PATH, since I haven't yet
installed gtk+).
I'm on MkLinux/PPC (aka Linux 2.0.33), using the following:
$ libtool --version ==> ltmain.sh (GNU libtool) 1.2
$ automake --version ==> automake (GNU automake) 1.3
$ autoconf --version ==> Autoconf version 2.12
$ rpm -q gcc ==> gcc-2.7.2-2M
$ rpm -q glibc ==> glibc-0.961212-1U
-------------------------------------------------------------------------
> "Smooth Jazz" is no jazz at all... <
> Robert M. Fuhrer rmf@cs.columbia.edu <
> Computer. Sci. Dept., Columbia Univ. finger for PGP Key <
-------------------------------------------------------------------------
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]