Bug 1305176

Summary: stddef.h defines _BSD_SIZE_T_ badly
Product: [Fedora] Fedora Reporter: coypu
Component: glibcAssignee: Carlos O'Donell <codonell>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: unspecified    
Version: 23CC: arjun.is, codonell, dj, fweimer, jakub, law, mfabian, pfrankli, siddhesh
Target Milestone: ---Keywords: Reopened
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-02-06 10:36:54 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
Rawhide stddef.h none

Description coypu 2016-02-05 22:44:38 UTC
Created attachment 1121524 [details]
Rawhide stddef.h

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):

#define _BSD_SIZE_T_

It ends up being defined but as nothing. 
This conflicts with #ifdef _BSD_SIZE_T use.

Comment 1 coypu 2016-02-05 23:03:27 UTC
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

Comment 2 Florian Weimer 2016-02-06 10:05:15 UTC
(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?

Comment 3 Jakub Jelinek 2016-02-06 10:36:54 UTC
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.