This archive contains answers to questions sent to Unidata support through mid-2025. Note that the archive is no longer being updated. We provide the archive for reference; many of the answers presented here remain technically correct, even if somewhat outdated. For the most up-to-date information on the use of NSF Unidata software and data services, please consult the Software Documentation first.
> Full Name: Michael Rogers > Email Address: address@hidden > Organization: Los Alamos National Laboratory > Package Version: > Operating System: Cygwin under Windows Vista > Hardware: > Description of problem: > > I work at LANL, but do some programming at home, for my own interests, > on a laptop running Vista. I do it in the cygwin environment, mostly > with the g95 anc cc compliers. I wanted to get netcdf installed > because I have some physics code that uses it. But it didn't make it > past "make clean" in the installation. I'm just trying to get a > libnetcdf.a library for cygwin. Do you know of anybody who has a > binary? > > "./configure" ran fine - it already knew about cygwin. When I ran > "make clean" it had linker error due to a name conflict I've pasted the > output of my second run of make check below: > > $ make check > Making check in fortran > make[1]: Entering directory `/usr/local/downloads/netcdf/netcdf-4.0/fortran' > make check-am > make[2]: Entering directory `/usr/local/downloads/netcdf/netcdf-4.0/fortran' > make[2]: Leaving directory `/usr/local/downloads/netcdf/netcdf-4.0/fortran' > make[1]: Leaving directory `/usr/local/downloads/netcdf/netcdf-4.0/fortran' > Making check in libsrc > make[1]: Entering directory `/usr/local/downloads/netcdf/netcdf-4.0/libsrc' > make check-am > make[2]: Entering directory `/usr/local/downloads/netcdf/netcdf-4.0/libsrc' > /bin/sh ../libtool --tag=CC --mode=link cc -g -O2 -version-info 4:0:0 -o libnetcdf.la -rpath /usr/local/lib attr.lo ncx.lo putget.lo dim.lo error.lo libvers.lo nc.lo string.lo v1hpg.lo var.lo utf8proc.lo posixio.lo libnetcdf2.la ../fortran/libnetcdff.la > libtool: link: warning: undefined symbols not allowed in i686-pc-cygwin shared libraries > libtool: link: rm -fr .libs/libnetcdf.lax > libtool: link: (cd .libs/libnetcdf.lax/libnetcdf2.lib && ar x "/usr/local/downloads/netcdf/netcdf-4.0/libsrc/./.libs/libnetcdf2.lib") > libtool: link: object name conflicts in archive: .libs/libnetcdf.lax/libnetcdf2.lib//usr/local/downloads/netcdf/netcdf-4.0/libsrc/./.libs/libnetcdf2.lib > make[2]: *** [libnetcdf.la] Error 1 > make[2]: Leaving directory `/usr/local/downloads/netcdf/netcdf-4.0/libsrc' > make[1]: *** [check] Error 2 > make[1]: Leaving directory `/usr/local/downloads/netcdf/netcdf-4.0/libsrc' > make: *** [check-recursive] Error 1 > > > Try building it again, but set LDFLAGS to -no-undefined first. (You will have to do a make distclean and start over). If this doesn't work, please send the full output of the configure and make check, and also the config.log file. Thanks! Ed Ticket Details =================== Ticket ID: MPL-618419 Department: Support netCDF Priority: Normal Status: Closed