Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 9502 - pwdb 0.61-r3 places an extra copy of libpwdb.a in /usr/lib
Summary: pwdb 0.61-r3 places an extra copy of libpwdb.a in /usr/lib
Status: RESOLVED DUPLICATE of bug 4411
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Martin Schlemmer (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-10-22 13:03 UTC by Alan
Modified: 2005-07-17 13:06 UTC (History)
0 users

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 Alan 2002-10-22 13:03:17 UTC
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.
Comment 1 Martin Schlemmer (RETIRED) gentoo-dev 2002-10-25 17:41:03 UTC

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