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

[netCDF #CRQ-405827]: Undefined symbols c_mzero8



> Hi, while building IOAPI I ran into the problem below, where I'm missing
> symbols such as c_mzero8 and so on that are being called from libnetcdf.a
> 
> cd /Users/matt/software/ioapi/ioapi-3.1/OSX_x86_64gnu;
> /usr/local/bin/gfortran  airs2m3.o
> -L/Users/matt/software/ioapi/ioapi-3.1/OSX_x86_64gnu -lioapi -lnetcdf
> -lnetcdff -lcurl  -lgomp -lc  -o airs2m3
> Undefined symbols for architecture x86_64:
> "___c_mzero8", referenced from:
> _nc_put_rec in libnetcdf.a(v2i.o)
> _nc_get_rec in libnetcdf.a(v2i.o)
> "___c_mcopy8_bwd", referenced from:
> _nclistinsert in libnetcdf.a(libdispatch_la-nclist.o)
> _oclistinsert in libnetcdf.a(liboc_la-oclist.o)
> "___c_mcopy8", referenced from:
> _nclistremove in libnetcdf.a(libdispatch_la-nclist.o)
> _nclistunique in libnetcdf.a(libdispatch_la-nclist.o)
> _oclistremove in libnetcdf.a(liboc_la-oclist.o)
> "___c_mset8", referenced from:
> _nc_get_var1_text in libnetcdf.a(libdispatch_la-var.o)
> _nc_get_var1_schar in libnetcdf.a(libdispatch_la-var.o)
> _nc_get_var1_uchar in libnetcdf.a(libdispatch_la-var.o)
> _nc_get_var1_short in libnetcdf.a(libdispatch_la-var.o)
> _nc_get_var1_int in libnetcdf.a(libdispatch_la-var.o)
> _nc_get_var1_long in libnetcdf.a(libdispatch_la-var.o)
> _nc_get_var1_float in libnetcdf.a(libdispatch_la-var.o)
> ...
> 
> The netcdf libraries were built with GNU's gcc 4.6 and include Fortran
> hooks.  I'm working on an OS X Lion 86x64 machine.
> 
> I've searched the mailing lists, and google for this, nothing came up.
> 
> Has anyone ever come across this error?  How can I solve it?
> 
> Thanks for your help.
> 
> 

Howdy Matthew!

I have not seen this before, but netCDF fortran is very sensitive to the build 
environment. The library must be built with the same fortran compiler (and 
settings) that you are using.

Can you try building from scratch on your machine, with your fortran compiler, 
and see if the problem persists?

Get the latest release here: 
ftp://ftp.unidata.ucar.edu/pub/netcdf/netcdf-4.1.3.tar.gz

Build according to instructions here: 
http://www.unidata.ucar.edu/software/netcdf/docs/netcdf-install/Quick-Instructions.html#Quick-Instructions

Ticket Details
===================
Ticket ID: CRQ-405827
Department: Support netCDF
Priority: Critical
Status: Closed