netcdf-c icon indicating copy to clipboard operation
netcdf-c copied to clipboard

Incorrect library version and filename in 4.9.0

Open sebastic opened this issue 3 years ago • 4 comments
trafficstars

The CMake build for NetCDF 4.9.0 uses the wrong library version which causes the wrong filename to be used:

-rw-r--r-- root/root   1424472 2022-06-11 08:35 ./usr/lib/x86_64-linux-gnu/libnetcdf.so.19}
lrwxrwxrwx root/root         0 2022-06-11 08:35 ./usr/lib/x86_64-linux-gnu/libnetcdf.so.19 -> libnetcdf.so.19}

This patch fixes the issue:

--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -39,7 +39,7 @@ SET(NC_VERSION ${netCDF_VERSION})
 SET(PACKAGE_VERSION ${VERSION})
 
 # These values should match those in configure.ac
-SET(netCDF_LIB_VERSION 19})
+SET(netCDF_LIB_VERSION 19)
 SET(netCDF_SO_VERSION 19)
 
 # Version of the dispatch table. This must match the value in

sebastic avatar Jun 11 '22 07:06 sebastic

Oh oh!

edwardhartnett avatar Jun 11 '22 08:06 edwardhartnett

This is a problem, I will see what we can do.

WardF avatar Jun 11 '22 16:06 WardF

I've added a note, and will add the fix. It's not as disastrous as my initial impression since we still have the symbolic links, so it's also not great. But a very good catch, thank you!

WardF avatar Jun 11 '22 16:06 WardF

Looks like this one has been addressed and could be closed out.

dopplershift avatar Oct 21 '22 18:10 dopplershift