NOTICE: This version of the NSF Unidata web site (archive.unidata.ucar.edu) is no longer being updated.
Current content can be found at unidata.ucar.edu.

To learn about what's going on, see About the Archive Site.

Re: [netcdfgroup] release of version 4.2 of the netCDF Fortran libraries...

Karsten Bolding <karsten@xxxxxxxxxxxxxxxxxxxx> writes:

> Hello
>
> I'm having a problem building the new Fortran version.
>
> FC=ifort F77=ifort CPPFLAGS="-I /opt/netcdf4/include/" ./configure
>
> compiles but 'make check' fails during linking.
>
> FC=ifort F77=ifort CPPFLAGS="-I /opt/netcdf4/include/" LDFLAGS="-L 
> /opt/netcdf4/lib" ./configure
>
> checking size of float... 0
> checking size of double... 0
> checking size of off_t... configure: error: in
> `/data/bold/compile/netcdf-fortran-4.2':
> configure: error: cannot compute sizeof (off_t)
> See `config.log' for more details
>
> i.e. by adding LDFLAGS ./configure fails.
>
> Karsten
>

Howdy Karsten!

Probably you need to set LD_LIBRARY_PATH to /opt/netcdf4/lib.

When using shared libraries, it's not enough to specify library location
in the LDFLAGS, you must also set LD_LIBRARY_PATH.

The way to check is to look in your config.log file for the error
"cannot compute sizeof (off_t)", and there will be the error message
that caused the problem.

Thanks,

Ed
-- 
Ed Hartnett  -- ed@xxxxxxxxxxxxxxxx



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