[netcdfgroup] Can I build zstandard support in netCDF with a static build?

  • To: "netcdfgroup@xxxxxxxxxxxxxxxx" <netcdfgroup@xxxxxxxxxxxxxxxx>
  • Subject: [netcdfgroup] Can I build zstandard support in netCDF with a static build?
  • From: "Thompson, Matt (GSFC-610.1)[SCIENCE SYSTEMS AND APPLICATIONS INC]" <matthew.thompson@xxxxxxxx>
  • Date: Tue, 2 Aug 2022 16:57:13 +0000
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nasa.gov; dmarc=pass action=none header.from=nasa.gov; dkim=pass header.d=nasa.gov; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=M0uqG9nn1LDJCCu8zsOfr4UiPyPA/nqNjILezqaNb/A=; b=fzB/toijn0uZCSV1Xz9O3H2xJEue9G/rpMnWBXkx7+R6vcak5n/RSULBEUp5DoAZQ2tK8eWmuhlVpWkJehIwFcCjMwTm7taKFyakfZB1iRaBrzUNZH6VwcQrdNQQyjq0enbnKlKkiZBgLzMIPWymgKiLbF/RUU5iaJuv4y9JG7Rtzel0bBfabKE6XIk4kjOjsK0Lj7Dok+keS4BCg7Y+xIS9FwTEqpStIeFl55gQbSt/GbgTR9Tkmqc+NS76FtFtK4KboGAb7JW+0JecrTczKe2zPrg69Gym3rnM7adzyFjR88R0Pms0eQ1hJBs1qs/loaf0QsznbqrKWTsK194F/g==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=XRGJUwxArbXyCuA8wyBa82tj6gt4wM3YXOHVA0V8me/NF9PuheK7SwkTlVxu0qYLpmYZiZ+pJ1vsIPlm5hzI4PLy9+xuJI1U/8QBdVP71EKeu2Tw8avS3GFcbhHc5hSvhDfTZFiiwTbiMyg/GhtSO9TQVj6nTF1qiA31XRv9NGwN4MQKzlYBnVOhDHH1e3ezAHy5Y1Gx0XSiL17EJLWSycL99NTK5T5kAQU0fztXb3EHqmE60YpuNsXVtGJ1YJ6QsQpuTI5Zkn7FDytwpDlm4RgzwQF9niYdJp/z9VDk+sjVYsI5Hybw2dx+DtA7Y7fSW22oMII9DkfHVuq+Ym3eAg==
  • Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nasa.gov;
All,

I recently grabbed netCDF-C v4.9.0 and netCDF-Fortran v4.6.0 and thought, heck, 
let's try to get zstd support as well! zstd built just fine and when I built 
netCDF-C it seemed pretty happy:

  ZSTD Support:           yes

but then when I tried to build netCDF-Fortran:

  configure: WARNING: ------------------------------------------
  configure: WARNING: libnetcdf was built with zstd support, but 
HDF5_PLUGIN_PATH is not set.
  Either set the HDF5_PLUGIN_PATH environmental variable if zstandard tests 
fail,
  or use --disable-zstandard-plugin when running configure.
  configure: WARNING: ------------------------------------------

Okay. New to me. I then went back to the netCDF-C build and saw:

  checking whether dynamically loaded plugins is enabled... yes
  configure: WARNING: --disable-shared => --disable-plugins
  ...
  checking whether and where we should install plugins... no
  ...
  Plugin Install Prefix:  N.A.

Seeing that warning reminded me I build netCDF-C and netCDF-Fortran as a static 
library mainly for historical reasons (was static in the past and, well, if it 
works, don't mess with it unless you need to!)

So I suppose the question is: Can I use zstd with a static build of netCDF?

Or is it time to bite the bullet and reconfigure my software to use shared 
libraries...

Matt

--
Matt Thompson, SSAI, Ld Scientific Programmer/Analyst
NASA GSFC,    Global Modeling and Assimilation Office
Code 610.1,  8800 Greenbelt Rd,  Greenbelt,  MD 20771
Phone: 301-614-6712                 Fax: 301-614-6246
http://science.gsfc.nasa.gov/sed/bio/matthew.thompson
  • 2022 messages navigation, sorted by:
    1. Thread
    2. Subject
    3. Author
    4. Date
    5. ↑ Table Of Contents
  • Search the netcdfgroup archives: