Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 119948 - Locale-gettext fails with missing libintl dep
Summary: Locale-gettext fails with missing libintl dep
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High major (vote)
Assignee: Gentoo Perl team
URL:
Whiteboard:
Keywords:
: 145808 (view as bug list)
Depends on:
Blocks:
 
Reported: 2006-01-22 09:23 UTC by Sam Kimbrel
Modified: 2009-10-17 00:41 UTC (History)
8 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sam Kimbrel 2006-01-22 09:23:36 UTC
Locale-gettext fails (in the middle of emerge -e system) with the following:
 * Using ExtUtils::MakeMaker
checking for gettext... no
checking for gettext in -lintl... no
gettext function not found. Please install libintl at Makefile.PL line 18.
make: *** No targets specified and no makefile found.  Stop.

virtual/libintl is provided by dev-perl/libintl-perl, which I re-emerged before attempting to merge Locale-gettext on its own. libintl-perl merged successfully, but Locale-gettext failed again.

Steps to reproduce:
1. emerge -e system

Actual results: 
1. emerge -e system fails on Locale-gettext

Expected results:
1. Locale-gettext installed, emerge -e system completed

Additional information: 

 # emerge info
Portage 2.0.51.22-r2 (default-linux/x86/2005.1, gcc-3.4.4, glibc-2.3.5-r2, 2.6.11.11 i686)
=================================================================
System uname: 2.6.11.11 i686 Pentium III (Coppermine)
Gentoo Base System version 1.6.13
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled]
dev-lang/python:     2.3.5-r2, 2.4.2
sys-apps/sandbox:    1.2.11
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.5
sys-devel/binutils:  2.16.1
sys-devel/libtool:   1.5.18-r1
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=pentium3 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -march=pentium3 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distcc distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 X alsa apm avi berkdb bitmap-fonts bzip2 cdr crypt cups eds emboss encode expat foomaticdb fortran gdbm gif gpm gtk gtk2 imlib ipv6 java jpeg libg++ libwww mad mikmod mmx mmxext motif mp3 mpeg ncurses nls nptl nptlonly ogg oggvorbis opengl oss pam pdflib perl pic png posix python qt quicktime readline sdl spell sse ssl svga tcpd tiff truetype truetype-fonts type1-fonts udev unicode usb vorbis win32codecs xine xml2 xmms xpm xv zlib userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTDIR_OVERLAY
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2006-01-22 09:30:24 UTC
(In reply to comment #0)
> virtual/libintl is provided by dev-perl/libintl-perl

Uhm no - it isn't. It's provided by sys-devel/gettext, but don't see how is this  virtual relevant here.

, which I re-emerged before
> attempting to merge Locale-gettext on its own. libintl-perl merged
> successfully, but Locale-gettext failed again.

Locale-gettext depends on sys-devel/gettext, if you are missing that one for whatever weird reason (like --nodeps), it won't work. Locate-gettext emerges and works perfectly here w/o libintl-perl.

Closing INVALID.
Comment 2 Sam Kimbrel 2006-01-22 09:56:37 UTC
My apologies for thinking that the perl module named libintl had something to do with it then.
Gettext was installed on the system, I re-emerged it and ran revdep-rebuild to make sure things would work. 
Locale-gettext still will not install. 
Comment 3 Joseph Davis 2006-01-24 08:14:41 UTC
>>> emerge (22 of 118) dev-perl/Locale-gettext-1.05 to /
>>> Downloading http://gentoo.osuosl.org/distfiles/gettext-1.05.tar.gz
--15:02:16--  http://gentoo.osuosl.org/distfiles/gettext-1.05.tar.gz
           => `/usr/portage/distfiles/gettext-1.05.tar.gz'
Resolving gentoo.osuosl.org... 64.50.236.52
Connecting to gentoo.osuosl.org[64.50.236.52]:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 7,693 [application/x-gzip]

100%[====================================>] 7,693         --.--K/s

15:02:17 (101.18 KB/s) - `/usr/portage/distfiles/gettext-1.05.tar.gz' saved [7,693/7,693]

>>> md5 files   ;-) Locale-gettext-1.04.ebuild
>>> md5 files   ;-) Locale-gettext-1.01-r1.ebuild
>>> md5 files   ;-) Locale-gettext-1.03.ebuild
>>> md5 files   ;-) Locale-gettext-1.05.ebuild
>>> md5 files   ;-) files/digest-Locale-gettext-1.01-r1
>>> md5 files   ;-) files/digest-Locale-gettext-1.03
>>> md5 files   ;-) files/digest-Locale-gettext-1.04
>>> md5 files   ;-) files/digest-Locale-gettext-1.05
>>> md5 src_uri ;-) gettext-1.05.tar.gz
>>> Unpacking source...
>>> Unpacking gettext-1.05.tar.gz to /var/tmp/portage/Locale-gettext-1.05/work
>>> Source unpacked.
 * Using ExtUtils::MakeMaker
checking for gettext... no
checking for gettext in -lintl... no
gettext function not found. Please install libintl at Makefile.PL line 18.
make: *** No targets specified and no makefile found.  Stop.

!!! ERROR: dev-perl/Locale-gettext-1.05 failed.
Comment 4 Michael Cummings (RETIRED) gentoo-dev 2006-01-24 11:12:09 UTC
and sys-devel/gettext (the dep in question i believe) is installed and happy?
Comment 5 Joseph Davis 2006-01-24 15:03:50 UTC
In regards to the previous post: --------------------------

densha2 distfiles # emerge -p sys-devel/gettext

These are the packages that I would merge, in order:

Calculating dependencies ...done!
[ebuild   R   ] sys-devel/gettext-0.14.4
densha2 distfiles #                             
------------------------------------------------------------
I am installing from Universal 2005.1. The first error occurred when
I was running 'emerge -qn -u -D world'

This fubar's my install, so unless someone has a fix, I'm toast.

CFLAGS="-march=i586 -Os -pipe -m3dnow"
CHOST="i586-pc-linux-gnu"
These both worked for the stage one install I did on my other mobo
back in September 05.

MOBO: EPIA-CL6000E (600MHz x86)
RAM: 1 G

Is there any other info I can provide that would help? Let me know!

Thanks - Jd
Comment 6 Sam Kimbrel 2006-01-24 19:13:16 UTC
(In reply to comment #4)
> and sys-devel/gettext (the dep in question i believe) is installed and happy?
> 

Yes, gettext was installed prior to the first attempt, and then I rebuilt it just to be sure. 
Comment 7 Sam Kimbrel 2006-01-24 20:39:32 UTC
Problem has been solved by switching to perl 5.8.6-r8 from -r5 since 5.8.7-r3 would not compile for me.
I'll file a separate bug report for the 5.8.7-r3 compilation issue if I can get details on it (right now all I know is that some part of the make script causes bash to segfault in the middle of it) but for now I can continue the emerge system. 
Comment 8 Joseph Davis 2006-01-25 09:06:33 UTC
Well, I tried several things, here's what happened.

emerge sys-devel/gettext
emerge dev-perl/Locale-gettext

FAILED again, same error

after latest post about perl, I tried

emerge perl
etc-update
emerge dev-perl/Locale-gettext

and that worked...

I suspect a problem in the dependency chain somehow, but hey, I'm not the
expert in that, so I just hope it gets fixed and my next install doesn't
hit that!

Jd
Comment 9 Thomas T. Veldhouse 2006-03-18 05:58:12 UTC
I am seeing the same problem.  Just build a 2006.0 system and am now doing a emerge -e world
Comment 10 Thomas T. Veldhouse 2006-03-18 06:06:27 UTC
This looks like a dependency problem to me.   I went to reinstall perl and it had to download the tarball.  Clearly, it was building the module before perl itself.  Looking at the dependencies of Locale-gettext, I don't see perl.

DEPEND="sys-devel/gettext
                >=virtual/perl-Test-Simple-0.54"

There is:

inherit perl-module


So, perhaps perl-module is broken and does not actually force the installation of perl during an empty-tree build.

Comment 11 Thomas T. Veldhouse 2006-03-18 06:23:08 UTC
emerge perl 

works!  It is definitely a dependency problem.  Powers that be ... please fix ebuild or eclass.
Comment 12 Michael Cummings (RETIRED) gentoo-dev 2006-03-18 06:39:45 UTC
use flags? because this is the perl-module eclass that should be getting invoked:

     75 DEPEND=">=dev-lang/perl-5.8.2 !<perl-core/ExtUtils-MakeMaker-6.17"
     76 RDEPEND="!minimal? ( ${DEPEND} )"

so perl being installed is a requirement of the eclass (and since the ebuilds inherit the eclass, a dep of the ebuilds as well). I'm not disagreeing something freaky is happening here, just not convinced of the order of it all.
Comment 13 Thomas T. Veldhouse 2006-03-18 12:44:59 UTC
perl was installed.  It just wasn't reinstalled.  I was performing "emerge -e world" and it didn't trigger a rebuild of perl BEFORE the rebuild of the module; it should have.
Comment 14 Michael Cummings (RETIRED) gentoo-dev 2006-03-18 13:40:43 UTC
sounds right. it might have triggered it if you had done a deep or something, but just -e would be everything, not necessarily in order. that's an issue to take up with the portage folks, not really relevant to this particular locale-gettext ebuild. (sorry)
Comment 15 Steffen Bauch 2006-04-17 07:02:07 UTC
(In reply to comment #9)
> I am seeing the same problem.  Just build a 2006.0 system and am now doing a
> emerge -e world
> 

I am seeing this problem too. help2man (130248) doesn't compile, because Locale-gettext is missing. Gettext seems to be installed right, but emerging Locale-gettext doesn't work right. The installation doesn't fail, just doesn't do anything, because it thinks -lintl is missing. Should it be linked with -lintl2 ??? Maybe just the test in Line 18 is wrong.
Comment 16 Ashley Stonham 2006-04-20 05:43:36 UTC
(In reply to comment #15)
> (In reply to comment #9)
> > I am seeing the same problem.  Just build a 2006.0 system and am now doing a
> > emerge -e world
> > 
> 
> I am seeing this problem too. help2man (130248) doesn't compile, because
> Locale-gettext is missing. Gettext seems to be installed right, but emerging
> Locale-gettext doesn't work right. The installation doesn't fail, just doesn't
> do anything, because it thinks -lintl is missing. Should it be linked with
> -lintl2 ??? Maybe just the test in Line 18 is wrong.
> 


I had your exact same problem.
emerge perl
emerge Locale-gettext
emerge help2man
emerge -e world
Cross your fingers no other emerge -e problems ;)
Comment 17 Jeremy Huddleston (RETIRED) gentoo-dev 2006-04-23 13:31:33 UTC
And now it's not even properly noticing the failure and just merging an empty package:

/usr/portage # emerge -v --oneshot dev-perl/Locale-gettext
Calculating dependencies... done!
>>> Emerging (1 of 1) dev-perl/Locale-gettext-1.05 to /
>>> checking ebuild checksums
>>> checking auxfile checksums
>>> checking miscfile checksums
>>> checking distfiles checksums
>>> Unpacking source...
>>> Unpacking gettext-1.05.tar.gz to /var/tmp/portage/Locale-gettext-1.05/work
>>> Source unpacked.
>>> Compiling source in /var/tmp/portage/Locale-gettext-1.05/work/gettext-1.05 ...
 * Using ExtUtils::MakeMaker
checking for gettext... no
checking for gettext in -lintl...gettext function not found. Please install libintl at Makefile.PL line 18.
 no
>>> Source compiled.
>>> Test phase [not enabled]: dev-perl/Locale-gettext-1.05

>>> Install Locale-gettext-1.05 into /var/tmp/portage/Locale-gettext-1.05/image/ category dev-perl
>>> Completed installing Locale-gettext-1.05 into /var/tmp/portage/Locale-gettext-1.05/image/

man:
>>> Merging dev-perl/Locale-gettext-1.05 to /
--- /usr/
--- /usr/share/
--- /usr/share/perl/
--- /usr/share/perl/gentoo-pods/
--- /usr/share/perl/gentoo-pods/5.8.7/
--- /usr/share/doc/
--- /usr/share/doc/Locale-gettext-1.05/
>>> /usr/share/doc/Locale-gettext-1.05/README.gz
>>> Safely unmerging already-installed instance...
--- !mtime obj /usr/share/doc/Locale-gettext-1.05/README.gz
<<<        dir /usr/share/perl/gentoo-pods/5.8.7
<<<        dir /usr/share/perl/gentoo-pods
<<<        dir /usr/share/perl
--- !empty dir /usr/share/doc/Locale-gettext-1.05
--- !empty dir /usr/share/doc
--- !empty dir /usr/share
--- !empty dir /usr
>>> Original instance of package unmerged safely.
 * Man pages are not installed for most modules now.
 * Please use perldoc instead.
>>> Regenerating /etc/ld.so.cache...
>>> dev-perl/Locale-gettext-1.05 merged.
Comment 18 Michael Cummings (RETIRED) gentoo-dev 2006-04-24 04:38:19 UTC
What I've gotten so far is that if you re-emerge perl as well as gettext, Locale-gettext will emerge ok. Not sure how to force people to re-emerge perl, though, and it sounds awful lot like a USE flag or env var is being invoked now that wasn't invoked in the perl built for your stage (grasping for ways for perl to be built completely different).
Comment 19 Jamie Anderson 2006-05-31 06:42:16 UTC
I think the root cause of the problem is that in new builds of gettext libintl.so has been renamed to preloadable_libintl.so, but I may be totally off.  If you inspect the output of emerge -epv system, perl doesn't get built until after Locale-gettext, probably because Locale-gettext only depends on perl-Test-simple, which might only depend on libperl and not perl itself.  Sadly, I am not knowledgeable enough the ebuild system to offer a fix. :)

Comment 20 Michael Cummings (RETIRED) gentoo-dev 2006-05-31 17:25:20 UTC
(In reply to comment #19)
> Sadly, I am not knowledgeable enough the ebuild system to offer a fix. :)

see comment #12 - perl is a dep of the eclass, which is inherited by the ebuild, and therefore a dep of the ebuild. 

and i'm still having trouble dup'ing this bug - anyone else on the perl alias want to take a shot?
Comment 21 Michael Cummings (RETIRED) gentoo-dev 2006-06-13 15:05:55 UTC
(In reply to comment #17)
> And now it's not even properly noticing the failure and just merging an empty
> package:


fixed in the eclass


and i think this whole may have been inadvertantly fixed in another bug dealing with where perl gets emerged in the early parts of the chain (because of a dep on coreutils, which pushed it around in the ordering a bit - but i could be wrong)
Comment 22 Daniel Persson 2006-06-19 22:39:31 UTC
I'm using the grapical installer for 2006.0 and it just halts when it reaches the package. So the error is consistent. I know how to resolv the problem if I wanted to but it's bad for new users that aren't familiar to linux that the install don't work with the grapical install. I don't know if the dependency tree works for a normal install I haven't checked. but.... 

Keep up the great work guys. You really have a good thing going here.
Comment 23 Michael Cummings (RETIRED) gentoo-dev 2006-06-20 14:34:29 UTC
(In reply to comment #22)
> I'm using the grapical installer for 2006.0

fwiw, i believe this will be fixed in the 2006.1 release (I realize that does you no good now).

Comment 24 Michael Cummings (RETIRED) gentoo-dev 2006-07-08 07:39:23 UTC
Can this bug be closed out?
Comment 25 Thomas T. Veldhouse 2006-07-08 15:44:45 UTC
I don't think it would be wise to close this defect out until it has been solidly verified ... this defect has been particularily resiliant in reappearing.
Comment 26 Thomas T. Veldhouse 2006-07-08 15:45:57 UTC
Oops ... my apology, I thought this was a different defect.  I don't see any issues with closing it.
Comment 27 Michael Cummings (RETIRED) gentoo-dev 2006-07-08 16:51:16 UTC
Closing :) (as always, this bug can be reopened if you need to, no mark is final, yada yada yada)
Comment 28 Florian Manschwetus 2006-08-16 04:23:47 UTC
I ran in this problem too.
I think i fixed it setting perl useflag.
Please confirm it.
Comment 29 Valery Novikov 2006-08-28 14:02:39 UTC
I've this problem too, 
using portage tree snapshot - 08.26.2006

"emerge -v --oneshot dev-perl/Locale-gettext" - didn't help me,
My workaround is :
step 1) USE="-nls" emerge perl
step 2) emerge dev-perl/Locale-gettext
Comment 30 Michael Cummings (RETIRED) gentoo-dev 2006-08-28 17:32:52 UTC
(In reply to comment #29)
> I've this problem too, 
> using portage tree snapshot - 08.26.2006
> 
> "emerge -v --oneshot dev-perl/Locale-gettext" - didn't help me,
> My workaround is :
> step 1) USE="-nls" emerge perl
> step 2) emerge dev-perl/Locale-gettext
> 
I suspect it was more the rebuilding of perl than anything else - nls isn't a use flag for perl.
Comment 31 Jakub Moc (RETIRED) gentoo-dev 2007-02-25 13:48:43 UTC
*** Bug 145808 has been marked as a duplicate of this bug. ***
Comment 32 David Carlos Manuelda 2008-11-10 12:37:50 UTC
Still reproducible in 2008.0 installation media (at least what I tried which was a mininal CD). I didn't tried a emerge -e system.

What I was trying is: after having grub and kernel configured and installed, reboot and do a emerge --sync && emerge -uDN world.

The errors are the same as above (Locale-gettext ones). I didn't try the workarround of rebuilding perl firtst.

Please, I think this must be taken into account, since it confuses a lot, and happens mostly when you don't have even X server installed, so you get stalled in the beginning of gentoo's installation (many thanks to the existence of links BTW)

P.D. Can someone reopen this bug? I can't.
Comment 33 James Peel 2008-12-07 13:06:58 UTC
(In reply to comment #32)
> Still reproducible in 2008.0 installation media (at least what I tried which
> was a mininal CD). I didn't tried a emerge -e system.
> 
> What I was trying is: after having grub and kernel configured and installed,
> reboot and do a emerge --sync && emerge -uDN world.
> 
> The errors are the same as above (Locale-gettext ones). I didn't try the
> workarround of rebuilding perl firtst.
> 
> Please, I think this must be taken into account, since it confuses a lot, and
> happens mostly when you don't have even X server installed, so you get stalled
> in the beginning of gentoo's installation (many thanks to the existence of
> links BTW)
> 
> P.D. Can someone reopen this bug? I can't.
> 


I also encountered this today on 2 systems, exactly the same issue, emerging perl again fixed this though.
Comment 34 Patrick Lauer gentoo-dev 2008-12-07 15:04:38 UTC
Reopened by user request
Comment 35 David Abbott (RETIRED) gentoo-dev 2009-10-17 00:41:44 UTC
Is this still an issue with autobuilds? If yes please reopen.