Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 124763 - libtool is broken regarding multilib
Summary: libtool is broken regarding multilib
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: AMD64 Project
URL: http://lists.gnu.org/archive/html/bug...
Whiteboard:
Keywords:
: 124814 (view as bug list)
Depends on:
Blocks: 124816
  Show dependency tree
 
Reported: 2006-03-03 03:03 UTC by Simon Stelling (RETIRED)
Modified: 2007-02-19 23:15 UTC (History)
1 user (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 Simon Stelling (RETIRED) gentoo-dev 2006-03-03 03:03:56 UTC
ABI=x86 emerge shadow fails:

/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.4/../../../../x86_64-pc-linux-gnu/bin/ld: skipping incompatible /lib64/libcrack.so when searching for /lib64/libcrack.so
/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.4/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find /lib64/libcrack.so
collect2: ld returned 1 exit status
make[2]: *** [passwd] Error 1
make[2]: Leaving directory `/var/tmp/portage/shadow-4.0.7-r4/work/shadow-4.0.7/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/shadow-4.0.7-r4/work/shadow-4.0.7'
make: *** [all] Error 2

!!! ERROR: sys-apps/shadow-4.0.7-r4 failed.
!!! Function src_compile, Line 98, Exitcode 2
!!! compile problem
Comment 1 Simon Stelling (RETIRED) gentoo-dev 2006-03-05 11:04:03 UTC
finally found out why this fails:

when libtool is given a -l argument is tries to find a matching libtool archive by searching through various paths:

for searchdir in '$newlib_search_path' '$lib_search_path' '$sys_lib_search_path' '$shlib_search_path'

if $searchdir/lib$NAME.la can be found, it is sourced, resulting in:

libdir=/usr/lib64

so that libtool will execute 

x86_64-pc-linux-gnu-gcc -O2 -pipe -Wl,-z -Wl,now -o passwd passwd.o  ../libmisc/libmisc.a ../lib/.libs/libshadow.a -lcrypt -lpam -lpam_misc ${libdir}/libcrack.so

conclusion: libtool is freakin' broken
Comment 2 Simon Stelling (RETIRED) gentoo-dev 2006-03-09 09:55:52 UTC
*** Bug 124814 has been marked as a duplicate of this bug. ***
Comment 3 SpanKY gentoo-dev 2006-03-12 19:20:13 UTC
ugh, libtool maintainers are already aware of the multilib issues ... they cant really "solve" the problem because every distro so far has their own idea as to how "best" attack the multilib issue, and adding distro-specific cruft to libtool is wrong

search the libtool mailing list and you'll find many discussions
Comment 4 Simon Stelling (RETIRED) gentoo-dev 2006-07-20 08:26:47 UTC
LATER
Comment 5 Christian Parpart (RETIRED) gentoo-dev 2007-02-16 15:35:35 UTC
however, libtool is parsing its arguments, and though finds all -lXXX arguments to process them. Now, why doesn't he do so with the -LXXX arguments? This way you'd be able to influence the library search path by e.g. passing -L/usr/lib32 to it - via $(LDFLAGS) in your Makefile[.am]
Comment 6 Simon Stelling (RETIRED) gentoo-dev 2007-02-19 23:15:09 UTC
reopen to change resolution
Comment 7 Simon Stelling (RETIRED) gentoo-dev 2007-02-19 23:15:39 UTC
1.5.23b fixes this. halleluja.