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

[netCDF #GOM-132438]: NC Utilities version numbering



Hello Mark,

> Hi,
> 
> I have just installed netcdf 4.3.2 on Linux Mint 16, and come up against
> some rather strange problems with the version numbering on the NetCdf
> utilities (ie ncdump). Even though I have installed 4.3.2, ncdump reports
> its version number as 4.1.3. Very strange.
> 
> Upon closer examination, I believe I may have found the problem. See
> the output below. There are two ncdump executables in the build directory:
> 
> mpayne@Latitude-E7240 ~/Desktop/netcdf-c-4.3.2 $ find . -name ncdump
> ./ncdump
> ./ncdump/ncdump
> ./ncdump/.libs/ncdump
> 
> Checking the version numbers (below) reveals the difference between the
> two versions. Checking the make install log, the Makefile is installing
> the version from ./ncdump/.libs.
> 
> Is this a bug in the build system? Or on my machine? Or a combination
> there of...?
> 

The .libs directory is created by libtool during the compile process; it is 
used to store shared objects when building libraries.  When building an 
executable it places a wrapper script in /ncdump and the actual executable in 
/ncdump/.libs.  See section 3.3, "Linking Executables", on the following page:

http://www.gnu.org/software/libtool/manual/libtool.html

As to your issue; that is very peculiar.  I repeated your steps with netcdf-c 
4.3.2 and did not encounter this issue.  I wonder if you have an older 
libnetcdf or netcdf.h on your system, which is being picked up during runtime?  
You might try recompiling, passing the '--disable-shared' option, and check the 
reported version after that, as well as inspecting your system for older 
extraneous files.

If this doesn't fix the issue, would you send me your config.log to look at? 
I'll see if anything stands out there.

Thanks, have a great day,

-Ward

> Mark
> 
> mpayne@Latitude-E7240 ~/Desktop/netcdf-c-4.3.2/ncdump $ ./ncdump
> /home/mpayne/Desktop/netcdf-c-4.3.2/ncdump/.libs/lt-ncdump [-c|-h] [-v ...] 
> [[-b|-f] [c|f]] [-l len] [-n name] [-p n[,n]] [-k] [-x] [-s] [-t|-i] [-g ...] 
> [-w] file
> [-c]             Coordinate variable data and header information
> [-h]             Header information only, no data
> [-v var1[,...]]  Data for variable(s) <var1>,... only
> [-b [c|f]]       Brief annotations for C or Fortran indices in data
> [-f [c|f]]       Full annotations for C or Fortran indices in data
> [-l len]         Line length maximum in data section (default 80)
> [-n name]        Name for netCDF (default derived from file name)
> [-p n[,n]]       Display floating-point values with less precision
> [-k]             Output kind of netCDF file
> [-s]             Output special (virtual) attributes
> [-t]             Output time data as date-time strings
> [-i]             Output time data as date-time strings with ISO-8601 'T' 
> separator
> [-g grp1[,...]]  Data and metadata for group(s) <grp1>,... only
> [-w]             With client-side caching of variables for DAP URLs
> [-x]             Output XML (NcML) instead of CDL
> file             Name of netCDF file (or URL if DAP access enabled)
> netcdf library version 4.3.2 of Jun 10 2014 10:51:25 $
> mpayne@Latitude-E7240 ~/Desktop/netcdf-c-4.3.2/ncdump $ .libs/ncdump
> .libs/ncdump [-c|-h] [-v ...] [[-b|-f] [c|f]] [-l len] [-n name] [-p n[,n]] 
> [-k] [-x] [-s] [-t|-i] [-g ...] [-w] file
> [-c]             Coordinate variable data and header information
> [-h]             Header information only, no data
> [-v var1[,...]]  Data for variable(s) <var1>,... only
> [-b [c|f]]       Brief annotations for C or Fortran indices in data
> [-f [c|f]]       Full annotations for C or Fortran indices in data
> [-l len]         Line length maximum in data section (default 80)
> [-n name]        Name for netCDF (default derived from file name)
> [-p n[,n]]       Display floating-point values with less precision
> [-k]             Output kind of netCDF file
> [-s]             Output special (virtual) attributes
> [-t]             Output time data as date-time strings
> [-i]             Output time data as date-time strings with ISO-8601 'T' 
> separator
> [-g grp1[,...]]  Data and metadata for group(s) <grp1>,... only
> [-w]             With client-side caching of variables for DAP URLs
> [-x]             Output XML (NcML) instead of CDL
> file             Name of netCDF file (or URL if DAP access enabled)
> netcdf library version 4.1.3 of Sep 17 2013 11:49:01 $
> mpayne@Latitude-E7240 ~/Desktop/netcdf-c-4.3.2/ncdump $
> 

Ticket Details
===================
Ticket ID: GOM-132438
Department: Support netCDF
Priority: Normal
Status: Closed