octave3-0-headers gives the wrong library directories for gfortran
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
octave3.0 (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
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/
#define OCTAVE_CONF_FLIBS "-L/usr/
On my machine (intrepid amd64), there is no /usr/lib/
Or, correcting oct-conf.h to look in 4.3.2 would also solve the problem.
Could you post a .cc file that triggers this bug? My amd64 Intrepid also has this apparently broken link, but compiles Octave-Forge packages from source (including arpack, which is a binding for a Fortran library) without this problem.