pam_unix2 does not compile with new Linux-PAM
Andreas Haumer
andreas at xss.co.at
Thu Jan 19 21:14:44 UTC 2006
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi Thorsten,
I just tried to compile your pam_unix2-1.15 (is this
the current version? Your homepage says so...) against
Linux-PAM-0.99.3.0 and found that it fails with the
following messages:
[...]
if gcc -DHAVE_CONFIG_H -I. -I. -I.. -D_REENTRANT -DPAMDIR=\"/lib/security\" -DSYSCONFDIR=\"/etc/security\" -O2 -march=i586 -mcpu=i686 -fmessage-length=0 -fPIC -DPIC -MT unix_passwd.o -MD -MP -MF ".deps/unix_pas
swd.Tpo" \
-c -o unix_passwd.o `test -f 'unix_passwd.c' || echo './'`unix_passwd.c; \
then mv ".deps/unix_passwd.Tpo" ".deps/unix_passwd.Po"; \
else rm -f ".deps/unix_passwd.Tpo"; exit 1; \
fi
unix_acct.c: In function `hp_expire':
unix_acct.c:73: error: `LOG_ERR' undeclared (first use in this function)
unix_acct.c:73: error: (Each undeclared identifier is reported only once
unix_acct.c:73: error: for each function it appears in.)
unix_acct.c: In function `pam_sm_acct_mgmt':
unix_acct.c:163: error: `LOG_ERR' undeclared (first use in this function)
unix_acct.c:168: error: `LOG_DEBUG' undeclared (first use in this function)
make[2]: *** [unix_acct.o] Error 1
make[2]: *** Waiting for unfinished jobs....
unix_passwd.c: In function `pam_sm_chauthtok':
unix_passwd.c:104: error: `LOG_ERR' undeclared (first use in this function)
unix_passwd.c:104: error: (Each undeclared identifier is reported only once
unix_passwd.c:104: error: for each function it appears in.)
unix_passwd.c:110: error: `LOG_DEBUG' undeclared (first use in this function)
make[2]: *** [unix_passwd.o] Error 1
make[2]: Leaving directory `/work/genesis/rpm/BUILD/pam_unix2-1.15/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/work/genesis/rpm/BUILD/pam_unix2-1.15'
make: *** [all] Error 2
error: Bad exit status from /var/tmp/rpm-tmp.74229 (%build)
It seems that several source files are missing some #defines
from the syslog.h include file. This file was previously
indirectly included by the _pam_types.h include file, but
with the new Linux-PAM version this is not the case anymore
(which is ok, IMHO)
The attached patch puts #include statements in the pam_unix2
source files needing them. I don't know if pam_unix2 is still
in active maintenance, but perhaps the patch will be useful...
Regards,
- - andreas
- --
Andreas Haumer | mailto:andreas at xss.co.at
*x Software + Systeme | http://www.xss.co.at/
Karmarschgasse 51/2/20 | Tel: +43-1-6060114-0
A-1100 Vienna, Austria | Fax: +43-1-6060114-71
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
iD8DBQFD0AFBxJmyeGcXPhERAlrxAJ9VKYX6WoWJb3MyTlu6BY62oYYajACdH1V5
HNhIvsQbeycHQlj6bzY6fvw=
=RaSr
-----END PGP SIGNATURE-----
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: syslog.patch
URL: <http://listman.redhat.com/archives/pam-list/attachments/20060119/2047e384/attachment.ksh>
More information about the Pam-list
mailing list