pam_unix2 does not compile with new Linux-PAM

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



-----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@xxxxxxxxx
*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-----
Index: pam_unix2/src/unix_acct.c
===================================================================
RCS file: /home/cvs/repository/distribution/Base/pam_unix2/src/unix_acct.c,v
retrieving revision 1.1.1.1
diff -u -r1.1.1.1 unix_acct.c
--- pam_unix2/src/unix_acct.c	21 Dec 2002 13:52:56 -0000	1.1.1.1
+++ pam_unix2/src/unix_acct.c	19 Jan 2006 20:59:32 -0000
@@ -47,6 +47,7 @@
 #include <string.h>
 #include <shadow.h>
 #include <sys/types.h>
+#include <syslog.h>
 
 #define PAM_SM_ACCOUNT
 #include <security/pam_modules.h>
Index: pam_unix2/src/unix_auth.c
===================================================================
RCS file: /home/cvs/repository/distribution/Base/pam_unix2/src/unix_auth.c,v
retrieving revision 1.1.1.1
diff -u -r1.1.1.1 unix_auth.c
--- pam_unix2/src/unix_auth.c	10 Feb 2003 16:35:24 -0000	1.1.1.1
+++ pam_unix2/src/unix_auth.c	19 Jan 2006 20:59:32 -0000
@@ -55,6 +55,7 @@
 #include <sys/types.h>
 #include <rpc/rpc.h>
 #include <rpc/key_prot.h>
+#include <syslog.h>
 
 #define PAM_SM_AUTH
 #include <security/pam_modules.h>
Index: pam_unix2/src/unix_passwd.c
===================================================================
RCS file: /home/cvs/repository/distribution/Base/pam_unix2/src/unix_passwd.c,v
retrieving revision 1.1.1.1
diff -u -r1.1.1.1 unix_passwd.c
--- pam_unix2/src/unix_passwd.c	15 Jan 2003 19:33:14 -0000	1.1.1.1
+++ pam_unix2/src/unix_passwd.c	19 Jan 2006 20:59:32 -0000
@@ -55,6 +55,7 @@
 #include <nss.h>
 #include <rpcsvc/yp_prot.h>
 #include <rpcsvc/ypclnt.h>
+#include <syslog.h>
 
 #define PAM_SM_PASSWORD
 #include <security/_pam_macros.h>
Index: pam_unix2/src/unix_sess.c
===================================================================
RCS file: /home/cvs/repository/distribution/Base/pam_unix2/src/unix_sess.c,v
retrieving revision 1.1.1.1
diff -u -r1.1.1.1 unix_sess.c
--- pam_unix2/src/unix_sess.c	18 Jan 2002 17:04:51 -0000	1.1.1.1
+++ pam_unix2/src/unix_sess.c	19 Jan 2006 20:59:32 -0000
@@ -41,6 +41,7 @@
 #include <stdio.h>
 #include <string.h>
 #include <unistd.h>
+#include <syslog.h>
 #include <security/pam_modules.h>
 
 #include "public.h"
_______________________________________________

Pam-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/pam-list

[Index of Archives]     [Fedora Users]     [Kernel]     [Red Hat Install]     [Linux for the blind]     [Gimp]

  Powered by Linux