Subject: | Linux specific coro fails to build on (K)ubuntu 6.10 |
If using the linux specific implementation (which is default on linux)
it fails to build on (K)ubuntu 6.10, because neither JB_PC/JB_SP nor
__pc/__sp are defined for _jmp_buf anywhere in setjmp.h or bits/setjmp.h.
make[1]: Entering directory `/mnt/hda8/homes/stef/.cpan/build/Coro-3.5/Coro'
cc -c -fno-strict-aliasing -pipe -I/usr/local/include
-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -DVERSION=\"3.0\"
-DXS_VERSION=\"3.0\" -fpic
"-I/home/software/perl-5.8.7/lib/5.8.7/i686-linux/CORE" -DHAVE_MMAP
-DCORO_LINUX -DSTACKSIZE=16384 -DSTACKGUARD=4 State.c
In file included from State.xs:1:
libcoro/coro.c: In function 'coro_create':
libcoro/coro.c:213: error: request for member '__pc' in something not a
structure or union
libcoro/coro.c:214: error: request for member '__sp' in something not a
structure or union
make[1]: *** [State.o] Error 1
make[1]: Leaving directory `/mnt/hda8/homes/stef/.cpan/build/Coro-3.5/Coro'
make: *** [subdirs] Error 2
If I don't use the defaults and build with setjmp or ucontext it builds
and the test run.