Ben Abbott wrote:
> On May 5, 2009, at 7:31 AM, Alexander Hansen wrote:
>> Ben Abbott wrote:
>>> I upgraded to gcc44 this week. Now I'm unable to build the developers
>>> sources for Octave.
>>> checking whether we are using the GNU Fortran 77 compiler... yes
>>> checking whether /sw/bin/gfortran accepts -g... yes
>>> checking how to get verbose linking output from /sw/bin/gfortran... -v
>>> checking for Fortran 77 libraries of /sw/bin/gfortran... /sw/lib/
>>> checking for dummy main to link with Fortran 77 libraries... unknown
>>> configure: error: in `/Users/bpabbott/Development/mercurial/
>>> configure: error: linking to Fortran libraries from C fails
>>> See `config.log' for more details.
>>> make: *** [config.status] Error 1
>>> make: *** [clean] Error 2
>>> bens-macbook-2:~/Development/mercurial/local_clone bpabbott$ gfortran
>>> GNU Fortran (GCC) 4.4.0
>>> Copyright (C) 2009 Free Software Foundation, Inc.
>>> After downgrading to gcc43, autogen/configure/make ran without error.
>>> It appears that gcc 4.4 is trying to link to the 4.3 libgfortran. Is
>>> this a packaging problem for gcc44 or might it be a problem with
>>> Octave's configure script?
>> Without seeing the config.log there's no way to tell.
>> Fink's octave in current/unstable uses gcc44 now, so I'm not so inclined
>> to think that gcc44's packaging is the problem.
> I have gcc44, gcc43 and gcc42 libs. Since the gcc 4.2 wasn't a problem
> for 4.3, I went back and looked at what *I* was doing and found a
> mistake on my end.
> I had explicitly set FLIBS=/sw/lib/gcc4.3/lib/libgfortran.dylib.
> Sorry for the trouble.
Ah, yeah, that'd do it. Fink's Octave sets that explicitly, too.
Fink User Liaison