Jonathan Leto: August 2008 Archives

Math::GSL 0.10 released to CPAN

| | Comments (0) | TrackBacks (0)
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:
                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/ line 167.

Does anyone know of extra build flags which are necessary when building XS modules on multi-threaded Perls?

Math::GSL 0.08 released to CPAN

| | Comments (0) | TrackBacks (0)
Coming to a CPAN mirror near you, a brand spanking new Math::GSL, now with Cygwin support!


Example using Tk::PlotDataset

| | Comments (0) | TrackBacks (0)
Here is an a screenshot of the example file examples/tkplotdataset:
View image

use Tk;
use Tk::PlotDataset;
use Tk::LineGraphDataset;
use Math::GSL::SF qw/:all/;
use strict;

my $window = MainWindow->new(
    -title => 'Math::GSL Plot',
my @region = map { $_/10 } (-400 .. -1, 0, 1 .. 400);
my @data1  = map { gsl_sf_bessel_J0($_) } (@region);
my $dataset1 = LineGraphDataset->new(
    -name => 'gsl_sf_bessel_J0',
    -xData => \@region,
    -yData => \@data1,
    -yAxis => 'Y',
    -color => 'red'

my @data2 = map { gsl_sf_bessel_J1($_) } (@region);
my $dataset2 = LineGraphDataset->new(
    -name => 'gsl_sf_bessel_J1',
    -xData => \@region,
    -yData => \@data2,
    -yAxis => 'Y1',
    -color => 'blue'

my $graph = $window->PlotDataset(
    -width => 500,
    -height => 500,
    -background => 'snow'
) -> pack(-fill => 'both', -expand => 1);

$graph->addDatasets($dataset1, $dataset2);

About this Archive

This page is a archive of recent entries written by Jonathan Leto in August 2008.

Jonathan Leto: June 2008 is the previous archive.

Jonathan Leto: September 2008 is the next archive.

Find recent content on the main index or look in the archives to find all content.

Screw you, spammers! Clicky Web Analytics