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
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).
Patch applied - thanks for your patience.