This is the mail archive of the newlib@sourceware.org mailing list for the newlib project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: Compatibility with Debian 4.0?


Craig,
     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 function)
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 function)
sysconf.c:515: error: '_SC_TRACE_SYS_MAX' undeclared (first use in this function)
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 function)

  -Jason

> A quick thing to try is to use _SC_PAGESIZE instead of _SC_PAGE_SIZE.
> (They're supposed to be the same, but they are not quite straight at
> the moment, it seems.)
> 				Craig Howland
>
> -----Original Message-----
> From: newlib-owner@sourceware.org [mailto:newlib-owner@sourceware.org]
> On Behalf Of Jason E Miller
> Sent: Friday, November 21, 2008 7:12 PM
> To: newlib@sources.redhat.com
> Subject: Compatibility with Debian 4.0?
>
> ...
>
> I'm able to configure and build everything without errors (although
> there are about 926 warnings); however, my application fails when
> it tries to spawn a thread using pthread_create.  I managed to
> trace the error back to sysconf(_SC_PAGE_SIZE) returning -1
> resulting in __pthread_initialize_manager attempting to malloc a
> block of memory with a negative size.  I'm at a loss as to why
> sysconf is returning "unsupported" for the page size.
>
> ...
>
>   -Jason
>



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]