public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libc/10847] New: getutmpx is missing in libc.so.6
@ 2009-10-26 16:05 aurelien at aurel32 dot net
  2009-10-26 16:06 ` [Bug libc/10847] " aurelien at aurel32 dot net
                   ` (4 more replies)
  0 siblings, 5 replies; 7+ messages in thread
From: aurelien at aurel32 dot net @ 2009-10-26 16:05 UTC (permalink / raw)
  To: glibc-bugs

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.


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug libc/10847] getutmpx is missing in libc.so.6
  2009-10-26 16:05 [Bug libc/10847] New: getutmpx is missing in libc.so.6 aurelien at aurel32 dot net
@ 2009-10-26 16:06 ` aurelien at aurel32 dot net
  2009-10-26 16:17 ` jakub at redhat dot com
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 7+ messages in thread
From: aurelien at aurel32 dot net @ 2009-10-26 16:06 UTC (permalink / raw)
  To: glibc-bugs


------- Additional Comments From aurelien at aurel32 dot net  2009-10-26 16:06 -------
Created an attachment (id=4320)
 --> (http://sourceware.org/bugzilla/attachment.cgi?id=4320&action=view)
Patch to fix the problem


-- 


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.


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug libc/10847] getutmpx is missing in libc.so.6
  2009-10-26 16:05 [Bug libc/10847] New: getutmpx is missing in libc.so.6 aurelien at aurel32 dot net
  2009-10-26 16:06 ` [Bug libc/10847] " aurelien at aurel32 dot net
@ 2009-10-26 16:17 ` jakub at redhat dot com
  2009-10-26 16:21 ` aurelien at aurel32 dot net
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 7+ messages in thread
From: jakub at redhat dot com @ 2009-10-26 16:17 UTC (permalink / raw)
  To: glibc-bugs


------- Additional Comments From jakub at redhat dot com  2009-10-26 16:17 -------
What are the advantages of duplicating the code?
IMHO just add strong_alias (__getutmp, __getutmpx); after the include, and
possibly s/weak_alias/strong_alias/ also in the s390-32/getutmp.c.

-- 


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.


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug libc/10847] getutmpx is missing in libc.so.6
  2009-10-26 16:05 [Bug libc/10847] New: getutmpx is missing in libc.so.6 aurelien at aurel32 dot net
  2009-10-26 16:06 ` [Bug libc/10847] " aurelien at aurel32 dot net
  2009-10-26 16:17 ` jakub at redhat dot com
@ 2009-10-26 16:21 ` aurelien at aurel32 dot net
  2009-10-26 17:26 ` aurelien at aurel32 dot net
  2009-10-29 15:33 ` drepper at redhat dot com
  4 siblings, 0 replies; 7+ messages in thread
From: aurelien at aurel32 dot net @ 2009-10-26 16:21 UTC (permalink / raw)
  To: glibc-bugs


------- Additional Comments From aurelien at aurel32 dot net  2009-10-26 16:21 -------
I didn't though about this possibility, I'll try this option and send a new patch

-- 


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.


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug libc/10847] getutmpx is missing in libc.so.6
  2009-10-26 16:05 [Bug libc/10847] New: getutmpx is missing in libc.so.6 aurelien at aurel32 dot net
                   ` (2 preceding siblings ...)
  2009-10-26 16:21 ` aurelien at aurel32 dot net
@ 2009-10-26 17:26 ` aurelien at aurel32 dot net
  2009-10-29 15:33 ` drepper at redhat dot com
  4 siblings, 0 replies; 7+ messages in thread
From: aurelien at aurel32 dot net @ 2009-10-26 17:26 UTC (permalink / raw)
  To: glibc-bugs


------- Additional Comments From aurelien at aurel32 dot net  2009-10-26 17:26 -------
Created an attachment (id=4321)
 --> (http://sourceware.org/bugzilla/attachment.cgi?id=4321&action=view)
New patch

Please find a new patch attached.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
Attachment #4320 is|0                           |1
           obsolete|                            |


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.


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug libc/10847] getutmpx is missing in libc.so.6
  2009-10-26 16:05 [Bug libc/10847] New: getutmpx is missing in libc.so.6 aurelien at aurel32 dot net
                   ` (3 preceding siblings ...)
  2009-10-26 17:26 ` aurelien at aurel32 dot net
@ 2009-10-29 15:33 ` drepper at redhat dot com
  4 siblings, 0 replies; 7+ messages in thread
From: drepper at redhat dot com @ 2009-10-29 15:33 UTC (permalink / raw)
  To: glibc-bugs


------- Additional Comments From drepper at redhat dot com  2009-10-29 15:33 -------
I fixed this in git but not with the patch attached here.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED


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.


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug libc/10847] getutmpx is missing in libc.so.6
       [not found] <bug-10847-131@http.sourceware.org/bugzilla/>
@ 2014-07-01  5:33 ` fweimer at redhat dot com
  0 siblings, 0 replies; 7+ messages in thread
From: fweimer at redhat dot com @ 2014-07-01  5:33 UTC (permalink / raw)
  To: glibc-bugs

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

Florian Weimer <fweimer at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
              Flags|                            |security-

-- 
You are receiving this mail because:
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2014-07-01  5:33 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-10-26 16:05 [Bug libc/10847] New: getutmpx is missing in libc.so.6 aurelien at aurel32 dot net
2009-10-26 16:06 ` [Bug libc/10847] " aurelien at aurel32 dot net
2009-10-26 16:17 ` jakub at redhat dot com
2009-10-26 16:21 ` aurelien at aurel32 dot net
2009-10-26 17:26 ` aurelien at aurel32 dot net
2009-10-29 15:33 ` drepper at redhat dot com
     [not found] <bug-10847-131@http.sourceware.org/bugzilla/>
2014-07-01  5:33 ` fweimer at redhat dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).