Bug 1305176 - stddef.h defines _BSD_SIZE_T_ badly
Summary: stddef.h defines _BSD_SIZE_T_ badly
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: glibc
Version: 23
Hardware: x86_64
OS: Linux
unspecified
low
Target Milestone: ---
Assignee: Carlos O'Donell
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-02-05 22:44 UTC by coypu
Modified: 2016-02-06 10:36 UTC (History)
9 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-02-06 10:36:54 UTC
Type: Bug
Embargoed:


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

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.


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