Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 230743 - sys-libs/pam-0.99.9.0 - pam_lastlog.c:333: error: 'S_IRUSR' undeclared (first use in this function)
Summary: sys-libs/pam-0.99.9.0 - pam_lastlog.c:333: error: 'S_IRUSR' undeclared (first...
Status: VERIFIED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: MIPS Linux
: High normal (vote)
Assignee: MIPS Porters
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-07-04 15:55 UTC by Jon Akers
Modified: 2008-07-23 15:39 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge --info output (emerge.info,4.50 KB, text/plain)
2008-07-04 15:56 UTC, Jon Akers
Details
Build environment (environment,100.90 KB, text/plain)
2008-07-04 15:57 UTC, Jon Akers
Details
build log of failed build (build.log,78.10 KB, text/plain)
2008-07-04 15:57 UTC, Jon Akers
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jon Akers 2008-07-04 15:55:19 UTC
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.
Comment 1 Jon Akers 2008-07-04 15:56:56 UTC
Created attachment 159539 [details]
emerge --info output
Comment 2 Jon Akers 2008-07-04 15:57:17 UTC
Created attachment 159540 [details]
Build environment
Comment 3 Jon Akers 2008-07-04 15:57:37 UTC
Created attachment 159541 [details]
build log of failed build
Comment 4 Diego Elio Pettenò (RETIRED) gentoo-dev 2008-07-04 16:37:34 UTC
Does 1.0.1 work?
Comment 5 Jon Akers 2008-07-04 17:18:46 UTC
1.0.1 does compile and install without problems. Of course, now emerge world wants to downgrade it, but I can deal with that.

Comment 6 Diego Elio Pettenò (RETIRED) gentoo-dev 2008-07-04 17:25:13 UTC
MIPS team can you keyword a newer version please? Thanks.
Comment 7 Ricardo Mendoza (RETIRED) gentoo-dev 2008-07-05 15:57:48 UTC
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.
Comment 8 Diego Elio Pettenò (RETIRED) gentoo-dev 2008-07-23 15:08:41 UTC
Considering fixed as 0.99.x is unsupported by now.
Comment 9 Jon Akers 2008-07-23 15:39:36 UTC
Sounds good to me. Closing.