make[1]: Entering directory `...ircservices/work/ircservices-5.0.64/lang' gcc -DSTATIC_MODULES -Wno-error -g -Wall -Wmissing-prototypes -fno-builtin-log langcomp.c -o langcomp langcomp.c:118:14: error: conflicting types for 'getline' static char *getline(FILE *f) ^ In file included from /boot/system/develop/headers/bsd/stdio.h:9:0, from langcomp.c:40: /boot/system/develop/headers/posix/stdio.h:151:16: note: previous declaration of 'getline' was here extern ssize_t getline(char **_line, size_t *_length, FILE *stream); ^ make[1]: *** [langcomp] Error 1 On Sat, Aug 30, 2014 at 2:28 AM, Ingo Weinhold <ingo_weinhold@xxxxxx> wrote: > On 30.08.2014 08:18, James Leone wrote: > >> "Based on the order of include directory listing on the command line and >> whether there was a bsd/ in the include directive." >> >> So because the output from gcc -v has: >> .../posix >> .../bsd >> > > Yes, if that is the order, headers with the same name in "bsd" will be > ignored. IOW that is the wrong order. According to the sources it is, > however, not the order in which the standard include search paths are built > into the compilers [1,2]. > > I don't have access to a current Haiku ATM. If you see this include search > path order with a stock gcc invocation (i.e. if you aren't manipulating the > paths yourself), please file a ticket. > > CU, Ingo > > [1] http://cgit.haiku-os.org/buildtools/tree/gcc/gcc/config/haiku.h?id= > 862b5480a92d92516e08cfebd62fcb1c85a18b0a#n115 > [2] http://cgit.haiku-os.org/buildtools/tree/legacy/gcc/ > gcc/config/i386/haiku.h#n394 > > >