Red Hat Bugzilla – Bug 1305176
stddef.h defines _BSD_SIZE_T_ badly
Last modified: 2016-02-06 05:36:54 EST
Created attachment 1121524 [details]
I made an installation of Fedora rawhide.
I also have a container with Fedora-23.
Both have the following line in /usr/lib/gcc/x86_64-redhat-linux/6.0.0/include/stddef.h (or 5.3.1):
It ends up being defined but as nothing.
This conflicts with #ifdef _BSD_SIZE_T use.
I'm attempting to compile NetBSD-current/amd64 (with MKLLVM=yes HAVE_LLVM=yes)
It tries to see if _BSD_SIZE_T_ is defined, if not it will define it as size_t in the following file: http://nxr.netbsd.org/xref/src/sys/sys/exec_elf.h#49
(In reply to coypu from comment #0)
> Both have the following line in
> /usr/lib/gcc/x86_64-redhat-linux/6.0.0/include/stddef.h (or 5.3.1):
> #define _BSD_SIZE_T_
> It ends up being defined but as nothing.
> This conflicts with #ifdef _BSD_SIZE_T use.
I don't see how. <stddef.h> is part of GCC, not glibc.
Could you please describe the problem you are actually experiencing, and not what you think is its cause?
Plus, even when this file is owned by gcc, I don't see why you've filed it in redhat bugzilla, we really don't ship NetBSD or even NetBSD cross-compilers.
So, the only reasonable place to report this is gcc.gnu.org/bugzilla.
Note that GCC stddef.h has been doing that for at least 19+ years (couldn't find older history on that file), so if something changed, it most likely has been some relatively recent incompatible change in the NetBSD headers.