Math::GSL has been kicking around on CPAN for a few days now, and seems to be doing well with the CPANtesters , except for multi-threaded Perls. This is a very important piece of information to learn, since I develop on FreeBSD 6.x and Ubuntu 8.x, which come with single-threaded Perls, and I had of course recompiled my own Perl from source, but single-threaded is again the default in Configure.
The Build fails like this:
gcc -I/usr/lib/perl/5.8/CORE -c -shared -Wall -fpic -Dbool=char -Wno-strict-aliasing -Wno-unused-function -Wno-unused-value -Wno-unused-function -Wno-unused-variable -o
BLAS_wrap.o BLAS_wrap.c
In file included from /usr/lib/perl/5.8/CORE/op.h:497,
from /usr/lib/perl/5.8/CORE/perl.h:2754,
from BLAS_wrap.c:716:
/usr/lib/perl/5.8/CORE/reentr.h:612: error: field '_crypt_struct' has
incomplete type
In file included from /usr/lib/perl/5.8/CORE/perl.h:3950,
from BLAS_wrap.c:716:
/usr/lib/perl/5.8/CORE/proto.h:297: error: expected declaration
specifiers or '...' before 'off64_t'
/usr/lib/perl/5.8/CORE/proto.h:299: error: expected '=', ',', ';', 'asm'
or '__attribute__' before 'Perl_do_sysseek'
/usr/lib/perl/5.8/CORE/proto.h:300: error: expected '=', ',', ';', 'asm'
or '__attribute__' before 'Perl_do_tell'
/usr/lib/perl/5.8/CORE/proto.h:2005: error:
expected '=', ',', ';', 'asm' or '__attribute__'
before 'Perl_PerlIO_tell'
/usr/lib/perl/5.8/CORE/proto.h:2006: error: expected declaration
specifiers or '...' before 'off64_t'
error building .o file from 'BLAS_wrap.c'
at /tmp/Math-GSL-0.08/_build/lib/MyModuleBuilder.pm line 167.
Does anyone know of extra build flags which are necessary when building XS modules on multi-threaded Perls?
The Build fails like this:
gcc -I/usr/lib/perl/5.8/CORE -c -shared -Wall -fpic -Dbool=char -Wno-strict-aliasing -Wno-unused-function -Wno-unused-value -Wno-unused-function -Wno-unused-variable -o
BLAS_wrap.o BLAS_wrap.c
In file included from /usr/lib/perl/5.8/CORE/op.h:
from /usr/lib/perl/5.8/CORE/perl.h:
from BLAS_wrap.c:716:
/usr/lib/perl/5.8/CORE/reentr.
incomplete type
In file included from /usr/lib/perl/5.8/CORE/perl.h:
from BLAS_wrap.c:716:
/usr/lib/perl/5.8/CORE/proto.
specifiers or '...' before 'off64_t'
/usr/lib/perl/5.8/CORE/proto.
or '__attribute__' before 'Perl_do_sysseek'
/usr/lib/perl/5.8/CORE/proto.
or '__attribute__' before 'Perl_do_tell'
/usr/lib/perl/5.8/CORE/proto.
expected '=', ',', ';', 'asm' or '__attribute__'
before 'Perl_PerlIO_tell'
/usr/lib/perl/5.8/CORE/proto.
specifiers or '...' before 'off64_t'
error building .o file from 'BLAS_wrap.c'
at /tmp/Math-GSL-0.08/_build/lib/
Does anyone know of extra build flags which are necessary when building XS modules on multi-threaded Perls?
Leave a comment