Description of problem:
'make headers_install' in linux-126.96.36.199 fails because the function 'getline' from stdio.h is exposed without the user having to declare any extra feature test macros.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Download and extract linux-188.8.131.52.tar.bz2
2. cd linux-184.108.40.206
3. make headers_install
linux-220.127.116.11]$ make headers_install
scripts/basic/fixdep.c: In function ‘traps’:
scripts/basic/fixdep.c:377: warning: dereferencing type-punned pointer will break strict-aliasing rules
scripts/basic/fixdep.c:379: warning: dereferencing type-punned pointer will break strict-aliasing rules
scripts/unifdef.c:209: error: conflicting types for ‘getline’
/usr/include/stdio.h:653: note: previous declaration of ‘getline’ was here
make: *** [scripts/unifdef] Error 1
make: *** [__headers] Error 2
'make headers_install' succeeds.
'getline' is a common function name. My uneducated guess is that we don't want __USE_XOPEN2K8 to be true without the user defining an extra feature test macro?
This has been already fixed in newer kernels.
getline is a standard POSIX 2008 function and we do want POSIX C 2008 stuff by default. If you don't like it, choose a different namespace or rename your functions.
Just an FYI, this change also broke GNUChess which is no longer maintained upstream.