Bug 1305176 - stddef.h defines _BSD_SIZE_T_ badly
stddef.h defines _BSD_SIZE_T_ badly
Product: Fedora
Classification: Fedora
Component: glibc (Show other bugs)
x86_64 Linux
unspecified Severity low
: ---
: ---
Assigned To: Carlos O'Donell
Fedora Extras Quality Assurance
: Reopened
Depends On:
  Show dependency treegraph
Reported: 2016-02-05 17:44 EST by coypu
Modified: 2016-02-06 05:36 EST (History)
9 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2016-02-06 05:36:54 EST
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)
Rawhide stddef.h (13.43 KB, text/x-csrc)
2016-02-05 17:44 EST, coypu
no flags Details

  None (edit)
Description coypu 2016-02-05 17:44:38 EST
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 18:03:27 EST
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 05:05:15 EST
(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 05:36:54 EST
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.

Note You need to log in before you can comment on or make changes to this bug.