This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libc/14809] New: glibc's sysctl.h thinks it knows the <linux/kernel.h> feature test macro


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]