Compile error, 3.4.2 sources on Ubuntu running in VirtualBox

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Compile error, 3.4.2 sources on Ubuntu running in VirtualBox

Richard Crozier
Hello,

I'm trying to compile the stable 3.4.2 release in Ubuntu 11.04 running in VirtualBox on Windows 7 pro 64 Bit. I have now got the configure script to run without errors but am running into trouble with make. Below is the last few lines of output:

libtool: link: gcc -g -O2 -pthread -DHAVE_CONFIG_H -Wall -W -Wshadow -Wformat -Wpointer-arith -Wmissing-prototypes -Wstrict-prototypes -Wwrite-strings -Wcast-align -Wcast-qual -g -O2 -pthread -pthread -g -O2 -pthread -o .libs/octave main.o -Wl,-Bsymbolic-functions  ./.libs/liboctinterp.so ../liboctave/.libs/liboctave.so ../libcruft/.libs/libcruft.so ../libcruft/.libs/libranlib.a ../libgnu/.libs/libgnu.a -lcholmod -lumfpack -lamd -lcamd -lcolamd -lccolamd -lcxsparse -lqrupdate -lfltk_gl -lfltk -L/usr/lib/x86_64-linux-gnu /usr/lib/x86_64-linux-gnu/libfreetype.so /usr/lib/libhdf5.so -lz -lfontconfig -lGL -lGLU -lX11 -lreadline -lncurses -lpcre -llapack -lblas -ldl -L/usr/lib/x86_64-linux-gnu/gcc/x86_64-linux-gnu/4.5.2 -L/usr/lib/x86_64-linux-gnu/gcc/x86_64-linux-gnu/4.5.2/../../.. -lgfortran -lm -pthread -Wl,-rpath -Wl,/usr/local/lib/octave/3.4.2
../libcruft/.libs/libcruft.so: undefined reference to `r_imag'
../libcruft/.libs/libcruft.so: undefined reference to `c_exp'
./.libs/liboctinterp.so: undefined reference to `i_len'
../libcruft/.libs/libcruft.so: undefined reference to `c_sqrt'
../libcruft/.libs/libcruft.so: undefined reference to `d_sign'
./.libs/liboctinterp.so: undefined reference to `s_wsle'
../libcruft/.libs/libcruft.so: undefined reference to `c_div'
../libcruft/.libs/libcruft.so: undefined reference to `r_cnjg'
./.libs/liboctinterp.so: undefined reference to `do_lio'
../libcruft/.libs/libcruft.so: undefined reference to `c_log'
../libcruft/.libs/libcruft.so: undefined reference to `pow_dd'
./.libs/liboctinterp.so: undefined reference to `i_indx'
./.libs/liboctinterp.so: undefined reference to `r_sign'
./.libs/liboctinterp.so: undefined reference to `pow_ri'
./.libs/liboctinterp.so: undefined reference to `e_wsle'
../libcruft/.libs/libcruft.so: undefined reference to `c_abs'
collect2: ld returned 1 exit status
make[3]: *** [octave] Error 1
make[3]: Leaving directory `/home/richard/src/octave-3.4.2/src'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/home/richard/src/octave-3.4.2/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/richard/src/octave-3.4.2'
make: *** [all] Error 2

Can anyone suggest what the problem might be?

Thanks,

Richard
Reply | Threaded
Open this post in threaded view
|

Re: Compile error, 3.4.2 sources on Ubuntu running in VirtualBox

Richard Crozier
Never mind, solved by doing the following based on another thread here:

sudo apt-get build-dep octave3.2