[Bug 2881] getdelim definition in openbsd compat conflicts with /usr/include/stdio.h on Fedora 28 with master

bugzilla-daemon at bugzilla.mindrot.org bugzilla-daemon at bugzilla.mindrot.org
Wed Jul 4 04:31:27 AEST 2018


https://bugzilla.mindrot.org/show_bug.cgi?id=2881

Roumen Petrov <bugtrack at roumenpetrov.info> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bugtrack at roumenpetrov.info

--- Comment #1 from Roumen Petrov <bugtrack at roumenpetrov.info> ---
No comments on proposed patch!

Few lines after /usr/include/stdio.h:606: is getline declaration.
For protocol in current master getdelim 
(
https://sourceware.org/git/?p=glibc.git;a=blob;f=libio/stdio.h;h=731f8e56f4c115a1a507b85babaa22b21efb140c;hb=HEAD#l600
) in online 600 while get;line on 610.

Real question why on this system getline is not detected?

Hints: 
- on linux  configure script defines -D_XOPEN_SOURCE=600 -D_BSD_SOURCE
-D_DEFAULT_SOURCE;

- if _DEFAULT_SOURCE is defined then   _POSIX_C_SOURCE is set to
200809L 
(https://sourceware.org/git/?p=glibc.git;a=blob;f=include/features.h;h=d22c32eee6a98c350cad4267b15355fb271b9818;hb=HEAD#l258);

- __USE_XOPEN2K8 is set to 1 if _POSIX_C_SOURCE > 200112L or
POSIX_C_SOURCE >= 200809L (
https://sourceware.org/git/?p=glibc.git;a=blob;f=include/features.h;h=d22c32eee6a98c350cad4267b15355fb271b9818;hb=HEAD#l323
) 

- if __USE_XOPEN2K8 is defined stdio.h header should declare getdelim
and getline .


I cannot reproduce issue on other GNU C-lib (old 2.23). 

Why detection fail on reported system?

-- 
You are receiving this mail because:
You are watching the assignee of the bug.


More information about the openssh-bugs mailing list