kevinlawler/kona — Issue #148: conflicting types for ‘getline’
Author: 4571345
Created: 2011-10-17 00:37:30+00:00
State: open

today, after installing new xcode 4.2 on osx 10.7.2, i started getting these errors when compiling kona:

mac:kevinlawler-kona-271c488 alex$ make
cc -O3 -fast -c -o 0.o 0.c
cc -O3 -fast -c -o c.o c.c
cc -O3 -fast -c -o getline.o getline.c
In file included from getline.c:3:
getline.h:3: error: conflicting types for ‘getline’
/usr/include/stdio.h:449: error: previous declaration of ‘getline’ was here
getline.h:8: error: conflicting types for ‘getdelim’
/usr/include/stdio.h:448: error: previous declaration of ‘getdelim’ was here
getline.h:9: error: conflicting types for ‘getdelim’
/usr/include/stdio.h:448: error: previous declaration of ‘getdelim’ was here
getline.c:46: error: conflicting types for ‘getdelim’
/usr/include/stdio.h:448: error: previous declaration of ‘getdelim’ was here
getline.c:48: error: conflicting types for ‘getline’
/usr/include/stdio.h:449: error: previous declaration of ‘getline’ was here
getline.c:50: error: conflicting types for ‘getdelim’
/usr/include/stdio.h:448: error: previous declaration of ‘getdelim’ was here
make: *** [getline.o] Error 1

this might be relevant:
http://stackoverflow.com/questions/7376566/can-an-ansi-c-compliant-implementation-include-additional-functions-in-its-stand

thank you
A