* [9fans] p9p installation err: conflicting types @ 2010-07-11 15:50 Bjartur Thorlacius 2010-07-11 16:44 ` Eoghan Sherry 0 siblings, 1 reply; 3+ messages in thread From: Bjartur Thorlacius @ 2010-07-11 15:50 UTC (permalink / raw) To: Fans of Plan 9 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 ^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [9fans] p9p installation err: conflicting types 2010-07-11 15:50 [9fans] p9p installation err: conflicting types Bjartur Thorlacius @ 2010-07-11 16:44 ` Eoghan Sherry 2010-07-11 23:42 ` [9fans] [solved] " Bjartur Thorlacius 0 siblings, 1 reply; 3+ messages in thread From: Eoghan Sherry @ 2010-07-11 16:44 UTC (permalink / raw) To: Fans of the OS Plan 9 from Bell Labs On 11 July 2010 11:50, Bjartur Thorlacius <svartman95@gmail.com> wrote: > tar.c:426: error: conflicting types for 'strnlen' > /usr/include/string.h:404: error: previous declaration of 'strnlen' was here This was fixed some time ago: http://code.swtch.com/plan9port/diff/src/cmd/tar.c?diff2=3bc490577d95&diff1=adde59fe69bf Grab an updated tree from http://swtch.com/plan9port/. By the way, there's a mailing list specific to p9p at http://groups.google.com/group/plan9port-dev. Eoghan ^ permalink raw reply [flat|nested] 3+ messages in thread
* [9fans] [solved] p9p installation err: conflicting types 2010-07-11 16:44 ` Eoghan Sherry @ 2010-07-11 23:42 ` Bjartur Thorlacius 0 siblings, 0 replies; 3+ messages in thread From: Bjartur Thorlacius @ 2010-07-11 23:42 UTC (permalink / raw) To: Eoghan Sherry; +Cc: Fans of the OS Plan 9 from Bell Labs > On 11 July 2010 11:50, Bjartur Thorlacius <svartman95@gmail.com> wrote: > > tar.c:426: error: conflicting types for 'strnlen' > > /usr/include/string.h:404: error: previous declaration of 'strnlen' was here > > This was fixed some time ago: > http://code.swtch.com/plan9port/diff/src/cmd/tar.c?diff2=3bc490577d95&diff1=adde59fe69bf > > Grab an updated tree from http://swtch.com/plan9port/. OK, I used the tree in Portage which is over a year old. My bad. The new tree works fine. > By the way, there's a mailing list specific to p9p at > http://groups.google.com/group/plan9port-dev. Thanks, I didn't know. ^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2010-07-11 23:42 UTC | newest] Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2010-07-11 15:50 [9fans] p9p installation err: conflicting types Bjartur Thorlacius 2010-07-11 16:44 ` Eoghan Sherry 2010-07-11 23:42 ` [9fans] [solved] " Bjartur Thorlacius
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).