Source: pam Version: 1.1.3-7.1 Severity: wishlist User: debian-...@lists.debian.org Usertags: port-x32 ftbfs-eglibc2-16
On my x32 port build of pam, I'm getting this failure: /bin/bash ../../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. - I../.. -D_FORTIFY_SOURCE=2 -I../../libpam/include -I../../libpamc/include - DCHKPWD_HELPER=\"/sbin/unix_chkpwd\" -DUPDATE_HELPER=\"/sbin/unix_update\" - D"WITH_SELINUX" -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat - Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -W -Wall - Wbad-function-cast -Wcast-align -Wcast-qual -Wmissing-declarations -Wmissing- prototypes -Wpointer-arith -Wreturn-type -Wstrict-prototypes -Wwrite-strings - Winline -Wshadow -c -o pam_unix_acct.lo pam_unix_acct.c libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../.. -D_FORTIFY_SOURCE=2 - I../../libpam/include -I../../libpamc/include - DCHKPWD_HELPER=\"/sbin/unix_chkpwd\" -DUPDATE_HELPER=\"/sbin/unix_update\" - DWITH_SELINUX -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat - Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -W -Wall - Wbad-function-cast -Wcast-align -Wcast-qual -Wmissing-declarations -Wmissing- prototypes -Wpointer-arith -Wreturn-type -Wstrict-prototypes -Wwrite-strings - Winline -Wshadow -c pam_unix_acct.c -fPIC -DPIC -o .libs/pam_unix_acct.o pam_unix_acct.c: In function '_unix_run_verify_binary': pam_unix_acct.c:97:19: error: storage size of 'rlim' isn't known pam_unix_acct.c:106:5: warning: implicit declaration of function 'getrlimit' [-Wimplicit-function-declaration] pam_unix_acct.c:106:19: error: 'RLIMIT_NOFILE' undeclared (first use in this function) pam_unix_acct.c:106:19: note: each undeclared identifier is reported only once for each function it appears in pam_unix_acct.c:97:19: warning: unused variable 'rlim' [-Wunused-variable] make[4]: *** [pam_unix_acct.lo] Error 1 make[4]: Leaving directory `/tmp/buildd/pam-1.1.3/modules/pam_unix' make[3]: *** [all-recursive] Error 1 make[3]: Leaving directory `/tmp/buildd/pam-1.1.3/modules' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/tmp/buildd/pam-1.1.3' make[1]: *** [all] Error 2 make[1]: Leaving directory `/tmp/buildd/pam-1.1.3' dh_auto_build: make -j1 returned exit code 2 make: *** [build] Error 2 dpkg-buildpackage: error: debian/rules build gave error exit status 2 This is because the port is using eglibc 2.16 (which only has packaging available from SVN currently, hence this bug is wishlist for now), and the error is likely to affect all architectures once eglibc 2.16 eventually hits unstable. The attached debdiff fixes the compilation errors for me. -- Daniel Schepler
diff -u pam-1.1.3/debian/changelog pam-1.1.3/debian/changelog --- pam-1.1.3/debian/changelog +++ pam-1.1.3/debian/changelog @@ -1,3 +1,9 @@ +pam (1.1.3-7.1+x32) UNRELEASED; urgency=low + + * Add missing #include to fix compilation with glibc 2.16. + + -- Daniel Schepler <schep...@debian.org> Sat, 11 Aug 2012 16:04:48 -0700 + pam (1.1.3-7.1) unstable; urgency=low * Non-maintainer upload. diff -u pam-1.1.3/debian/patches-applied/series pam-1.1.3/debian/patches-applied/series --- pam-1.1.3/debian/patches-applied/series +++ pam-1.1.3/debian/patches-applied/series @@ -27,0 +28 @@ +glibc-2_16-compilation-fix.patch only in patch2: unchanged: only in patch2: unchanged: only in patch2: unchanged: only in patch2: unchanged: only in patch2: unchanged: only in patch2: unchanged: only in patch2: unchanged: only in patch2: unchanged: only in patch2: unchanged: only in patch2: unchanged: only in patch2: unchanged: only in patch2: unchanged: only in patch2: unchanged: only in patch2: unchanged: only in patch2: unchanged: only in patch2: unchanged: only in patch2: unchanged: only in patch2: unchanged: only in patch2: unchanged: only in patch2: unchanged: only in patch2: unchanged: only in patch2: unchanged: only in patch2: unchanged: only in patch2: unchanged: only in patch2: unchanged: only in patch2: unchanged: only in patch2: unchanged: only in patch2: unchanged: only in patch2: unchanged: only in patch2: unchanged: only in patch2: unchanged: only in patch2: unchanged: only in patch2: unchanged: only in patch2: unchanged: only in patch2: unchanged: only in patch2: unchanged: --- pam-1.1.3.orig/debian/patches-applied/glibc-2_16-compilation-fix.patch +++ pam-1.1.3/debian/patches-applied/glibc-2_16-compilation-fix.patch @@ -0,0 +1,24 @@ +Index: pam-1.1.3/modules/pam_unix/pam_unix_acct.c +=================================================================== +--- pam-1.1.3.orig/modules/pam_unix/pam_unix_acct.c 2012-08-11 23:05:09.000000000 +0000 ++++ pam-1.1.3/modules/pam_unix/pam_unix_acct.c 2012-08-11 23:05:29.000000000 +0000 +@@ -47,6 +47,7 @@ + #include <time.h> /* for time() */ + #include <errno.h> + #include <sys/wait.h> ++#include <sys/resource.h> + + #include <security/_pam_macros.h> + +Index: pam-1.1.3/modules/pam_unix/pam_unix_passwd.c +=================================================================== +--- pam-1.1.3.orig/modules/pam_unix/pam_unix_passwd.c 2012-08-11 23:05:29.000000000 +0000 ++++ pam-1.1.3/modules/pam_unix/pam_unix_passwd.c 2012-08-11 23:09:06.000000000 +0000 +@@ -54,6 +54,7 @@ + #include <ctype.h> + #include <sys/time.h> + #include <sys/stat.h> ++#include <sys/resource.h> + #include <rpc/rpc.h> + #ifdef HAVE_RPCSVC_YP_PROT_H + #include <rpcsvc/yp_prot.h>