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.
>To: Russ Rew <address@hidden> >From: "Peter Valdes Sosa" <address@hidden> >Subject: query (netCDF on Linux) >Organization: Centro de Neurociencias de Cuba >Keywords: 199705081959.NAA00880 Peter, > We downloaded the version 2.4.3. When we set out to compile, there > were errors again. > > Version 2.4 was also compiled with the changes you > recommended and there was errorsalso. > Here almost all was OK. > > make all ------------> OK > make test-----------> OK > make install ---------> NOT OK We currently only have access to version 2.4.3 and version 3.3beta. Version 2.4.3 has bugs fixed in it from version 2.4 and works on more platforms. It has also been tested successfully on Linux. Version 2.4 is unsupported, but I'll try to answer your question anyway. > BEGIN (version 2.4) > > making `install' in directory /usr/bin/display/netcdf-2.4/xdr ... > making `install' in directory /usr/bin/display/netcdf-2.4/ncdump > > make[1]: Entering directory `/usr/bin/display/netcdf-2.4/ncdump' > make[2]: Entering directory `/usr/bin/display/netcdf-2.4/ncdump' > cc -o ncdump -O ncdump.o vardata.o dumplib.o ../libsrc/libnetcdf.a cp > ncdump =/root/david/net/bin/ncdump make[2]: Leaving directory > `/usr/bin/display/netcdf-2.4/ncdump' make[2]: Entering directory > `/usr/bin/display/netcdf-2.4/ncdump' make[2]: Nothing to be done for > `installed_manual'. make[2]: Leaving directory > `/usr/bin/display/netcdf-2.4/ncdump' make: *** empty variable name. > Stop. make[1]: *** [installed_manuals] Error 2 make[1]: Leaving > directory `/usr/bin/display/netcdf-2.4/ncdump' make: *** > [ncdump/install] Error 127 This looks like an error occurred in trying to install the ncdump man page (reference documentation). You could just copy the file ncdump.1 to wherever you want the man pages installed, then drop into the src/ncgen/ directory and type "make install" to finish the installation. > BEGIN (version 2.4.3) > > making `all' in directory /usr/bin/display/netcdf-2.4.3/port > > make[1]: Entering directory `/usr/bin/display/netcdf-2.4.3/port' > make[1]: Nothing to be done for `all'. ... > making `all' in directory /usr/bin/display/netcdf-2.4.3/ncdump > > make[1]: Entering directory `/usr/bin/display/netcdf-2.4.3/ncdump' > cc -o ncdump -O ncdump.o vardata.o dumplib.o ../libsrc/libnetcdf.a > file.o(.text+0x2c): undefined reference to `GLOBAL_OFFSET_TABLE_' > file.o(.text+0x9d): undefined reference to `GLOBAL_OFFSET_TABLE_' > file.o(.text+0x17e): undefined reference to `GLOBAL_OFFSET_TABLE_' > file.o(.text+0x27d): undefined reference to `GLOBAL_OFFSET_TABLE_' > file.o(.text+0x2dd): undefined reference to `GLOBAL_OFFSET_TABLE_' > file.o(.text+0x370): more undefined references to `GLOBAL_OFFSET_TABLE_' > follow I think this is a symptom of using an old version of the gcc compiler with a newer version of the Linux kernel. I found the following suggestion: If the errors look like this: /usr/lib/crt0.o(.text+0x35): undefined reference to `main' accum.o(.text+0x1d): undefined reference to `GLOBAL_OFFSET_TABLE_' accum.o(.text+0x224): undefined reference to `GLOBAL_OFFSET_TABLE_' etc... Then you probably don't have a gcc compiler with ELF support even though your kernel can run ELF binaries. Try gcc-2.7.2 or later. at the URL http://www.ssec.wisc.edu/~billh/bp/MesaFAQ.html in reference to problems compiling a different package on Linux. Good luck. > ---------------------------------- > Pedro Valdes Sosa MD., Ph.D. > Vice Director > Cuban Neuroscience Center > Apartado Postal 6880 -6990 > Ave 25 No 15202 esq 158 (CNIC) > Ciudad de la Habana CUBA > Phone: (53)-7-336691/217442 > Fax: (53)-7-336321 > email:address@hidden > -------------------------------------- _____________________________________________________________________ Russ Rew UCAR Unidata Program address@hidden http://www.unidata.ucar.edu