Skip to content

Configure detects logging disabled in netCDF, but build still attempts to build against logging code #166

Description

@stefan-wolfsheimer

We try to build netCDF++ 4.3.1 against netCDF 4.9.3 with nc_logging disabled.
The configure script correctly detects that logging was disabled:

nc-config --has-logging
no
./configure
checking netCDF has logging... no

However, compilation with this configuration file fails:

make

binutils/2.42-GCCcore-14.2.0/bin/ld: pres_temp_4D_plugin_wr.cpp:(.text.startup+0x349): undefined reference to `nc_set_log_level'

As a workaround we could disable the function using the following patch:
https://github.com/easybuilders/easybuild-easyconfigs/blob/0148a2218c08aa3b2025c62978c35a08b4fb18c1/easybuild/easyconfigs/n/netCDF-C%2B%2B4/netCDF-C%2B%2B4-4.3.1-disable-nc-set-log-level.patch

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions