[OmniOS-discuss] gettext 0.18.3.1 on OmniOS: libgomp.so.1 not found

Chris Nehren cnehren+omnios-discuss at omniti.com
Sun Sep 22 00:28:34 UTC 2013


On Sun, Sep 22, 2013 at 07:21:19 +0900, Ryo ONODERA wrote:
> 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

Sounds like you need to use either -R or -Wl,-rpath on the gcc
command line to tell the linker where to find libgomp.so.1. This
should go in your $LDFLAGS.

-- 
Chris Nehren


More information about the OmniOS-discuss mailing list