This is the mail archive of the
newlib@sourceware.org
mailing list for the newlib project.
RE: Compatibility with Debian 4.0?
- From: "Howland Craig D (Craig)" <howland at LGSInnovations dot com>
- To: "Jason E Miller" <jasonm at MIT dot EDU>, <newlib at sources dot redhat dot com>
- Date: Fri, 21 Nov 2008 19:20:24 -0500
- Subject: RE: Compatibility with Debian 4.0?
- References: <20081121191157.bt389by1w8rowss0@webmail.mit.edu>
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