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?


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]