Subject: Re: build.sh fails in libpam
To: None <arto+dated+1106126952.c65e1d1005c83a05@selonen.org,>
From: Havard Eidnes <he@netbsd.org>
List: current-users
Date: 01/20/2005 19:57:12
> fails in the following manner:
>
> # compile libpam/openpam_borrow_cred.ln
> CC=3D/obj/i386/tools/bin/i386--netbsdelf-gcc =
> /obj/i386/tools/bin/i386--netbsdelf-lint -chapbxzF -Sw -X 233 -d =
> /obj/destdir/usr/include -DLIB_MAJ=3D0 -DOPENPAM_STATIC_MODULES =
> -DOPENPAM_STATIC_MODULE -DDEBUG -i =
> /cvs/src/dist/openpam/lib/openpam_borrow_cred.c
> /cvs/src/dist/openpam/lib/openpam_impl.h(131): redeclaration of =
> openpam_load_module [27]
> /cvs/src/dist/openpam/lib/openpam_impl.h(131): warning: old style =
> declaration; add int [1]
> =
> *** Failed target: openpam_borrow_cred.ln
> *** Failed command: CC=3D/obj/i386/tools/bin/i386--netbsdelf-gcc =
> /obj/i386/tools/bin/i386--netbsdelf-lint -chapbxzF -Sw -X 233 -d =
> /obj/destdir/usr/include -DLIB_MAJ=3D0 -DOPENPAM_STATIC_MODULES =
> -DOPENPAM_STATIC_MODULE -DDEBUG -i =
> /cvs/src/dist/openpam/lib/openpam_borrow_cred.c
> *** Error code 1
Which version of openpam_impl.h and openpam_borrow_cred.c do you
have (both in dist/openpam/lib/)? My local source tree has
version 1.3 of both. The sha1 checksums of both files are as
follows:
stegg# openssl sha1 openpam_borrow_cred.c openpam_impl.h =
SHA1(openpam_borrow_cred.c)=3D 54624414bd4daf8e87417b63ff483ac71e8a9928=
SHA1(openpam_impl.h)=3D 37831c2a3c504c1686940645935af2b284643f7d
stegg# =
...and in my case all of lib/libpam/ builds nicely.
Line 131 in my openpam_impl.h doesn't declare openpam_load_module();
that's done 4 lines earlier.
I suspect some leftover corruption which has not yet been overwritten.
It may help to remove the offending file and re-update it.
Regards,
- H=E5vard