Laszlo (Laca) Peter napsal(a):
> On Tue, 2007-06-26 at 11:40 +0200, Petr Sobotka wrote:
>
>> Hello,
>>
>> I compiled program with gcc, with SFEgettext installed.
>> The output of program was linked with libgnuintl, which SFEgettext
>> didn't install to /usr/lib, but it's build contain it.
>>
>
> Hmm... so if libgnuintl is not in /usr/lib, where did the build
> find it? How could it link with it?
>
>
For me it's same secret, I really don't know it. I compiled source code
(wesnoth-1.3.4)
and when I try to run it - there was missing library (libgnuintl, which
was in build directory
of SFEgettext). ldd confirms it.
Also only after installation of SFEgettext it compiled and link with
libgnuintl ...
I suspect that in SFEgettext are some header using that library ...
Here is full output of ldd (after I copied library to /usr/lib)
ldd /opt/games/bin/wesnoth-dev
libSDL_image-1.2.so.0 => /usr/lib/libSDL_image-1.2.so.0
libSDL_mixer-1.2.so.0 => /usr/lib/libSDL_mixer-1.2.so.0
libSDL_net-1.2.so.0 => /usr/lib/libSDL_net-1.2.so.0
libSDL-1.2.so.0 => /usr/lib/libSDL-1.2.so.0
libpthread.so.1 => /usr/lib/libpthread.so.1
librt.so.1 => /usr/lib/librt.so.1
libpython2.4.so.1.0 => /usr/lib/libpython2.4.so.1.0
libfreetype.so.6 => /usr/sfw/lib/libfreetype.so.6
libz.so.1 => /usr/lib/libz.so.1
libgnuintl.so.8 => /usr/lib/libgnuintl.so.8
libfribidi.so.0 => /usr/lib/libfribidi.so.0
libX11.so.4 => /usr/lib/libX11.so.4
libstdc++.so.6 => /usr/sfw/lib/libstdc++.so.6
libm.so.2 => /usr/lib/libm.so.2
libgcc_s.so.1 => /usr/sfw/lib/libgcc_s.so.1
libc.so.1 => /usr/lib/libc.so.1
libXext.so.0 => /usr/lib/libXext.so.0
libXrandr.so.2 => /usr/lib/libXrandr.so.2
libsocket.so.1 => /lib/libsocket.so.1
libnsl.so.1 => /lib/libnsl.so.1
libdl.so.1 => /lib/libdl.so.1
libXau.so.6 => /usr/openwin/lib/libXau.so.6
libXrender.so.1 => /usr/X11/lib/libXrender.so.1
libmp.so.2 => /lib/libmp.so.2
libmd.so.1 => /lib/libmd.so.1
libscf.so.1 => /lib/libscf.so.1
libuutil.so.1 => /lib/libuutil.so.1
libgen.so.1 => /lib/libgen.so.1
I think that there could be problem, that it's compiled by gcc ...
(sunCC is still
unable to compile it :-( )
>> Why it's not installed to system, when it's include files do?
>> Is there any reason for this strange behavior?
>>
>
> Actually, you should not need libgnuintl on Solaris, the gettext
> API in libc is (mostly) compatible with GNU gettext, what you
> may need GNU gettext for is the gettext tools, like msgfmt,
> msgmerge, xgettext.
>
> Laca
>
>
I though it, but I wasn't sure about it.
Petr