Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 350039 - dev-perl/libintl-perl-1.20 - ld: cannot find -lintl collect2: ld returned 1 exit status
Summary: dev-perl/libintl-perl-1.20 - ld: cannot find -lintl collect2: ld returned 1 e...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Gentoo Perl team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-12-29 13:26 UTC by Willard Dawson
Modified: 2013-12-23 14:31 UTC (History)
5 users (show)

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


Attachments
Emerge info (emerge-info,5.88 KB, text/plain)
2010-12-29 13:27 UTC, Willard Dawson
Details
Build log (build.log,14.55 KB, text/plain)
2010-12-29 13:27 UTC, Willard Dawson
Details
Emerge -pqv (emerge-pqv,44 bytes, text/plain)
2010-12-29 13:27 UTC, Willard Dawson
Details
Emerge environment (environment,98.40 KB, text/plain)
2010-12-29 13:28 UTC, Willard Dawson
Details
perl -V (perl-v,3.82 KB, text/plain)
2012-06-01 20:58 UTC, Alexandr Tiurin
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Willard Dawson 2010-12-29 13:26:19 UTC
This error prevents me from my actual goal of installing media-video/dvdrip.  After researching this libintl dep issue, I re-emerged perl and gettext, but the error persists.


Reproducible: Always

Steps to Reproduce:
1.emerge media-video/dvdrip
2.
3.

Actual Results:  
LD_RUN_PATH="/usr/lib64" x86_64-pc-linux-gnu-gcc  -shared -O2 -pipe -ggdb -Wl,-O1 -Wl,--as-needed gettext_xs.o -Wl,-O1 -Wl,--as-needed -o ../blib/arch/auto/Locale/gettext_xs/gettext_xs.so     \
   -lintl       \
  
/usr/lib/gcc/x86_64-pc-linux-gnu/4.5.2/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lintl
collect2: ld returned 1 exit status
make[1]: *** [../blib/arch/auto/Locale/gettext_xs/gettext_xs.so] Error 1
make[1]: Leaving directory `/var/tmp/portage/dev-perl/libintl-perl-1.20/work/libintl-perl-1.20/gettext_xs'
make: *** [subdirs] Error 2
emake failed


Expected Results:  
success

see attachments
Comment 1 Willard Dawson 2010-12-29 13:27:31 UTC
Created attachment 258340 [details]
Emerge info
Comment 2 Willard Dawson 2010-12-29 13:27:45 UTC
Created attachment 258341 [details]
Build log
Comment 3 Willard Dawson 2010-12-29 13:27:59 UTC
Created attachment 258342 [details]
Emerge -pqv
Comment 4 Willard Dawson 2010-12-29 13:28:13 UTC
Created attachment 258343 [details]
Emerge environment
Comment 5 Diego Elio Pettenò (RETIRED) gentoo-dev 2011-01-10 10:42:25 UTC
William do you have firebird installed? I can reproduce the problem here, but in general we shouldn't have libintl on Linux since those functions are provided by the C library. On the other hand, dev-db/firebird installs a libfbintl.so library with a libintl.so.1 SONAME which cause a disowned /usr/lib/libintl.so.1 to be created which, I suppose, could be detected by libintl-perl.
Comment 6 Willard Dawson 2011-01-11 13:56:46 UTC
(In reply to comment #5)
> William do you have firebird installed? I can reproduce the problem here, but
> in general we shouldn't have libintl on Linux since those functions are
> provided by the C library. On the other hand, dev-db/firebird installs a
> libfbintl.so library with a libintl.so.1 SONAME which cause a disowned
> /usr/lib/libintl.so.1 to be created which, I suppose, could be detected by
> libintl-perl.
> 

Yes, firebird is installed (2.5.0.26074.0).
Comment 7 Juergen Rose 2011-05-03 13:31:33 UTC
I have the same issue. perl-cleaner --all fails with:
...
/usr/lib/gcc/x86_64-pc-linux-gnu/4.5.2/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lintl
collect2: ld returned 1 exit status
...
 * ERROR: dev-perl/libintl-perl-1.20 failed (compile phase):


and dev-db/firebird-2.5.0.26074.0 is installed.

What should I do?
Comment 8 Alessandro Surace 2011-09-21 13:46:58 UTC
Same problem here:
/usr/lib/gcc/x86_64-pc-linux-gnu/4.4.5/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lintl
collect2: ld returned 1 exit status

/usr/lib/gcc/x86_64-pc-linux-gnu/4.5.3/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lintl
collect2: ld returned 1 exit status

No news?
Comment 9 Alessandro Surace 2012-05-10 19:33:01 UTC
Some neww about this problem!
Searching I've rescricted the problem to libintl.so.

In deep when Makefile.PL enter in gettext_xs dir and find libintl it configures Makefile to use -lintl and the make process fails. I can't understand why. 

I've removed firbird that install /usr/lib/libintl.so and now everything works.

Perhaps Perl Devs can help us to undestand why this happens.
Comment 10 Torsten Veller (RETIRED) gentoo-dev 2012-05-30 04:10:48 UTC
Please attach config.log and `perl -V` too.
Comment 11 Alexandr Tiurin 2012-06-01 20:57:15 UTC
I can reproduce this problem too. But after failed build dev-perl/libintl-perl ,  I deleted a firebird

# emerge -C firebird

and install  a firebird as a  binary package from PKGDIR

# emerge -k firebird

Then I built dev-perl/libintl-perl again 

# emerge -1 dev-perl/libintl-perl

and libintl-perl built fine.
Comment 12 Alexandr Tiurin 2012-06-01 20:58:21 UTC
Created attachment 313871 [details]
perl -V
Comment 13 Diego Elio Pettenò (RETIRED) gentoo-dev 2012-06-22 12:57:52 UTC
@tove can you do something about this? Even a blocker at this point might be a good idea.
Comment 14 Torsten Veller (RETIRED) gentoo-dev 2012-06-22 13:48:46 UTC
I am not able to reproduce it.
I still like to see the config.log file and find out why the first gcc call without -lintl fails.
Comment 15 Alexandr Tiurin 2012-06-29 12:31:34 UTC
Where can I find this file?
Comment 16 Torsten Veller (RETIRED) gentoo-dev 2012-06-29 12:59:59 UTC
/var/tmp/portage/dev-perl/libintl-perl-1.20/work/libintl-perl-1.20
Comment 17 Alexandr Tiurin 2012-06-29 16:02:30 UTC
# cat /var/tmp/portage/dev-perl/libintl-perl-1.200.0/work/libintl-perl-1.20/config.log
x86_64-pc-linux-gnu-gcc -fno-strict-aliasing -pipe -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -Wl,-O1 -Wl,--as-needed -lnsl -ldl -lm -lcrypt -lutil -lc -o gettest.exe gettest.c
Comment 18 Patrick Lauer gentoo-dev 2013-04-20 04:51:07 UTC
+  20 Apr 2013; Patrick Lauer <patrick@gentoo.org> libintl-perl-1.210.0.ebuild:
+  Adding blocker #350039

Reproduced it ... blocker should avoid further issues
Comment 19 William L. Thomson Jr. 2013-09-08 15:56:57 UTC
I think this bug needs to be reopened and/or blocker for Firebird in libintl-perl-1.230 for Firebird needs to be removed. Firebird should NOT provide libintl.so but libfbintl.so, that was changed by me a very long time ago. This was an incorrect blocker and fix to some old problem that no longer exists. The version of Firebird mentioned in thus bug is not even in the tree any longer. I removed the blocker and had no problem merging libintl-perl-1.230 as seen below.

[ebuild   R    ] dev-perl/libintl-perl-1.230.0  0 kB
[ebuild   R    ] dev-db/firebird-2.5.1.26351.0-r1  USE="superserver (-client) -debug -doc -examples -xinetd" 0 kB
Comment 20 Fabio Erculiani (RETIRED) gentoo-dev 2013-12-23 10:20:45 UTC
Please drop the blocker from libintl-perl ebuild, #c19 is right.
Comment 21 Mikle Kolyada (RETIRED) archtester Gentoo Infrastructure gentoo-dev Security 2013-12-23 14:31:09 UTC
(In reply to Fabio Erculiani from comment #20)
> Please drop the blocker from libintl-perl ebuild, #c19 is right.

done.