Compatibility with Debian 4.0?
Howland Craig D (Craig)
Sat Nov 22 12:01:00 GMT 2008
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.)
From: firstname.lastname@example.org [mailto:email@example.com]
On Behalf Of Jason E Miller
Sent: Friday, November 21, 2008 7:12 PM
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.
More information about the Newlib