Re: [netcdfgroup] Linking failure with 4.0.1 on Debian sid

On Wed, Sep 23, 2009 at 05:36:10PM +0200, Francesco Paolo Lovergine wrote:
> Hi all
> 
> I'm currently trying to move forward Debian support of netcdf from 3.6.3 
> to 4.0.1 (and possibly 4.1beta ASAP). Of course, I'm using gfortran 4.3.3
> (and possibly 4.4 for next release). Things go ok, but for Fortran check,
> which fails miserably due to linking problems. Note that I added -DgFortran 
> explicitly at configure time. I'm not a Fortran guy, but I noted that
> all named functions are tagged as undefined in the named solibs: it seems
> they are linked as external instead of being wrapped to C functions.
> Any hints?
> 

Ok, auto hinting :)

--- build-tree/netcdf-4.0.1/fortran/cfortran.h  2006-04-11 01:46:59.000000000 
+0200
+++ cfortran.h  2009-09-23 17:59:29.000000000 +0200
@@ -75,7 +75,7 @@
 
 /* Remainder of cfortran.h depends on the Fortran compiler. */
 
-#if defined(CLIPPERFortran) || defined(pgiFortran) || defined(__CYGWIN32__)
+#if defined(CLIPPERFortran) || defined(pgiFortran) || defined(__CYGWIN32__) || 
defined(gFortran)
 #ifndef f2cFortran
 #define f2cFortran
 #endif

Basically, cfortran should be updated to 4.4 IMHO.

-- 
Francesco P. Lovergine



  • 2009 messages navigation, sorted by:
    1. Thread
    2. Subject
    3. Author
    4. Date
    5. ↑ Table Of Contents
  • Search the netcdfgroup archives: