[En-Nut-Discussion] strtok_r conflicts

Theodore A. Roth troth at openavr.org
Mon Aug 11 21:07:52 CEST 2003


Hi,

I just tried to compile nutos from cvs and came across this error:

make[2]: Entering directory
`/home/roth/dev/ethernut/nut-cvs/app/httpd'
avr-gcc -c -mmcu=atmega128 -Os -Wall -Wstrict-prototypes
-Wa,-ahlms=httpserv.lst  -I../../mod/include -I../../include
httpserv.c -o httpserv.o
In file included from httpserv.c:61:
../../include/strtok_r.h:11: error: conflicting types for `strtok_r'
/home/roth/local/avr/avr/include/string.h:83: error: previous
declaration of `strtok_r'
make[2]: *** [httpserv.o] Error 1
make[2]: Leaving directory `/home/roth/dev/ethernut/nut-cvs/app/httpd'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/roth/dev/ethernut/nut-cvs/app'
make: *** [apps] Error 2


My avr-libc is the current cvs version. The strtok_r prototype was add
2003/06/20:

http://savannah.nongnu.org/cgi-bin/viewcvs/avr-libc/avr-libc/include/string.h.diff?r1=1.4&r2=1.5

I also noticed that the strtok_r decl in nutos is different than that
in avr-libc and linux.


Ted Roth



More information about the En-Nut-Discussion mailing list