Unidata - To provide the data services, tools, and cyberinfrastructure leadership that advance Earth system science, enhance educational opportunities, and broaden participation. Unidata
         
  advanced  
 

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[netCDF #AVY-866390]: Netcdf-3.6.2 error



Hi,

Sorry, the instructions were wrong.  After "make distclean", you must run
the configure script before "make all check".

The log outputs you sent from running configure for both ifort and gfortran
look fine.  Errors are expected when configure runs, since it determines the
configuration needed for each platform by running small test programs and
some of these are expected to get errors.

The error you are seeing

/shared/gfortran/gcc-4.2/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.2.4/libgfortranbegin.a(fmain.o)(.text+0xa):
> In function `main':
> /projects/tob/gcc-4_2-branch/libgfortran/fmain.c:18: undefined reference to
> `MAIN__'
> collect2: ld returned 1 exit status
> gmake: *** [/shared/ROMS-3.0/trunk/Projects/Upwelling/oceanS] Error 1

It looks like the linking step doesn't have all the compiled pieces it needs.
If you are using the netCDF module (.mod file), you need to tell the linker
where to find it (typically the same directory where the netcdf.h and
netcdf.inc
files have been installed).

--Russ



Russ Rew                                         UCAR Unidata Program
russ@xxxxxxxxxxxxxxxx                     http://www.unidata.ucar.edu



Ticket Details
===================
Ticket ID: AVY-866390
Department: Support netCDF
Priority: Normal
Status: Closed


 
 
  Contact Us     Site Map     Search     Terms and Conditions     Privacy Policy     Participation Policy
 
National Science Foundation (NSF) UCAR Office of Programs University Corporation for Atmospheric Research (UCAR)   Unidata is a member of the UCAR Office of Programs, is managed by the University Corporation for Atmospheric Research, and is sponsored by the National Science Foundation.
P.O. Box 3000     Boulder, CO 80307-3000 USA     Tel: 303-497-8643     Fax: 303-497-8690