9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [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

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).