From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marius Vollmer To: Rick Taube Cc: guile-gtk@sourceware.cygnus.com Subject: Re: guile-gtk-0.19 build error Date: Fri, 20 Apr 2001 18:01:00 -0000 Message-id: <874rvj6vk1.fsf@zagadka.ping.de> References: X-SW-Source: 2001-q2/msg00022.html Rick Taube 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.