public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libc/14809] New: glibc's sysctl.h thinks it knows the <linux/kernel.h> feature test macro
@ 2012-11-05 20:30 kkeithle at redhat dot com
  2012-11-05 20:33 ` [Bug libc/14809] " kkeithle at redhat dot com
                   ` (10 more replies)
  0 siblings, 11 replies; 12+ messages in thread
From: kkeithle at redhat dot com @ 2012-11-05 20:30 UTC (permalink / raw)
  To: glibc-bugs

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

             Bug #: 14809
           Summary: glibc's sysctl.h thinks it knows the <linux/kernel.h>
                    feature test macro
           Product: glibc
           Version: 2.16
            Status: NEW
          Severity: normal
          Priority: P2
         Component: libc
        AssignedTo: unassigned@sourceware.org
        ReportedBy: kkeithle@redhat.com
                CC: drepper.fsp@gmail.com
    Classification: Unclassified


./sysdeps/unix/sysv/linux/sys/sysctl.h contains:

/* Prevent more kernel headers than necessary to be included.  */
#ifndef _LINUX_KERNEL_H
# define _LINUX_KERNEL_H        1
# define __undef_LINUX_KERNEL_H
#endif
#ifndef _LINUX_TYPES_H
# define _LINUX_TYPES_H         1
# define __undef_LINUX_TYPES_H
#endif
#ifndef _LINUX_LIST_H
# define _LINUX_LIST_H          1
# define __undef_LINUX_LIST_H
#endif
#ifndef __LINUX_COMPILER_H
# define __LINUX_COMPILER_H     1
# define __user
# define __undef__LINUX_COMPILER_H
#endif

But starting with kernel 3.7, the feature test macros are _UAPI_LINUX_KERNEL_H
and _UAPI_LINUX_TYPES_H (and no file uses *_LIST_H or *_COMPILER_H AFAICT)

As such the above doesn't work and third party apps that include the
(in)correct mix of header files don't compile due to conflicting types, e.g.
include both <stdint.h> and <sys/sysctl.h> in one source file.

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


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

end of thread, other threads:[~2014-06-14 11:13 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-11-05 20:30 [Bug libc/14809] New: glibc's sysctl.h thinks it knows the <linux/kernel.h> feature test macro kkeithle at redhat dot com
2012-11-05 20:33 ` [Bug libc/14809] " kkeithle at redhat dot com
2012-11-05 20:36 ` [Bug libc/14809] glibc's sysctl.h uses incorrect <linux/kernel.h> feature test macro starting with kernel-3.7.x kkeithle at redhat dot com
2012-11-06 14:25 ` kkeithle at redhat dot com
2012-11-06 14:33 ` [Bug libc/14809] glibc's sysctl.h uses incorrect <linux/kernel.h> header guard " kkeithle at redhat dot com
2012-11-07  8:48 ` aj at suse dot de
2012-11-07 20:43 ` aj at suse dot de
2012-11-13  0:15 ` carlos_odonell at mentor dot com
2012-11-13  8:06 ` aj at suse dot de
2012-11-27 14:17 ` schwab@linux-m68k.org
2012-11-28 15:43 ` schwab@linux-m68k.org
2014-06-14 11:13 ` 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).