This is the mail archive of the
guile-gtk@sources.redhat.com
mailing list for the Guile project.
Re: guile-gtk-0.19 build error
- To: Rick Taube <taube at uiuc dot edu>
- Subject: Re: guile-gtk-0.19 build error
- From: Marius Vollmer <mvo at zagadka dot ping dot de>
- Date: 21 Apr 2001 00:44:14 +0200
- Cc: guile-gtk at sourceware dot cygnus dot com
- References: <v04210100b706602de555@[128.174.103.145]>
Rick Taube <taube@uiuc.edu> writes:
> When I try to build guile-gtk-0.19 (Red Hat 7, Guile 1.4) I get an
> error in the build that I havent been able to figure out. Its dying
> on an unresolved symbol 'scm_master_freelist':
The problem is probably with the link command that libtool produces:
> gcc -g -O2 -o .libs/guile-gtk-1.2 main.o .libs/libguilegtk-1.2.so
> -L/usr/lib -L/usr/X11R6/lib -lgtk -lgdk -lgmodule -lglib -ldl -lXi
^^^^^^^^
> -lXext -lX11 -lm -lm -L/usr/local/lib -lguile -lm -L/usr/lib
^^^^^^^^^^^^^^ ^^^^^^^
> -L/usr/X11R6/lib -lgtk -lgdk -rdynamic -lgmodule -lglib -ldl -lXi
> -lXext -lX11 -lm -lm -Wl,--export-dynamic -Wl,--rpath
> -Wl,/usr/local/lib
Note the subseq "-L/usr/lib -L/usr/local/lib -lguile". This makes the
linker find an old -lguile in /usr/lib, probably, while your real
-lguile is in /usr/local/lib. Right?
A fix would be to run "make LDFLAGS=-L/usr/local/lib". This should
prepend -L/usr/local/lib to the front of linker command, and -lguile
will be found in /usr/local/lib.