http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47491
Summary: [4.6 Regression] libgfortran: getpwuid_r (for GETLOG) breaks bootstrapping Product: gcc Version: 4.6.0 Status: UNCONFIRMED Keywords: build Severity: normal Priority: P3 Component: fortran AssignedTo: unassig...@gcc.gnu.org ReportedBy: bur...@gcc.gnu.org CC: j...@gcc.gnu.org Follow up to PR 47375 GETLOG thread safety: As Rainer Orth reports, the patch breaks bootstrapping on Solaris http://gcc.gnu.org/ml/fortran/2011-01/msg00245.html Solaris has two versions of getpwuid_r - one matching a draft and one the final POSIX version: #if (_POSIX_C_SOURCE - 0 >= 199506L) || defined(_POSIX_PTHREAD_SEMANTICS) extern int getpwuid_r(uid_t, struct passwd *, char *, int, struct passwd **); #else extern struct passwd *getpwuid_r(uid_t, struct passwd *, char *, int); #endif