When pwdb 0.61-r3 compiles, it places identical libpwdb.a files in both /lib/ and /usr/lib/ For some reason, the copy in /usr/lib/ prevents pam 0.75-r8 from compiling because it failed with the following errors: > [...] > configure:3810: checking for pwdb_db_name in -lpwdb > configure:3837: gcc -o conftest -march=athlon -O3 -pipe -fomit-frame-pointer -fPIC conftest.c -lpwdb >&5 > /usr/lib/gcc-lib/i686-pc-linux-gnu/3.1/../../../libpwdb.a(password.o): In function `__pwdbNIS_sgetpwent': > /var/tmp/portage/pwdb-0.61-r3/work/pwdb-0.61/libpwdb/nis/password.c:139: undefined reference to `yp_match' > /usr/lib/gcc-lib/i686-pc-linux-gnu/3.1/../../../libpwdb.a(password.o): In function `__pwdbNIS_update': > /var/tmp/portage/pwdb-0.61-r3/work/pwdb-0.61/libpwdb/nis/password.c:317: undefined reference to `yp_master' > /var/tmp/portage/pwdb-0.61-r3/work/pwdb-0.61/libpwdb/nis/password.c:326: undefined reference to `yp_match' > /var/tmp/portage/pwdb-0.61-r3/work/pwdb-0.61/libpwdb/nis/password.c:41: undefined reference to `yp_get_default_domain' > /usr/lib/gcc-lib/i686-pc-linux-gnu/3.1/../../../libpwdb.a(password.o): In function `__pwdbNIS_getpwuid': > /var/tmp/portage/pwdb-0.61-r3/work/pwdb-0.61/libpwdb/nis/password.c:187: undefined reference to `yp_match' > /var/tmp/portage/pwdb-0.61-r3/work/pwdb-0.61/libpwdb/nis/password.c:41: undefined reference to `yp_get_default_domain' > /usr/lib/gcc-lib/i686-pc-linux-gnu/3.1/../../../libpwdb.a(password.o): In function `__pwdbNIS_getpwnam': > /var/tmp/portage/pwdb-0.61-r3/work/pwdb-0.61/libpwdb/nis/password.c:224: undefined reference to `yp_match' > /var/tmp/portage/pwdb-0.61-r3/work/pwdb-0.61/libpwdb/nis/password.c:41: undefined reference to `yp_get_default_domain' > /usr/lib/gcc-lib/i686-pc-linux-gnu/3.1/../../../libpwdb.a(password.o): In function `__pwdb_decnis_check_password_adjunct': > /var/tmp/portage/pwdb-0.61-r3/work/pwdb-0.61/libpwdb/decnis/password.c:163: undefined reference to `yp_match' > /var/tmp/portage/pwdb-0.61-r3/work/pwdb-0.61/libpwdb/decnis/password.c:182: undefined reference to `yp_match' > /var/tmp/portage/pwdb-0.61-r3/work/pwdb-0.61/libpwdb/decnis/password.c:39: undefined reference to `yp_get_default_domain' > collect2: ld returned 1 exit status > configure:3840: $? = 1 > configure: failed program was: > #line 3817 "configure" > #include "confdefs.h" > > /* Override any gcc2 internal prototype to avoid an error. */ > #ifdef __cplusplus > extern "C" > #endif > /* We use char because int might match the return type of a gcc2 > builtin and then its argument prototype would still apply. */ > char pwdb_db_name (); > int > main () > { > pwdb_db_name (); > ; > return 0; > } > configure:3857: result: no > [...] I found that removing the copy in /usr/lib/ would allow pam to compile properly.
*** This bug has been marked as a duplicate of 4411 ***