netcdf-c
netcdf-c copied to clipboard
Incorrect library version and filename in 4.9.0
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
Oh oh!
This is a problem, I will see what we can do.
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!
Looks like this one has been addressed and could be closed out.