/bin/sh: xgettext: command not found !!! ERROR in x11-libs/libXpm-3.5.7: !!! In x-modular_src_make at line 4667 !!! emake failed
Is libXpm the only X package you've hit this with?
Sorry, I installed gettext after encountering this error so I don't know if it triggers with other packages as well.
OK, someone needs to have a look to see whether gettext is something that autotools always die without.
I am having the same problem. (In reply to comment #1) > Is libXpm the only X package you've hit this with? Yes. Running a ~x86 system without sys-devel/gettext installed, libXpm is the only package suffering from this. Solved it rather ugly by adding following lines to libXpm-3.5.7.ebuild: IUSE="nls" added "nls? ( sys-devel/gettext )" to RDEPEND CONFIGURE_OPTIONS="$(use_with nls localedir)" I *think* the error is in line 43 in configure.ac but i'm not familiar enough with autotools to fix it decent. Upstream issue!?
the problem is actually that libXpm treats gettext as xgettext, the gettext function is available on gnu libc systems without further libraries so AC_SEARCH_LIBS[gettext] [intl] SETTRUE SETFALSE will SETTRUE... but xgettext is a binary and not provided by the gnu libc :) therefore it fails when invoking it. i provided a patch that checks for xgettext and if that's available for needed libs to link against. i'm not sure if this is the right way or whatnot but it got the job done here.
Created attachment 140196 [details, diff] libXpm-3.5.7-gettext.patch
Created attachment 140198 [details, diff] libXpm-3.5.7-r1.ebuild.patch
Created attachment 140199 [details, diff] libXpm-3.5.7-r1.ebuild.patch (by making it CVS ebuild, probably cleaner solution)
(In reply to comment #8) > Created an attachment (id=140199) [edit] > libXpm-3.5.7-r1.ebuild.patch (by making it CVS ebuild, probably cleaner > solution) That solution is quite nice, actually.
Just wanted to say that I'm affected by this problem (I don't have gettext and my xorg build aborted at libXpm) and the patches worked for me.
I was rebuilding my complete X installation an also did hit x11-libs/libXpm's build time dependency on gettext: make[2]: Entering directory `/var/tmp/portage/x11-libs/libXpm-3.5.7/work/libXpm-3.5.7/sxpm' i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -I../include -I../include -Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -fno-strict-aliasing -O2 -march=pentium-m -pipe -MT sxpm.o -MD -MP -MF .deps/sxpm.Tpo -c -o sxpm.o sxpm.c sed -e 's|__vendorversion__|"libXpm 3.5.7" "X Version 11"|' -e 's|__xorgversion__|"libXpm 3.5.7" "X Version 11"|' -e 's|__xservername__|Xorg|g' -e 's|__xconfigfile__|xorg.conf|g' -e 's|__projectroot__|/usr|g' -e 's|__apploaddir__||' -e 's|__appmansuffix__|1|g' -e 's|__libmansuffix__|3|g' -e 's|__adminmansuffix__|8|g' -e 's|__miscmansuffix__|7|g' -e 's|__filemansuffix__|5|g' < sxpm.man > sxpm.1 xgettext -c"L10N_Comments" -d sxpm -n ./sxpm.c /bin/sh: xgettext: command not found make[2]: *** [sxpm.po] Error 127 make[2]: *** Waiting for unfinished jobs.... sxpm.c:113: warning: function declaration isn't a prototype sxpm.c:114: warning: function declaration isn't a prototype sxpm.c:115: warning: function declaration isn't a prototype sxpm.c:116: warning: function declaration isn't a prototype sxpm.c:143: warning: function declaration isn't a prototype sxpm.c:582: warning: function declaration isn't a prototype sxpm.c:620: warning: function declaration isn't a prototype sxpm.c:678: warning: function declaration isn't a prototype sxpm.c:725: warning: function declaration isn't a prototype sxpm.c:737: warning: function declaration isn't a prototype mv -f .deps/sxpm.Tpo .deps/sxpm.Po make[2]: Leaving directory `/var/tmp/portage/x11-libs/libXpm-3.5.7/work/libXpm-3.5.7/sxpm' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/x11-libs/libXpm-3.5.7/work/libXpm-3.5.7' make: *** [all] Error 2
*** Bug 219112 has been marked as a duplicate of this bug. ***
i stumbled over this again: make[2]: Entering directory `/opt/gentoo/var/tmp/portage/x11-libs/libXpm-3.5.7/work/libXpm-3.5.7/sxpm' i586-pc-interix6.0-gcc -DHAVE_CONFIG_H -I. -I.. -I../include -I../include -I/opt/gentoo/usr/include -Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -fno-strict-aliasing -MT sxpm.o -MD -MP -MF .deps/sxpm.Tpo -c -o sxpm.o sxpm.c sxpm.c:56:21: error: libintl.h: No such file or directory
whats the status of this? i hit it _again_ :)
The status is that it's one of many low-priority bugs (not really marked as such) with known causes and a reasonable idea of what to do next (Keywords: Inclusion).
*** Bug 236355 has been marked as a duplicate of this bug. ***
Fixed DEPEND in CVS
On a uClibc system the gettext dep breaks and is not always an option. The libXpm package builds and appears to work fine with the simple addition of the nls? ( dep ) Being a no brainer fix, I just pushed it to the tree in 3.5.8 ebuild where the configure script does the right thing now.
Then it needs to be ported over to the x11 overlay otherwise it'll get lost during the next bump. Thanks
Created attachment 217276 [details] build log from failure of x11-libs/libXpm-3.5.8 (In reply to comment #18) > The libXpm package builds and appears to work fine with the simple addition of > the nls? ( dep ) This doesn't seem to quite be true. I'm installing a new system and just stumbled over this - the current ~x86 libXpm (3.5.8) still fails if gettext is not installed. It configures and compiles properly but fails before installing. gettext is not pulled in because I don't have USE=nls enabled. I'm attaching the build log. I was also able to reproduce the failure on a working system via: quickpkg gettext; emerge -C gettext; emerge -v1 x11-libs/libXpm
Created attachment 217330 [details] xgettext: command not found Same here: ... Making all in sxpm make[2]: Entering directory `/var/tmp/portage/x11-libs/libXpm-3.5.8/work/libXpm-3.5.8/sxpm' CC sxpm.o GEN sxpm.1 GEN sxpm.po /bin/sh: xgettext: command not found make[2]: *** [sxpm.po] Error 127 ... My USE doesn’t include nls.
Created attachment 217417 [details, diff] Updated patch fixing configure.ac test for gettext I updated the patch for libXpm-3.5.7, adjusting it for libXpm-3.5.8...
Created attachment 217418 [details, diff] Updated patch for the ebuild to use above patch ...and this is the patch for libXpm-3.5.8.ebuild, to use the above attached patch. It’s just an updated version of patch attachment 140199 [details, diff].
This thing is fixed in 3.5.9 which is only version in main tree. Sorry it took so long, closing.