Summary: | sys-libs/pam-1.1.8-r2 does not cross compile | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Joakim Tjernlund <joakim.tjernlund> |
Component: | [OLD] Core system | Assignee: | 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 |
Created attachment 397562 [details, diff]
pam ebuild patch
patch and regenerate pam configure to support sysroot.
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 *** This bug has been marked as a duplicate of bug 511468 *** |
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.