Re: Compile problem under Linux Fedora 5

Gene <[email protected]> Thu, 6 Apr 2006 00:21:47 -0700
Newsgroups gmane.comp.lib.state-threads.devel
Message-ID <[email protected]>
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 =20
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__ >=3D 2
#ifndef JB_SP
/* =46rom 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 =20
release.
Thanks!


On Mar 30, 2006, at 11:48 PM, Jose Marcio Martins da Cruz wrote:

>
> Hello,
>
> Someone (a sendmail X user) repported me problems compiling =20
> statethreads
> under Fedora 5.
>
> depmode=3Dgcc3 /bin/sh ./depcomp \
> cc -DHAVE_CONFIG_H -I. -I. -I. -I./../include -DLINUX -O -g -O2 -c =20
> `test
> -f 'sched.c' || echo './'`sched.c
> sched.c: In function =91st_thread_create=92:
> sched.c:892: erreur: =91JB_SP=92 undeclared (first use in this =
function)
> sched.c:892: erreur: (Each undeclared identifier is reported only once
> sched.c:892: erreur: for each function it appears in.)
> make[3]: *** [sched.o] Erreur 1
> make[3]: Leaving directory `/home/smXinstall/smX-0.0.0.0/statethreads'
> make[2]: *** [all-recursive] Erreur 1
> make[2]: Leaving directory `/home/smXinstall/smX-0.0.0.0/statethreads'
> make[1]: *** [all] Erreur 2
> make[1]: Leaving directory `/home/smXinstall/smX-0.0.0.0/statethreads'
> make: *** [all-recursive] Erreur 1
> [root@localhost smX-0.0.0.0]#
>
> It seems that Fedora 5 doesn't define JB_SP :
>
> # grep JB_SP /usr/include/*
> # grep JB_SP /usr/include/*/*
>
> 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
>
> Hardware is Intel 32 bits.
>
> Regards,
>
> Jose-Marcio
>



-------------------------------------------------------
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