From: Jose M. M. da C. <Jos...@en...> - 2006-04-06 08:02:08
|
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:Jos...@en... |