Problem with an application using setjmp.h under Fedora 5

Jose Marcio Martins da Cruz Jose-Marcio.Martins at ensmp.fr
Thu Apr 6 21:14:56 UTC 2006


I have a problem compiling one application on Fedora 5. It uses the 
statethreads library.

depmode=gcc3 /bin/sh ./depcomp \
cc -DHAVE_CONFIG_H -I. -I. -I. -I./../include -DLINUX -O -g -O2 -c `test
-f 'sched.c' || echo './'`sched.c
sched.c: In function \221st_thread_create\222:
sched.c:892: erreur: \221JB_SP\222 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 at localhost smX-0.0.0.0]#

It seems that Fedora 5 doesn't define JB_SP at 
/usr/include/bits/setjmp.h as it was within Fedora 4.

# 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

glibc 2.4 moved the definition of this from setjmp.h to jmpbuf-offsets.h

Someone had found this problem or have an idea on how to get rid of this ?

I've tried to define JB_SP with the same value (4) assigned to this 
under Fedora 4, but it doesn't work : the application compiles but it 
segfaults.

-- 
   ---------------------------------------------------------------
   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:Jose-Marcio.Martins at ensmp.fr
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3565 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://listman.redhat.com/archives/fedora-list/attachments/20060406/b1627a44/attachment-0001.bin>


More information about the fedora-list mailing list