FS#30645 - [pam] builds no longer

Attached to Project: Arch Linux
Opened by Nicky726 (Nicky726) - Wednesday, 11 July 2012, 19:11 GMT
Last edited by Tobias Powalowski (tpowa) - Friday, 12 October 2012, 09:14 GMT
Task Type Bug Report
Category Packages: Core
Status Closed
Assigned To Tobias Powalowski (tpowa)
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 3
Private No

Details

Description:

The build process of pam from abs ends with error:

Additional info:
pam is version 1.1.5-4
the end of makepkg output:
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../.. -I../../libpam/include -I../../libpamc/include -DCHKPWD_HELPER=\"/sbin/unix_chkpwd\" -DUPDATE_HELPER=\"/sbin/unix_update\" -march=i686 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -I/usr/include/tirpc -march=i686 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -MT pam_unix_auth.lo -MD -MP -MF .deps/pam_unix_auth.Tpo -c pam_unix_auth.c -fPIC -DPIC -o .libs/pam_unix_auth.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: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
make[3]: *** [pam_unix_acct.lo] Error 1
make[3]: *** Waiting for unfinished jobs....
mv -f .deps/bigcrypt.Tpo .deps/bigcrypt.Plo
mv -f .deps/pam_unix_auth.Tpo .deps/pam_unix_auth.Plo
make[3]: Leaving directory `/tmp/pam/src/Linux-PAM-1.1.5/modules/pam_unix'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/tmp/pam/src/Linux-PAM-1.1.5/modules'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/tmp/pam/src/Linux-PAM-1.1.5'
make: *** [all] Error 2

May be related to some updates during Wednesday--Monday timeframe. Tested on i686.

Steps to reproduce:
get pam from abs and run makepkg.
This task depends upon

Closed by  Tobias Powalowski (tpowa)
Friday, 12 October 2012, 09:14 GMT
Reason for closing:  Fixed
Additional comments about closing:  1.1.6-1
Comment by Dave Reisner (falconindy) - Wednesday, 11 July 2012, 19:38 GMT
Related to glibc 2.16. There's now a missing include for <sys/resources.h> in modules/pam_unix/pam_unix_auth.c

There's an additional build failure for this package in pam_unix2 that I'm not willing to fix, but dropping the module may not be an immediately available option.
Comment by Tobias Powalowski (tpowa) - Thursday, 12 July 2012, 07:51 GMT
Patch for issue added to trunk,
problem for pam_unix2 still not fixed and I don't know how to fix.
Comment by Brian Martínez (angelux) - Friday, 20 July 2012, 16:33 GMT
Found a patch here, don't know if this helps http://patches.openembedded.org/patch/31245/
Comment by Gábor Szarka (gsx1022) - Sunday, 22 July 2012, 16:08 GMT
Maybe I'm missing something, but I don't see why wouldn't it be possible to drop support for pam_unix2. I checked my system: by default, it is not used.
Comment by Garry Roseman (sitquietly) - Friday, 27 July 2012, 21:14 GMT
FYI for my source-based Arch I removed pam_unix2 and my system has been ok (obviously I don't try to use blowfish passwords). The build and package functions for pam-1.1.5:
build() {
cd $srcdir/Linux-PAM-$pkgver
patch -Np1 -i "${srcdir}/Linux-PAM-1.1.5+glibc-2.16.patch"
./configure --libdir=/usr/lib
make
}

package() {
cd $srcdir/Linux-PAM-$pkgver
make DESTDIR=$pkgdir install
.....
The patch is here: http://packages.gentoo.org/package/sys-libs/pam

Loading...