I'm trying to install Plan 9 from User Space, but I get errors about
conflicting types for common library functions. I remember tracing the
error to a library that I figured got included and commenting out some
declarations. That made the error disappear just so GCC could get to
another conflicting definition (of another function). Can't remember
what header I changed.

I don't know much C, but with some stretching my understanding
of #includes in Plan9 from User Space I traced strnlen to
/usr/include/string.h, though even that was wrapped in #ifdef
__USE_XOPEN2K8. Do I have to tell GCC explicitly not to link certain
headers automagically or something?

tar.c:426: error: conflicting types for 'strnlen'
/usr/include/string.h:404: error: previous declaration of 'strnlen' was here

http://pastebin.com/XNDePuSU

Reply via email to