Bug#805829: r-cran-gsl: Fails to build with GSL 2

Andreas Tille andreas at an3as.eu
Tue Nov 24 21:14:21 UTC 2015


Hi Bas,

thanks for working on the libgsl migration.  I commited a patch to SVN[1]
to circumvent the check by configure but that's not sufficient to do the
migration.  The build fails with


gcc -std=gnu99 -I/usr/share/R/include -DNDEBUG -I/usr/include -I.     -fpic  -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -g  -c ellint.c -o      ellint.o
ellint.c: In function 'ellint_D_e':
ellint.c:82:55: warning: passing argument 4 of 'gsl_sf_ellint_D_e' makes pointer from integer without a cast [-Wint-conversion]
     status[i] = gsl_sf_ellint_D_e(phi[i], k[i], n[i], sf_mode[*mode], &result) ;
                                                       ^
In file included from ellint.c:1:0:
/usr/include/gsl/gsl_sf_ellint.h:84:5: note: expected 'gsl_sf_result * {aka struct gsl_sf_result_struct *}' but argument is of type 'int'
 int gsl_sf_ellint_D_e(double phi, double k, gsl_mode_t mode, gsl_sf_result * result);
     ^
ellint.c:82:17: error: too many arguments to function 'gsl_sf_ellint_D_e'
     status[i] = gsl_sf_ellint_D_e(phi[i], k[i], n[i], sf_mode[*mode], &result) ;
                 ^
In file included from ellint.c:1:0:
/usr/include/gsl/gsl_sf_ellint.h:84:5: note: declared here
 int gsl_sf_ellint_D_e(double phi, double k, gsl_mode_t mode, gsl_sf_result * result);
     ^
/usr/lib/R/etc/Makeconf:134: recipe for target 'ellint.o' failed
make[1]: *** [ellint.o] Error 1


Anybody with some gsl experience might perhaps know what to do next
hopefully.

Kind regards

       Andreas.


[1] svn://anonscm.debian.org/debian-science/packages/R/trunk/packages/r-cran-gsl/trunk/


-- 
http://fam-tille.de



More information about the debian-science-maintainers mailing list