[OmniOS-discuss] gettext 0.18.3.1 on OmniOS: libgomp.so.1 not found
Richard PALO
richard.palo at free.fr
Sun Sep 22 06:24:17 UTC 2013
Le 22/09/13 00:21, Ryo ONODERA a écrit :
> Hi,
>
> I build gettext-0.18.3.1 from tarball.
> Build finished without error, but msgfmt command cannot start with
> following message.
> I have libgomp.so.1 in /opt/gcc-4.7.2 and /opt/gcc-4.7.2/amd64.
>
> How to fix this failure?
> (You can ignore libgettextsrc-0.18.3.so and libgettextlib-0.18.3.so part
> in this case, it is treated in wrapper shell script, src/msgfmt).
>
> $ cd gettext-0.18.3.1
> $ PATH=/opt/gcc-4.7.2/bin:${PATH} ./configure
> $ PATH=/opt/gcc-4.7.2/bin:${PATH} gmake
> $ ./gettext-tools/src/msgfmt
> ld.so.1: msgfmt: fatal: libgomp.so.1: open failed: No such file or directory
> $ ldd ./gettext-tools/src/.libs/msgfmt
> libgettextsrc-0.18.3.so => (file not found)
> libgettextlib-0.18.3.so => (file not found)
> libsec.so.1 => /lib/libsec.so.1
> libxml2.so.2 => /usr/lib/libxml2.so.2
> libcurses.so.1 => /lib/libcurses.so.1
> libc.so.1 => /lib/libc.so.1
> libgomp.so.1 => (file not found)
> libpthread.so.1 => /lib/libpthread.so.1
> libavl.so.1 => /lib/libavl.so.1
> libidmap.so.1 => /usr/lib/libidmap.so.1
> libz.so => /usr/lib/libz.so
> liblzma.so.5 => /usr/lib/liblzma.so.5
> libm.so.2 => /lib/libm.so.2
> libsocket.so.1 => /lib/libsocket.so.1
> libnsl.so.1 => /lib/libnsl.so.1
> libnvpair.so.1 => /lib/libnvpair.so.1
> libuutil.so.1 => /lib/libuutil.so.1
> libmp.so.2 => /lib/libmp.so.2
> libmd.so.1 => /lib/libmd.so.1
>
> --
> Ryo ONODERA // ryo_on at yk.rim.or.jp
> PGP fingerprint = 82A2 DC91 76E0 A10A 8ABB FD1B F404 27FA C7D1 15F3
>
Ryo, on omnios (and OI) the gcc-4-runtime package only provide
libgcc_s.so and no other runtime libraries like OpenMP (libgomp.so).
You should be able to find them in /opt/gcc-4.7.2/lib${LIBABISUFFIX}.
You can either symlink individually to /usr/lib (and /usr/lib/amd64) or,
if you are bold you can use crle to add this gccbase location ('crle'
for x86, 'crle -64' for x86_64).
BTW, for pkgsrc bootstrapping:
env CC=/opt/gcc-4.7.2/bin/gcc GCCBASE=/opt/gcc-4.7.2 bootstrap ...
once you bootstrap, build gcc and rebuild libtool after setting
PREFER_PKGSRC=yes plus a few other packages initially tied to the host
libgcc_s.so, you won't need the symlinks or the crle workaround anymore.
More information about the OmniOS-discuss
mailing list