Bug#949828: libnetcdf-c++4-1: underlinked libnetcdf_c++4.so.1: undefined symbol: nc_*

Sebastiaan Couwenberg sebastic at xs4all.nl
Sat Jan 25 15:52:40 GMT 2020


Control: tags -1 upstream pending
Control: forwarded -1 https://github.com/Unidata/netcdf-cxx4/issues/86

On 1/25/20 4:38 PM, Andreas Beckmann wrote:
> On 25/01/2020 15.40, Sebastiaan Couwenberg wrote:
>> The build logs shows it downloading both the old and new libnetcdf:
>>
>>  libnetcdf15 1:4.7.3-1
>>  libnetcdf13 1:4.6.2-1+b1
> 
> But none of them is used by libnetcdf-c++4-1

The buildlog for netcdf-cxx shows the missing nc_* symbols as well:

 dpkg-shlibdeps: warning: symbol nc_get_vara_longlong used by
debian/libnetcdf-c++4-1/usr/lib/x86_64-linux-gnu/libnetcdf_c++4.so.1.1.0
found in none of the libraries

This is caused by -lnetcdf being included in LDFLAGS only, which doesn't
result in libnetcdf.so.15 being included in the NEEDED section of the
library. This is fixed by adding -lnetcdf to CXXFLAGS.

I've forwarded the issue upstream and added DEB_CXXFLAGS_MAINT_APPEND to
d/rules to fix the package for now.

Kind Regards,

Bas

-- 
 GPG Key ID: 4096R/6750F10AE88D4AF1
Fingerprint: 8182 DE41 7056 408D 6146  50D1 6750 F10A E88D 4AF1



More information about the Pkg-grass-devel mailing list