Compatibility with Debian 4.0?
Jason E Miller
Mon Nov 24 20:18:00 GMT 2008
I agree that it seems to be getting unistd.h from elsewhere
but I'm not sure how to determine which one it's pulling in. I'm
guessing that it's getting the one in /usr/include/sys/unistd.h.
I checked and none of the unistd.h files in /usr/include define
the missing values. I'm not trying to build a full toolchain.
I'm just trying to build a native newlib using the installed gcc.
Maybe that's why it's getting the wrong version?
I guess the other strong possibility is that it's getting
the version in newlib/libc/sys/linux/sys/ instead of the one you
patched in newlib/libc/include/sys/. The one in sys/linux/sys
seems to include some system header files (bits/environments.h
and bits/confname.h). Again, /usr/include/bits/confname.h on my
machine does not contain defines for the missing symbols.
Let me know if there's any other information I can provide
that might help shed light on this.
> That's odd. From where is your compiler getting sys/unistd.h?
> your error, it would appear to not be getting the one from newlib.
> -----Original Message-----
> From: Jason E Miller [mailto:jasonm@MIT.EDU]
> Sent: Friday, November 21, 2008 10:54 PM
> To: Howland Craig D (Craig)
> Cc: email@example.com
> Subject: RE: Compatibility with Debian 4.0?
> Thanks for the quick responses. I think I already tried the
> _SC_PAGESIZE suggestion but I tried it again to be sure and it didn't
> change anything. I also tried applying the patch you sent out but I
> get compilation errors in newlib/src/newlib/libc/sys/linux/sysconf.c:
> sysconf.c: In function 'sysconf':
> sysconf.c:375: error: '_SC_SS_REPL_MAX' undeclared (first use in this
> sysconf.c:375: error: (Each undeclared identifier is reported only once
> sysconf.c:375: error: for each function it appears in.)
> sysconf.c:487: error: '_SC_TRACE_EVENT_NAME_MAX' undeclared (first use
> in this function)
> sysconf.c:508: error: '_SC_TRACE_NAME_MAX' undeclared (first use in this
> sysconf.c:515: error: '_SC_TRACE_SYS_MAX' undeclared (first use in this
> sysconf.c:522: error: '_SC_TRACE_USER_EVENT_MAX' undeclared (first use
> in this function)
> sysconf.c:878: error: '_SC_XOPEN_STREAMS' undeclared (first use in this
More information about the Newlib