From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <4c39e845.9290d80a.2871.2bc8@mx.google.com> Date: Sun, 11 Jul 2010 15:50:19 +0000 To: "Fans of Plan 9" <9fans@9fans.net> cc: From: "Bjartur Thorlacius" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <17275.1278863289.1@lappi> Subject: [9fans] p9p installation err: conflicting types Topicbox-Message-UUID: 3e48bd3c-ead6-11e9-9d60-3106f5b1d025 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