Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 500824

Summary: sys-process/audit on HPPA with sys-kernel/linux-headers-3.7 (?) - SOCK_NONBLOCK in /usr/include/bits/socket_type.h clashes with /usr/include/asm/socket.h
Product: Gentoo Linux Reporter: Jeroen Roovers (RETIRED) <jer>
Component: Current packagesAssignee: Robin Johnson <robbat2>
Status: RESOLVED OBSOLETE    
Severity: normal CC: hppa
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: glibc-2.17-SOCK_NONBLOCK.patch

Description Jeroen Roovers (RETIRED) gentoo-dev 2014-02-10 00:51:52 UTC
Created attachment 369998 [details, diff]
glibc-2.17-SOCK_NONBLOCK.patch

As far as I can tell, SOCK_NONBLOCK support was added to glibc in May 2008, but only in November/December 2013 was support added to the HPPA kernel, which now makes linux-headers and glibc clash.

Attached are two (conflicting) patches, both of which make sys-process/audit compile as it should, although I can't tell which is the proper way of doing this. Looking through the glibc patch archives, the #undef road was previously taken to get alpha up to speed.

Now why sys-process/audit wants to talk to linux-headers or other kernel sources directly is beyond me, but that is the way the ebuilds and build system work for now.
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2014-02-10 01:15:09 UTC
Apparently it did go into kernel 3.7, too.
Comment 2 SpanKY gentoo-dev 2014-02-10 05:54:23 UTC
Comment on attachment 369998 [details, diff]
glibc-2.17-SOCK_NONBLOCK.patch

glibc is behaving correctly.  we aren't going to apply this patch.