pam_lastlog.c is failing to build with the following error report: pam_lastlog.c: In function 'last_login_read': pam_lastlog.c:199: warning: implicit declaration of function 'asprintf' pam_lastlog.c: In function 'last_login_date': pam_lastlog.c:333: error: 'S_IRUSR' undeclared (first use in this function) pam_lastlog.c:333: error: (Each undeclared identifier is reported only once pam_lastlog.c:333: error: for each function it appears in.) pam_lastlog.c:333: error: 'S_IWUSR' undeclared (first use in this function) pam_lastlog.c:333: error: 'S_IRGRP' undeclared (first use in this function) pam_lastlog.c:333: error: 'S_IROTH' undeclared (first use in this function) make[3]: *** [pam_lastlog.lo] Error 1 This is on a Lemote Fulong machine, so we are dealing with a Mips Loongson 2E chipset. Reproducible: Always Steps to Reproduce: 1. emerge pam 2. 3. Actual Results: Build fails Expected Results: Build should succeed Will submit full build log, ebuild environment file, and emerge --info output as attachments.
Created attachment 159539 [details] emerge --info output
Created attachment 159540 [details] Build environment
Created attachment 159541 [details] build log of failed build
Does 1.0.1 work?
1.0.1 does compile and install without problems. Of course, now emerge world wants to downgrade it, but I can deal with that.
MIPS team can you keyword a newer version please? Thanks.
I have keyworded ~mips sys-libs/pam-1.0.1 and sys-auth/pambase-20080318. Regarding the compile problem of 0.99.9.0... I tried with my O2 several times and I couldnt trigger that bug you are finding in pam_lastlog.c, those defines that seem to be missing come from sys/stat.h which clears correctly at configure time in your bootlog, only difference with our env is that I am using binutils 2.17. Therefore, might be related to bug #224237, try downgrading.
Considering fixed as 0.99.x is unsupported by now.
Sounds good to me. Closing.