Problems linking glib with lintintl in OpenSolaris



Hi,

I've trying to compile GNOME HEAD in Nextenta OpenSolaris, which is more
or less Ubuntu Dapper with different kernel, libc and basic
tools. In order to build GNOME HEAD I'm using jhbuild, gcc and friends.

jhbuild installs a newer gettext's version that gettext provided by
Nexenta OpenSolaris; 0.16.0 versus 0.14.5, respectively.

gettext 0.14.5 provides /usr/lib/libintl.so.3.4.3 and gettext 0.16.0
provides ~/.../install/lib/libintl.so.8.0.1

But, when I build glib, it's linked against the libintl.so.3; not
libintl.so.8:

gpoo jenkins:~/code/gnome2$ ldd install/lib/libglib-2.0.so
        libiconv.so.2 =>         /lib/libiconv.so.2
        libc.so.1 =>     /lib/libc.so.1
        libintl.so.3 =>  /lib/libintl.so.3
        libgcc_s.so.1 =>         /lib/libgcc_s.so.1
        libm.so.2 =>     /lib/libm.so.2

But my problems starts when ORBit2 needs to be linked against 
glib, because (looking ORBit2's config.log):

configure:24324: gcc -o conftest -g -O2    conftest.c
-Wl,--export-dynamic -L/export/home/gpoo/code/gnome2/install/lib
-lgobject-2.0 -lgthread-2.0 -lpthread -lthread -lgmodule-2.0 -lglib-2.0
-lintl -liconv   -lsocket  >&5
/usr/bin/ld: warning: libintl.so.3, needed
by /export/home/gpoo/code/gnome2/install/lib/libglib-2.0.so, may
conflict with libintl.so.8
configure:24327: $? = 0
configure:24333: ./conftest
./configure: line 24334: 25584 Segmentation Fault 


So, I would like to get glib linked against gettext (libintl) provided
by jhbuild and not the system.  But it seems, glib's prefers the system
one.

I'll appreciate any hint.

Some extra information:

My jhbuild environment is:
$ env | grep PATH
LD_LIBRARY_PATH=/export/home/gpoo/code/gnome2/install/lib
PATH=/export/home/gpoo/bin:/export/home/gpoo/code/gnome2/install/bin:/export/home/gpoo/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/usr/bin/X11:/usr/games
PYTHONPATH=/export/home/gpoo/code/gnome2/install/lib/python2.4/site-packages
PKG_CONFIG_PATH=/export/home/gpoo/code/gnome2/install/lib/pkgconfig:/export/home/gpoo/code/gnome2/install/share/pkgconfig:/usr/share/pkgconfig:/usr/lib/pkgconfig

I'm running configure (autogen.sh) with the following options:
$ ./configure --enable-maintainer-mode
--prefix /export/home/gpoo/code/gnome2/install --disable-static
--disable-gtk-doc --disable-scrollkeeper --enable-maintainer-mode
--with-libiconv=gnu

glib's config.log tells me, after the core test:
Target: i386-pc-solaris2.11
Configured with: ../src/configure -v --enable-languages=c,c
++,java,f95,objc,treelang --prefix=/usr --enable-shared
--with-system-zlib --libexecdir=/usr/lib --without-included-gettext
--enable-threads=posix --enable-nls --program-suffix=-4.0
--enable-__cxa_atexit --enable-libstdcxx-debug
--enable-java-awt=gtk-default --enable-gtk-cairo
--with-java-home=/usr/java/jre --enable-mpfr --disable-libmudflap
--disable-werror --enable-checking=release i386-pc-solaris2.11
--with-gnu-ld --with-gnu-as --with-ld=/usr/bin/ld --with-as=/usr/bin/as
Thread model: posix
gcc version 4.0.3 (GNU_Solaris 4.0.3-1nexenta6)


-- 
Germ�Po�ama�oncepci� Chile




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