[Bug libc/10847] New: getutmpx is missing in libc.so.6

aurelien at aurel32 dot net sourceware-bugzilla@sourceware.org
Mon Oct 26 16:05:00 GMT 2009


On 32-bit S390 systems, getutmpx@@GLIBC_2.9 is missing in libc.so.6, only
getutmpx@@GLIBC_2.1.1 is present. This is due to the compat code:

getutmpx is defined in sysdeps/unix/sysv/linux/s390/s390-32/getutmp.c:
#define getutmpx __getutmpx
#include "sysdeps/gnu/getutmp.c"

and undefined in sysdeps/gnu/getutmp.c:
/* This is an ugly hack but we must not see the getutmpx declaration.  */
#define getutmpx XXXgetutmpx
#include <utmpx.h>
#undef getutmpx

The attached patch fixes the problem by not including sysdeps/gnu/getutmp.c, but
copying part of the code directly into
sysdeps/unix/sysv/linux/s390/s390-32/getutmp.c

-- 
           Summary: getutmpx is missing in libc.so.6
           Product: glibc
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: libc
        AssignedTo: drepper at redhat dot com
        ReportedBy: aurelien at aurel32 dot net
                CC: glibc-bugs at sources dot redhat dot com
 GCC build triplet: s390-linux-gnu
  GCC host triplet: s390-linux-gnu
GCC target triplet: s390-linux-gnu


http://sourceware.org/bugzilla/show_bug.cgi?id=10847

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.



More information about the Glibc-bugs mailing list