make issue, possibly g77 vs gfortran

Tim Albu tfalbu at gmail.com
Fri May 22 03:21:53 CDT 2009


Thank you, that worked, and now the Fortran compiler is gfortran. The make
process still stops with the following error:

g++  -I. -I.. -I../liboctave -I../src -I../libcruft/misc  -DHAVE_CONFIG_H
-mieee-fp -Wall -W -Wshadow -Wold-style-cast -g -O2 -rdynamic \
        -L..  -fPIC  -o octave \
        main.o  \
        -L../liboctave -L../libcruft -L../src -Wl,-rpath
-Wl,/usr/local/lib/octave-3.0.5 \
        -loctinterp -loctave  -lcruft   \
             \
            \
         -lreadline  -lncurses -ldl -lz -lm
-L/usr/lib/gcc/i386-redhat-linux/4.1.2
-L/usr/lib/gcc/i386-redhat-linux/4.1.2/../../.. -lz -lgfortranbegin
-lgfortran -lm
../libcruft/libcruft.so: undefined reference to `do_lio'
../libcruft/libcruft.so: undefined reference to `z_sqrt'
../src/liboctinterp.so: undefined reference to `e_wsfe'
../libcruft/libcruft.so: undefined reference to `z_abs'
../libcruft/libcruft.so: undefined reference to `i_indx'
../libcruft/libcruft.so: undefined reference to `s_wsfi'
../libcruft/libcruft.so: undefined reference to `s_stop'
../libcruft/libcruft.so: undefined reference to `e_wsfi'
../libcruft/libcruft.so: undefined reference to `s_wsle'
../libcruft/libcruft.so: undefined reference to `s_cmp'
../libcruft/libcruft.so: undefined reference to `s_copy'
../libcruft/libcruft.so: undefined reference to `s_cat'
../libcruft/libcruft.so: undefined reference to `e_wsle'
../src/liboctinterp.so: undefined reference to `do_fio'
../src/liboctinterp.so: undefined reference to `s_wsfe'
collect2: ld returned 1 exit status
make[2]: *** [octave] Error 1
make[2]: Leaving directory `/usr/local/octave-3.0.5/src'
make[1]: *** [src] Error 2

What would be the next step?

Best regards,
Tim


On Fri, May 22, 2009 at 6:50 AM, Jaroslav Hajek <highegg at gmail.com> wrote:

> On Fri, May 22, 2009 at 1:21 AM, Tim Albu <tfalbu at gmail.com> wrote:
> > Hello everyone,
> >
> > I'm trying to install Octave 3.0.5 on RHEL5, but make fails as follows:
> >
> > g++  -I. -I.. -I../liboctave -I../src -I../libcruft/misc  -DHAVE_CONFIG_H
> > -mieee-fp -Wall -W -Wshadow -Wold-style-cast -g -O2 -rdynamic \
> >         -L..  -fPIC  -o octave \
> >         main.o  \
> >         -L../liboctave -L../libcruft -L../src -Wl,-rpath
> > -Wl,/usr/local/lib/octave-3.0.5 \
> >         -loctinterp -loctave  -lcruft   \
> >              \
> >             \
> >          -lreadline  -lncurses -ldl -lz -lm
> > -L/usr/lib/gcc/i386-redhat-linux/3.4.6
> > -L/usr/lib/gcc/i386-redhat-linux/3.4.6/../../.. -lz -lfrtbegin -lg2c -lm
> > ../src/liboctinterp.so: undefined reference to `__cxa_get_exception_ptr'
> > ../src/liboctinterp.so: undefined reference to `std::basic_istream<char,
> > std::char_traits<char> >::ignore()'
> > collect2: ld returned 1 exit status
> > make[2]: *** [octave] Error 1
> > make[2]: Leaving directory `/usr/local/octave-3.0.5/src'
> > make[1]: *** [src] Error 2
> >
> >
> > I have found something related in this post:
> > http://www.centos.org/modules/newbb/viewtopic.php?topic_id=7958,
> therefore I
> > installed gfortran and then tried ./configure --with-g77=gfortran but the
> > result is still:  Fortran compiler:     g77 -O -mieee-fp, and make still
> > fails as before.
> >
> >
> > What should be done in this case?
> >
> >
> > Best regards,
> > Tim
> >
>
> ./configure F77=gfortran
>
>
> --
> RNDr. Jaroslav Hajek
> computing expert & GNU Octave developer
> Aeronautical Research and Test Institute (VZLU)
> Prague, Czech Republic
> url: www.highegg.matfyz.cz
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://www-old.cae.wisc.edu/pipermail/help-octave/attachments/20090522/ab3c08af/attachment.html 


More information about the Help-octave mailing list