Re: [netcdfgroup] netcdf fortran

Perfect, thanks a lot.  Yes I realize it was the gfortran upgrade, and other 
Linux distros appear to have run into this.  I was in a double bind - I 
couldn't compile a program with what I had as it would choke on the netcdf.mod 
file, and I couldn't recompile the library.

Thanks again,

-Roy

On Nov 21, 2013, at 6:52 AM, Richard Weed <rweed@xxxxxxxxxxxxxxxx> wrote:

> Roy
> 
> Sounds like your Ubuntu upgrade made gfortran 4.8 your default
> Fortran compiler. gfortran >= 4.8 is one of the few (probably
> the only) compilers that have implemented parts of the recently
> approved extensions to the Fortran 2003/2008 standard for
> "Further Interoperability with C"  defined in TS 291113 which
> added support for the ptrdiff_t C data types along with
> a lot of other things designed primarily to make Fortran
> play nice with the MPI libraries.
> 
> To fix your problem either:
> 
> 1. use the beta 1 distribution and define the
>   following before you compile
> 
>   export FFLAGS=-DHAVE_TS29113_SUPPORT
>   export FCFLAGS=-DHAVE_TS29113_SUPPORT
> 
> or
> 
> 2. use the release candidate from Github
> 
>   and run
> 
>   autoreconf -i -f
> 
> to generate your standard configure files. When
> you run configure it should determine if you have
> gfortran >= 4.8 as your compiler.
> 
> Hope that helps
> 
> RW
> 
> On 11/20/2013 05:31 PM, Roy Mendelssohn - NOAA Federal wrote:
>> Hi All:
>> 
>> I was using netcdf fortran 4.4-beta1 on Ubuntu, but an update in Ubuntu 
>> appears to have broken things.  The error I get is:
>> 
>>>  Integer, Parameter :: C_PTRDIFF_T = C_SIZE_T
>>>                                   1
>>> module_netcdf_nc_data.F90:30.5:
>>> 
>>>  USE ISO_C_BINDING  ! All subsequent USE associations of netcdf_nc_data
>>>      2
>>> Error: Symbol 'c_ptrdiff_t' at (1) conflicts with symbol from module 
>>> '__iso_c_binding', use-associated at (2)
>>> 
>> 
>> An internet search turns up this email:
>> 
>> http://www.unidata.ucar.edu/support/help/MailArchives/netcdf/msg12031.html
>> 
>> which relates back to previous messages with that error.  It refers me to 
>> the Github site
>> 
>>   http://github.com/Unidata/netcdf-fortran
>> 
>> I get a a folder that doesn't seem to use the usual  configure/make sequence 
>>  so now I am not quite certain what sequence to use to configure and make 
>> this.  Any help great appreciated.
>> 
>> -Roy
>> 
>> **********************
>> "The contents of this message do not reflect any position of the U.S. 
>> Government or NOAA."
>> **********************
>> Roy Mendelssohn
>> Supervisory Operations Research Analyst
>> NOAA/NMFS
>> Environmental Research Division
>> Southwest Fisheries Science Center
>> 1352 Lighthouse Avenue
>> Pacific Grove, CA 93950-2097
>> 
>> e-mail: Roy.Mendelssohn@xxxxxxxx (Note new e-mail address)
>> voice: (831)-648-9029
>> fax: (831)-648-8440
>> www: http://www.pfeg.noaa.gov/
>> 
>> "Old age and treachery will overcome youth and skill."
>> "From those who have been given much, much will be expected"
>> "the arc of the moral universe is long, but it bends toward justice" -MLK Jr.
>> 
>> _______________________________________________
>> netcdfgroup mailing list
>> netcdfgroup@xxxxxxxxxxxxxxxx
>> For list information or to unsubscribe,  visit: 
>> http://www.unidata.ucar.edu/mailing_lists/
>> 
> 
> -- 
> ---
> -----
> 
> Richard Weed, Ph.D.
> Associate Research Professor
> Center for Advanced Vehicular Systems (CAVS)
> Mississippi State University
> 
> email: rweed@xxxxxxxxxxxxxxxx
> Phone: (662) 325-5450

**********************
"The contents of this message do not reflect any position of the U.S. 
Government or NOAA."
**********************
Roy Mendelssohn
Supervisory Operations Research Analyst
NOAA/NMFS
Environmental Research Division
Southwest Fisheries Science Center
1352 Lighthouse Avenue
Pacific Grove, CA 93950-2097

e-mail: Roy.Mendelssohn@xxxxxxxx (Note new e-mail address)
voice: (831)-648-9029
fax: (831)-648-8440
www: http://www.pfeg.noaa.gov/

"Old age and treachery will overcome youth and skill."
"From those who have been given much, much will be expected" 
"the arc of the moral universe is long, but it bends toward justice" -MLK Jr.



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