Missing symbol in GMP libraries

Colin Bannister Colin.Bannister at nottingham.ac.uk
Wed Nov 10 13:27:35 CET 2010


I've been trying to build a 'package' for the statistical software suite 'R' called deSolve.

The build process fails , as in output below.

It looks like GMP isn't in the expected place, so I looked to install it in the 'standard' /usr/local area.  However, when checking symbols in the libraries for both GMP 4.3.2 and 5.0.1, I haven't seen the symbol __gmpn_sqr_n.  Is this for square roots of negative numbers ?

I can see other similar symbols, e.g. __gmpn_sqr in 5.0.1, or __gmpn_kara_sqr_n   __gmpn_toom3_sqr_n in 4.3.2

could it be I need an older version of GMP ?

Any help much appreciated!


cczcb at lin02:/software/R$ /software/R/bin/R CMD INSTALL deSolve_1.8.1.tar.gz
* installing to library '/software/R-2.11.1/lib64/R/library'
* installing *source* package 'deSolve' ...
** libs
gcc -std=gnu99 -I/software/R-2.11.1/lib64/R/include  -I/usr/local/include    -fpic  -g -O2 -c DLLutil.c -o DLLutil.o
gcc -std=gnu99 -I/software/R-2.11.1/lib64/R/include  -I/usr/local/include    -fpic  -g -O2 -c R_init_deSolve.c -o R_init_deSolve.o
gcc -std=gnu99 -I/software/R-2.11.1/lib64/R/include  -I/usr/local/include    -fpic  -g -O2 -c call_daspk.c -o call_daspk.o
gcc -std=gnu99 -I/software/R-2.11.1/lib64/R/include  -I/usr/local/include    -fpic  -g -O2 -c call_euler.c -o call_euler.o
gcc -std=gnu99 -I/software/R-2.11.1/lib64/R/include  -I/usr/local/include    -fpic  -g -O2 -c call_lsoda.c -o call_lsoda.o
gcc -std=gnu99 -I/software/R-2.11.1/lib64/R/include  -I/usr/local/include    -fpic  -g -O2 -c call_radau.c -o call_radau.o
gcc -std=gnu99 -I/software/R-2.11.1/lib64/R/include  -I/usr/local/include    -fpic  -g -O2 -c call_rk4.c -o call_rk4.o
gcc -std=gnu99 -I/software/R-2.11.1/lib64/R/include  -I/usr/local/include    -fpic  -g -O2 -c call_rkAuto.c -o call_rkAuto.o
gcc -std=gnu99 -I/software/R-2.11.1/lib64/R/include  -I/usr/local/include    -fpic  -g -O2 -c call_rkFixed.c -o call_rkFixed.o
gcc -std=gnu99 -I/software/R-2.11.1/lib64/R/include  -I/usr/local/include    -fpic  -g -O2 -c call_rkImplicit.c -o call_rkImplicit.o
gcc -std=gnu99 -I/software/R-2.11.1/lib64/R/include  -I/usr/local/include    -fpic  -g -O2 -c call_zvode.c -o call_zvode.o
gfortran   -fpic  -g -O -c daux.f -o daux.o
/usr/libexec/gcc/x86_64-redhat-linux/4.1.2/f951: symbol lookup error: /usr/libexec/gcc/x86_64-redhat-linux/4.1.2/f951: undefined symbol: __gmpn_sqr_n
make: *** [daux.o] Error 1
ERROR: compilation failed for package 'deSolve'
* removing '/software/R-2.11.1/lib64/R/library/deSolve'
This message and any attachment are intended solely for the addressee and may contain confidential information. If you have received this message in error, please send it back to me, and immediately delete it.   Please do not use, copy or disclose the information contained in this message or in any attachment.  Any views or opinions expressed by the author of this email do not necessarily reflect the views of the University of Nottingham.

This message has been checked for viruses but the contents of an attachment
may still contain software viruses which could damage your computer system:
you are advised to perform your own checks. Email communications with the
University of Nottingham may be monitored as permitted by UK legislation.

More information about the gmp-discuss mailing list