Issue 5464 - ucred guarded by __USE_GNU in glibc 2.8
Summary: ucred guarded by __USE_GNU in glibc 2.8
Status: VERIFIED FIXED
Alias: None
Product: OpenLDAP
Classification: Unclassified
Component: build (show other issues)
Version: unspecified
Hardware: All All
: --- normal
Target Milestone: ---
Assignee: OpenLDAP project
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-04-11 08:44 UTC by Ralf
Modified: 2014-08-01 21:04 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Ralf 2008-04-11 08:44:03 UTC
Full_Name: Ralf Haferkamp
Version: Any
OS: Linux (glibc 2.8)
URL: ftp://ftp.openldap.org/incoming/
Submission from: (NULL) (85.8.71.17)


Newer glibc Version guards the definition of struct ucred (e.g. used in
liblutil/getpeereid.c) by __USE_GNU, hence it is only available when _GNU_SOURCE
is defined.

The matching glibc changelog only say "Cleanup namespace.". Here's the diff:

http://sourceware.org/cgi-bin/cvsweb.cgi/libc/sysdeps/unix/sysv/linux/bits/socket.h.diff?r1=1.60&r2=1.61&cvsroot=glibc

Comment 1 Hallvard Furuseth 2008-04-11 11:28:50 UTC
moved from Incoming to Build
Comment 2 Howard Chu 2008-06-06 20:57:57 UTC
rhafer@suse.de wrote:
> Full_Name: Ralf Haferkamp
> Version: Any
> OS: Linux (glibc 2.8)
> URL: ftp://ftp.openldap.org/incoming/
> Submission from: (NULL) (85.8.71.17)
>
>
> Newer glibc Version guards the definition of struct ucred (e.g. used in
> liblutil/getpeereid.c) by __USE_GNU, hence it is only available when _GNU_SOURCE
> is defined.
>
> The matching glibc changelog only say "Cleanup namespace.". Here's the diff:
>
> http://sourceware.org/cgi-bin/cvsweb.cgi/libc/sysdeps/unix/sysv/linux/bits/socket.h.diff?r1=1.60&r2=1.61&cvsroot=glibc

This is a bug in glibc. Luca Scamoni reported it upstream here
http://sources.redhat.com/bugzilla/show_bug.cgi?id=6545

-- 
   -- Howard Chu
   CTO, Symas Corp.           http://www.symas.com
   Director, Highland Sun     http://highlandsun.com/hyc/
   Chief Architect, OpenLDAP  http://www.openldap.org/project/

Comment 3 Howard Chu 2009-02-18 00:21:24 UTC
changed notes
changed state Open to Suspended
Comment 4 Howard Chu 2009-04-14 22:37:19 UTC
changed notes
changed state Suspended to Test
Comment 5 Quanah Gibson-Mount 2009-04-29 01:50:07 UTC
changed notes
changed state Test to Release
Comment 6 Quanah Gibson-Mount 2009-07-22 17:09:38 UTC
changed notes
changed state Release to Closed
Comment 7 OpenLDAP project 2014-08-01 21:04:05 UTC
glibc, workaround in HEAD
workaround in RE24