Undefined SSL symbols when linking against libgnomevfs



Hi,

We're compiling GNOME on SXCE/SPARC using jhbuild with the intention of
joining the GNOME Build Brigade [1]. The biggest blocker at the moment is
libgnomevfs-2.so being linked against libssl, causing undefined symbol
errors when linking binaries linked against libgnomevfs-2.so. For example,
libbonoboui dies like so:

> gcc -g -O2 -o .libs/bonobo-hello hello.o  -L/space/buildbot/prefix/lib ../../bonobo/.libs/libbonoboui-2.so -L/space/buildbot/prefix//lib -L/lib -L/usr/X11/lib -lSM -lICE /space/buildbot/prefix/lib/libgnomecanvas-2.so /space/buildbot/prefix/lib/libgailutil.so -lXext -lXcursor -lXcomposite -lXdamage -lXfixes /space/buildbot/prefix//lib/libart_lgpl_2.so /space/buildbot/prefix/lib/libgnome-2.so /space/buildbot/prefix/lib/libgnomevfs-2.so /space/buildbot/prefix//lib/libesd.so /space/buildbot/prefix//lib/libaudiofile.so -lpopt /space/buildbot/prefix/lib/libbonobo-2.so /space/buildbot/prefix/lib/libbonobo-activation.so /space/buildbot/prefix/lib/libORBitCosNaming-2.so /space/buildbot/prefix/lib/libxml2.so /space/buildbot/prefix/lib/libgconf-2.so /space/buildbot/prefix/lib/libORBit-2.so -lresolv /space/buildbot/prefix/lib/libgthread-2.0.so -lpthread -lthread /space/buildbot/prefix//lib/libdbus-glib-1.so /space/buildbot/prefix//lib/libdbus-1.so -lbsm -lnsl -lsocket /space/buildbot/
prefix/lib/libgtk-x11-2.0.so /space/buildbot/prefix/lib/libgdk-x11-2.0.so /space/buildbot/prefix/lib/libatk-1.0.so /space/buildbot/prefix/lib/libgdk_pixbuf-2.0.so /space/buildbot/prefix/lib/libgio-2.0.so -lmlib /space/buildbot/prefix/lib/libpangocairo-1.0.so /space/buildbot/prefix/lib/libpangoft2-1.0.so /space/buildbot/prefix/lib/libcairo.so /space/buildbot/prefix//lib/libpixman-1.so -lpng12 -lXrender -lX11 -lz /space/buildbot/prefix/lib/libpango-1.0.so -lm /space/buildbot/prefix//lib/libfontconfig.so -lfreetype /space/buildbot/prefix//lib/libexpat.so /space/buildbot/prefix/lib/libgmodule-2.0.so /space/buildbot/prefix/lib/libgobject-2.0.so /space/buildbot/prefix/lib/libglib-2.0.so  -R/space/buildbot/prefix/lib -R/space/buildbot/prefix//lib -R/lib
> Undefined                       first referenced
>  symbol                             in file
> SSL_write                           /space/buildbot/prefix/lib/libgnomevfs-2.so
> SSL_get_error                       /space/buildbot/prefix/lib/libgnomevfs-2.so
[snip]
> ld: fatal: Symbol referencing errors. No output written to .libs/bonobo-hello

This looks like the GNU ld vs Sun ld linker problem mentioned on
http://wikis.sun.com/display/SolarisDeveloper/Issues+when+porting+OpenSource+projects+to+Solaris
and http://bugzilla.gnome.org/show_bug.cgi?id=532093 because libssl.so is in
/usr/sfw/lib and no -L -R options are passed. I thought the way to deal with
this would be to edit gnome-vfs-2.0.pc and add -L/usr/sfw/lib -R/usr/sfw/lib
to Libs, but I checked the gnome-vfs-2.0.pc file from SUNWgnome-vfs-devel
and it doesn't have that in Libs, so I'm not sure what the correct solution
is, and how compiling against /usr/lib/libgnomevfs-2.so works.

[1] http://live.gnome.org/BuildBrigade

-- 
James Andrewartha


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