Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 33936 - Perl PDL can't use GSL libraries
Summary: Perl PDL can't use GSL libraries
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Perl team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-11-20 08:29 UTC by Karl Steddom
Modified: 2004-09-04 09:10 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
patch to files/perldl.conf (perldl.conf.patch,483 bytes, patch)
2004-01-07 20:52 UTC, Doug Burke
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Karl Steddom 2003-11-20 08:29:52 UTC
Configuration for Perl::PDL gives errors when trying to locate GSL libraries
complains about:
The GSL_LIBS config variable must be a string (!)
 not a reference. You should probably leave it undefined
 and rely on gsl-config. Build will likely fail. 

$GSL_LIBS appears to be unset (ie. echo $GSL_LIBS returns nothing)

If I build PDL from CPAN, the gsl libraries are correctly found and compiled.


Reproducible: Always
Steps to Reproduce:
1.emerge gsl
2.emerge PDL
3.look at output of config step of PDL
4. emerge unmerge PDL, then install PDL in CPAN and gsl ok

Actual Results:  
The GSL_LIBS config variable must be a string (!)
 not a reference. You should probably leave it undefined
 and rely on gsl-config. Build will likely fail.
     Trying gsl diff libraries...
     sh: -c: line 1: syntax error near unexpected token `('
sh: -c: line 1: `gcc -I/usr/include/gsl -I/usr/local/include -o
/var/tmp/portage/PDL-2.4.0-r1/temp/testfile
/var/tmp/portage/PDL-2.4.0-r1/temp/testfile.c ARRAY(0x81429d0) >/dev/null 2>&1'
                NO

 GSL Libraries not found... Skipping build of PDL::GSL::DIFF.

writing dummy Makefile
     Trying gsl numerical integration libraries...
     sh: -c: line 1: syntax error near unexpected token `('
sh: -c: line 1: `gcc -I/usr/include/gsl -I/usr/local/include -o
/var/tmp/portage/PDL-2.4.0-r1/temp/testfile
/var/tmp/portage/PDL-2.4.0-r1/temp/testfile.c ARRAY(0x81429d0) >/dev/null 2>&1'
                NO

 GSL Libraries not found... Skipping build of PDL::GSL::INTEG.

writing dummy Makefile
     Trying gsl interp libraries...
     sh: -c: line 1: syntax error near unexpected token `('
sh: -c: line 1: `gcc -I/usr/include/gsl -I/usr/local/include -o
/var/tmp/portage/PDL-2.4.0-r1/temp/testfile
/var/tmp/portage/PDL-2.4.0-r1/temp/testfile.c ARRAY(0x81429d0) >/dev/null 2>&1'
                NO

 GSL Libraries not found... Skipping build of PDL::GSL::INTERP.

writing dummy Makefile
     Trying gsl rng libraries...
     sh: -c: line 1: syntax error near unexpected token `('
sh: -c: line 1: `gcc -I/usr/include/gsl -I/usr/local/include -o
/var/tmp/portage/PDL-2.4.0-r1/temp/testfile
/var/tmp/portage/PDL-2.4.0-r1/temp/testfile.c ARRAY(0x81429d0) >/dev/null 2>&1'
                NO

 GSL Libraries not found... Skipping build of PDL::GSL::RNG.

writing dummy Makefile
     Trying gsl SF libraries...
     sh: -c: line 1: syntax error near unexpected token `('




Expected Results:  
should have found gsl libs and written makefiles

I have tried this several times with the same results.

dev-libs/gsl-1.3
dev-perl/PDL-2.4.0-r1
dev-lang/perl-5.8.0-r12
Comment 1 Doug Burke 2004-01-07 20:52:03 UTC
Created attachment 23364 [details, diff]
patch to files/perldl.conf


Fixes problem by removing old/incorrect syntax for the GSL_LIBS parameter in
perldl.conf. GSL_LIBS and GSL_INC are left as "undef" which means gsl-config
will be used to find the values (if GSL is installed that is).
Comment 2 Michael Cummings (RETIRED) gentoo-dev 2004-09-04 09:10:27 UTC
Patch applied - thanks for your patience.