LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Installing SPro on ubuntu12.04 (https://www.linuxquestions.org/questions/linux-software-2/installing-spro-on-ubuntu12-04-a-4175413976/)

squishything 06-29-2012 04:10 AM

Installing SPro on ubuntu12.04
 
SPro can be downloaded here and it's installed by ./configure, make, make install. However, make produces this error:

Code:

ros@ubuntu:~/Programs/spro-4.0$ make
make  all-recursive
make[1]: Entering directory `/home/ros/Programs/spro-4.0'
Making all in doc
make[2]: Entering directory `/home/ros/Programs/spro-4.0/doc'
make[2]: Leaving directory `/home/ros/Programs/spro-4.0/doc'
Making all in auxdir
make[2]: Entering directory `/home/ros/Programs/spro-4.0/auxdir'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/home/ros/Programs/spro-4.0/auxdir'
Making all in test
make[2]: Entering directory `/home/ros/Programs/spro-4.0/test'
Making all in ref
make[3]: Entering directory `/home/ros/Programs/spro-4.0/test/ref'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/home/ros/Programs/spro-4.0/test/ref'
Making all in dat
make[3]: Entering directory `/home/ros/Programs/spro-4.0/test/dat'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/home/ros/Programs/spro-4.0/test/dat'
make[3]: Entering directory `/home/ros/Programs/spro-4.0/test'
make[3]: Nothing to be done for `all-am'.
make[3]: Leaving directory `/home/ros/Programs/spro-4.0/test'
make[2]: Leaving directory `/home/ros/Programs/spro-4.0/test'
make[2]: Entering directory `/home/ros/Programs/spro-4.0'
gcc  -g -O2  -o scopy  scopy.o getopt.o getopt1.o -lm -L. -lspro 
./libspro.a(misc.o): In function `spf_buf_normalize':
/home/ros/Programs/spro-4.0/misc.c:185: undefined reference to `sqrt'
/home/ros/Programs/spro-4.0/misc.c:276: undefined reference to `sqrt'
./libspro.a(misc.o): In function `set_lifter':
/home/ros/Programs/spro-4.0/misc.c:402: undefined reference to `sin'
./libspro.a(misc.o): In function `sig_normalize':
/home/ros/Programs/spro-4.0/misc.c:425: undefined reference to `sqrt'
./libspro.a(misc.o): In function `set_sig_win':
/home/ros/Programs/spro-4.0/misc.c:458: undefined reference to `cos'
/home/ros/Programs/spro-4.0/misc.c:473: undefined reference to `cos'
/home/ros/Programs/spro-4.0/misc.c:473: undefined reference to `cos'
/home/ros/Programs/spro-4.0/misc.c:465: undefined reference to `cos'
collect2: ld returned 1 exit status
make[2]: *** [scopy] Error 1
make[2]: Leaving directory `/home/ros/Programs/spro-4.0'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/ros/Programs/spro-4.0'
make: *** [all] Error 2

I've tried downloading different versions but always the same error. Is there something I'm missing and need to install first?

knudfl 06-29-2012 04:59 AM

Welcome to LQ.

Quote http://www.irisa.fr/metiss/guig/spro/download.html :
"Last modified: Mar 05, 2004, .."

Version 4.0.1 : Mainly 2003 code.
May not work with your default gcc = version 4.6.3.

Please do : sudo apt-get install g++-4.4 g++-4.5
.. Then you have much more choice : 3 times gcc / g++ versions.

Spro-4.0 should do OK with gcc-4.5. This example uses "4.4" :
cd spro-4.0/ && export CC=gcc-4.4 && ./configure && make

.

squishything 06-29-2012 01:18 PM

Thank you, that's worked!


All times are GMT -5. The time now is 03:57 AM.