Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 541442

Summary: sys-libs/pam-1.1.8-r2 does not cross compile
Product: Gentoo Linux Reporter: Joakim Tjernlund <joakim.tjernlund>
Component: [OLD] Core systemAssignee: PAM Gentoo Team (OBSOLETE) <pam-bugs+disabled>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: patch configure.in to make autotools complain less.
pam ebuild patch

Description Joakim Tjernlund 2015-02-26 15:45:17 UTC
Created attachment 397560 [details, diff]
patch configure.in to make autotools complain less.

Cross building pam with USE=berkdb or USE=cracklib fails.

This is because berkdb and cracklib installs .la libtool files and
libtool is not sysroot aware.

Patch pam and regenerate libtool/configure and add --with-sysroot=yes
to fix this problem.
Comment 1 Joakim Tjernlund 2015-02-26 15:50:32 UTC
Created attachment 397562 [details, diff]
pam ebuild patch

patch and regenerate pam configure to support sysroot.
Comment 2 Joakim Tjernlund 2015-02-26 16:06:03 UTC
This is the error one get when crossbuilding before patch:

libtool: link: powerpc-g2.19-linux-gnu-gcc -shared  .libs/pam_cracklib.o   -Wl,-rpath -Wl,/usr/powerpc-g2.19-linux-gnu/tmp/portage/sys-libs/pam-1.1.8-r2/work/Linux-PAM-1.1.8-abi_ppc_32.ppc/libpam/.libs -Wl,--as-needed ../../libpam/.libs/libpam.so -ldl /usr/lib/libcrack.so -lz -lcrypt  -Wl,--version-script=/usr/powerpc-g2.19-linux-gnu/tmp/portage/sys-libs/pam-1.1.8-r2/work/Linux-PAM-1.1.8/modules/pam_cracklib/../modules.map -Wl,-O1 -Wl,--no-undefined -Wl,-O1   -Wl,-soname -Wl,pam_cracklib.so -o .libs/pam_cracklib.so
/usr/libexec/gcc/powerpc-g2.19-linux-gnu/ld: skipping incompatible /lib64/libcrack.so.2 when searching for /lib64/libcrack.so.2
/usr/libexec/gcc/powerpc-g2.19-linux-gnu/ld: cannot find /lib64/libcrack.so.2
collect2: error: ld returned 1 exit status
Comment 3 SpanKY gentoo-dev 2015-05-17 03:15:44 UTC

*** This bug has been marked as a duplicate of bug 511468 ***