Re: help compiling gnome-vfs-2.18.1



On Sat, 2008-04-05 at 11:51 -0400, John Goulah wrote:

> Hi, thanks for the advice.. I'm still getting an error, probably b/c
> its trying to link both glib in /usr and /usr/local :
> 
> gcc -g -O2 -o .libs/gnome-vfs-daemon dbus-utils.o vfs-daemon.o
> daemon-connection .o -pthread  -L/cuttingedge/lib -L/usr/local/lib
> -L/cuttingedge//lib ../libgnome vfs/.libs/libgnomevfsdaemon-2.a
> /cuttingedge//lib/libhal-storage.so /cuttingedge //lib/libhal.so
> /home/jgoulah/gnome-vfs-2.18.1/libgnomevfs/.libs/libgnomevfs-2.s o
> ../libgnomevfs/.libs/libgnomevfs-2.so /usr/lib/libgconf-2.so
> /usr/lib/libORBit -2.so /usr/lib/libgmodule-2.0.so
> /usr/lib/libgobject-2.0.so /usr/lib/libgthread- 2.0.so
> /usr/lib/libglib-2.0.so -lm /usr/local/lib/libgmodule-2.0.so -ldl
> /usr/lo cal/lib/libgthread-2.0.so -lpthread /usr/lib/libxml2.so
> /usr/local/lib/libdbus-g lib-1.so -lnsl -ldbus-1
> /usr/local/lib/libgobject-2.0.so -lssl -lcrypto /usr/lib
> /libavahi-glib.so /usr/local/lib/libglib-2.0.so
> /usr/lib/libavahi-common.so /usr /lib/libavahi-client.so -lresolv
> -lutil -lrt  -Wl,--rpath -Wl,/cuttingedge//lib
> /home/jgoulah/gnome-vfs-2.18.1/libgnomevfs/.libs/libgnomevfs-2.so:
> undefined ref erence to `g_once_init_leave'
> /home/jgoulah/gnome-vfs-2.18.1/libgnomevfs/.libs/libgnomevfs-2.so:
> undefined ref erence to `g_once_init_enter_impl'
> collect2: ld returned 1 exit status
> 
> I guess what I was looking for was an env var similar to OPENSSL_LIBS,
> LIBXML_LIBS,  etc to explicitly force it but one for glib seems to not
> exist.  Any other ideas on how I can get this to build?

Well, you're linking with avahi and avahi-glib from /usr, which pulls in
the glib in /usr in addition to the one you specified. Also libORBit. I
think it should still work if you've correctly set LD_LIBRARY_PATH to
point to the glib you have installed in /usr/local/lib, but maybe your
best option is to take a look at jhbuild and build the dependencies too:

http://live.gnome.org/Jhbuild

It's not that hard to set up, and it's what most GNOME developers use
themselves.

-- 
Hans Petter



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]