[Bug 348472] [NEW] octave3-0-headers gives the wrong library directories for gfortran

Paul Novotny paul.novotny at gmail.com
Wed Mar 25 14:42:20 UTC 2009


Public bug reported:

Binary package hint: octave3.0-headers

Release: intrepid amd64
Package: octave3.0-headers (1:3.0.1-6ubuntu1)

When compiling a cc file with mkoctfile I get the following:

/usr/bin/ld: cannot find -lgfortranbegin
collect2: ld returned 1 exit status

This is because in /usr/include/octave/oct-conf.h has the following
line:

#define OCTAVE_CONF_FLIBS "-L/usr/lib/gcc/x86_64-linux-gnu/4.3.1
-L/usr/lib/gcc/x86_64-linux-gnu/4.3.1/../../../../lib -L/lib/../lib
-L/usr/lib/../lib -L/usr/lib/gcc/x86_64-linux-gnu/4.3.1/../../.. -lhdf5
-lz -lgfortranbegin -lgfortran -lm"

On my machine (intrepid amd64), there is no /usr/lib/gcc/x86_64-linux-
gnu/4.3.1 directory or no link to /usr/lib/gcc/x86_64-linux-gnu/4.3.
Adding a softlink from /usr/lib/gcc/x86_64-linux-gnu/4.3.1 to
/usr/lib/gcc/x86_64-linux-gnu/4.3 solves the problem.

Or, correcting oct-conf.h to look in 4.3.2 would also solve the problem.

** Affects: octave3.0 (Ubuntu)
     Importance: Undecided
         Status: New

-- 
octave3-0-headers gives the wrong library directories for gfortran
https://bugs.launchpad.net/bugs/348472
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs at lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs




More information about the universe-bugs mailing list