This is the mail archive of the guile-gtk@sources.redhat.com mailing list for the Guile project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: guile-gtk-0.19 build error


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]