Skip Menu |

This queue is for tickets about the Coro CPAN distribution.

Report information
The Basics
Id: 26909
Status: resolved
Priority: 0/
Queue: Coro

People
Owner: Nobody in particular
Requestors: fred [...] redhotpenguin.com
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 3.62
Fixed in: (no value)



Compilation fails on gentoo AMD64 using gcc 4.1.1. I'm trying a few other compiler version to see if any of those work. Skip ../blib/lib/Coro/Select.pm (unchanged) /home/phred/dev/perl/bin/perl /home/phred/dev/perl/lib/5.8.8/ExtUtils/xsubpp -typemap /home/phred/dev/perl/lib/5.8.8/ExtUtils/typemap -typemap typemap State.xs > State.xsc && mv State.xsc State.c cc -c -fno-strict-aliasing -pipe -Wdeclaration-after-statement -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm -fPIC -fomit-frame-pointer -march=opteron -mcpu=opteron -mtune=opteron -pipe -DVERSION=\"3.0\" -DXS_VERSION=\"3.0\" -fpic "-I/home/phred/dev/perl/lib/5.8.8/x86_64-linux/CORE" -DHAVE_MMAP -DCORO_LINUX -DCORO_STACKSIZE=16384 -DCORO_STACKGUARD=4 State.c In file included from State.xs:1: libcoro/coro.c: In function 'coro_create': libcoro/coro.c:230: error: 'JB_PC' undeclared (first use in this function) libcoro/coro.c:230: error: (Each undeclared identifier is reported only once libcoro/coro.c:230: error: for each function it appears in.) libcoro/coro.c:231: error: 'JB_RSP' undeclared (first use in this function) make[1]: *** [State.o] Error 1 make[1]: Leaving directory `/home/phred/.cpan/build/Coro-3.62/Coro' make: *** [subdirs] Error 2 /usr/bin/make -- NOT OK Running make test Can't test without successful make Running make install make had returned bad status, install seems impossible phred@app2 ~/dev/sl/trunk $ gcc -v Using built-in specs. Target: x86_64-pc-linux-gnu Configured with: /var/tmp/portage/gcc-4.1.1/work/gcc-4.1.1/configure --prefix=/usr --bindir=/usr/x86_64-pc-linux-gnu/gcc-bin/4.1.1 --includedir=/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.1/include --datadir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.1.1 --mandir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.1.1/man --infodir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.1.1/info --with-gxx-include-dir=/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.1/include/g++-v4 --host=x86_64-pc-linux-gnu --build=x86_64-pc-linux-gnu --disable-altivec --enable-nls --without-included-gettext --with-system-zlib --disable-checking --disable-werror --disable-libunwind-exceptions --enable-multilib --disable-libmudflap --disable-libssp --disable-libgcj --enable-languages=c,c++ --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu Thread model: posix gcc version 4.1.1 (Gentoo 4.1.1)
From: fred [...] redhotpenguin.com
On Wed May 02 23:17:24 2007, fred@redhotpenguin.com wrote: Show quoted text
> Compilation fails on gentoo AMD64 using gcc 4.1.1. I'm trying a few > other compiler version to see if any of those work.
Coro successfully compiles on a 686 with gcc 4.1.1 (fedora core 5). I might be able to dig into the problem and fix it but if you have any thoughts please let me know, my C is not as great as my Perl :-)
From: fred [...] redhotpenguin.com
On Wed May 02 23:26:21 2007, fred@redhotpenguin.com wrote: Show quoted text
> On Wed May 02 23:17:24 2007, fred@redhotpenguin.com wrote:
> > Compilation fails on gentoo AMD64 using gcc 4.1.1. I'm trying a few > > other compiler version to see if any of those work.
> > Coro successfully compiles on a 686 with gcc 4.1.1 (fedora core 5). > > I might be able to dig into the problem and fix it but if you have any > thoughts please let me know, my C is not as great as my Perl :-)
This problem only happens when CORO_LINUX is true. If you accept the defaults that the installer offers, the make goes through successfully. But if you select: Use which implementation, <s>etjmp/longjump, <u>context, <i>rix, <l>inux or <w>indows? [s] l ,then this error occurs.