[OmniOS-discuss] pkgsrc-current OmniOS 170cea2/i386 2015-07-09 21:35

Sevan / Venture37 venture37 at gmail.com
Tue Sep 1 11:02:15 UTC 2015


> On 27 July 2015 at 15:26, Dan McDonald <danmcd at omniti.com> wrote:
>> Where is libgomp pulled from in gettext?  I checked all the
>> binaries from the gnu-gettext package, and none seek libgomp,
>> unless they do so by ldload().

I managed to look into this again over the bank holiday.
It turns out the issue is actually in the pkgsrc devel/gettext-tools
package. As all the necessary bits for OpenMP are present in the system
supplied compiler, gettext links against libgomp by default in its test
cases but can't run the binaries as /opt/gcc-4.8.1/lib is not in the
linkers search path.

The reason this is not an issue on your bundled version of gettext is
because you disable OpenMP support.

The following change resolves the issue in the pkgsrc tree (it has not
yet been committed to the tree yet, I'm not sure if it's a good idea to
just switch it off or whether it needs something more intricate).

Index: Makefile
===================================================================
RCS file: /cvsroot/pkgsrc/devel/gettext-tools/Makefile,v
retrieving revision 1.29
diff -u -r1.29 Makefile
--- Makefile    14 Jun 2015 21:39:20 -0000      1.29
+++ Makefile    1 Sep 2015 10:02:36 -0000
@@ -18,6 +18,7 @@
 CONFIGURE_ARGS+=       --with-xz
 CONFIGURE_ARGS+=       --without-included-gettext
 CONFIGURE_ARGS+=       --without-emacs
+CONFIGURE_ARGS+=       --disable-openmp
 CONFIGURE_ENV+=                GCJ= ac_cv_prog_GCJ= ac_cv_prog_JAR=
 CONFIGURE_ENV+=                HAVE_GCJ_IN_PATH=
 CONFIGURE_ENV+=                HAVE_JAVAC_IN_PATH=


It wasn't until I moved the OS binaries out of the search path that it
became apparent the issues were with the generated binaries. I
misunderstood the configure stage output and assumed that the error was
on the previously logged steps.

checking for gmsgfmt... /usr/bin/gmsgfmt
ld.so.1: xgettext: fatal: libgomp.so.1: open failed: No such file or
directory
ld.so.1: msgmerge: fatal: libgomp.so.1: open failed: No such file or
directory
ld.so.1: msgfmt: fatal: libgomp.so.1: open failed: No such file or directory
configure: error: GNU gettext tools not found; required for intltool

Hopefully, the necessary change will be in soon to make it in for the
2015Q3 pkgsrc release next month. I'll post an update if anything happens.


Regards



Sevan / Venture37


More information about the OmniOS-discuss mailing list