Re: Re: Compile problem under Linux Fedora 5

Jose Marcio Martins da Cruz <[email protected]> Thu, 06 Apr 2006 09:40:58 +0200
Newsgroups gmane.comp.lib.state-threads.devel
Message-ID <[email protected]>
Gene wrote:
> Hmm, I have a sneaky suspicion that they finally made JB_SP a private
> definition in new version of glibc (2.4). It's still defined  internally in
> sysdeps/i386/jmpbuf-offsets.h
> 
> Simple fix is to add this missing macro in md.h in the LINUX section:
> 
> #elif defined(__i386__)
> #define MD_STACK_GROWS_DOWN
> 
> #if defined(__GLIBC__) && __GLIBC__ >= 2
> #ifndef JB_SP
> /* From sysdeps/i386/jmpbuf-offsets.h in glibc 2.4 */
> #define JB_SP 4
> #endif
> #define MD_GET_SP(_t) (_t)->context[0].__jmpbuf[JB_SP]
> #else
> 
> Please give it a try.  If it works, we'll add this to the next ST  release.

I've already did it. It segfaults. 8-(

Moreover, Fedora 5 come with glibc 2.4.4 (not the official 2.4 release).

For a reason I don't know, the glibc installed with Fedora 5 doesn't
have this header file (jmpbuf-offsets.h). glibc 2.4 (glibc from gnu web
site has this header but not Fedora distributed glibc).

glibc versions are :

# rpm -qa|grep glibc
glibc-devel-2.4-4
glibc-kernheaders-3.0-5.2
glibc-2.4-4
glibc-common-2.4-4
glibc-headers-2.4-4

Odd thing 8-(


-- 
 ---------------------------------------------------------------
 Jose Marcio MARTINS DA CRUZ           Tel. :(33) 01.40.51.93.41
 Ecole des Mines de Paris              http://j-chkmail.ensmp.fr
 60, bd Saint Michel                http://www.ensmp.fr/~martins
 75272 - PARIS CEDEX 06      mailto:[email protected]


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642