Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 541442 - sys-libs/pam-1.1.8-r2 does not cross compile
Summary: sys-libs/pam-1.1.8-r2 does not cross compile
Status: RESOLVED DUPLICATE of bug 511468
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: PAM Gentoo Team (OBSOLETE)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-02-26 15:45 UTC by Joakim Tjernlund
Modified: 2015-05-17 05:03 UTC (History)
0 users

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


Attachments
patch configure.in to make autotools complain less. (configure.patch,897 bytes, patch)
2015-02-26 15:45 UTC, Joakim Tjernlund
Details | Diff
pam ebuild patch (pam.patch,793 bytes, patch)
2015-02-26 15:50 UTC, Joakim Tjernlund
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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 ***