Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ncl fails to build with hdf 4.3.0 #208

Open
opoplawski opened this issue Mar 2, 2024 · 0 comments · May be fixed by #209
Open

ncl fails to build with hdf 4.3.0 #208

opoplawski opened this issue Mar 2, 2024 · 0 comments · May be fixed by #209

Comments

@opoplawski
Copy link
Contributor

Describe the bug

When building ncl 6.6.2 against hdf 4.3.0 I get:

gcc -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wno-complain-wrong-lang -Werror=format-security -fpermissive -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -std=c99 -fPIC -fno-strict-aliasing -fopenmp -fcommon -DH5_USE_110_API   -I../../../.././include -I/usr/include/hdf -I/usr/include/netcdf -I/usr/include/udunits2 -I/usr/include/freetype2 -I/usr/include/gdal   -DBuildRasterHDF -DLINUX -DBuildRasterHPPCL -DBuildRasterNrif -DBuildRasterSun 		-DBuildRasterXWD  -DBuildRasterAVS -DBuildRasterSGI 		-DBuildRasterAbekas  -DBuildRasterBinary -DBuildRasterYUV 		-DNGTMPDIR='"tmp"' -Dx86_64 -DIBM -D_ISOC99_SOURCE -D_POSIX_SOURCE -D_XOPEN_SOURCE -DByteSwapped -DNeedFuncProto    -c -o hdf.o hdf.c
hdf.c:56:10: fatal error: dfgr.h: No such file or directory
   56 | #include <dfgr.h>
      |          ^~~~~~~~
compilation terminated.

As announced here: https://github.com/HDFGroup/hdf4/releases/tag/hdf4.3.0 hdf 4.3.0 drops many internal headers include apparently dfgr.h and dfi.h.

If I remove those includes it builds okay apparently without any new warnings that I've noticed, so apparently they are not really needed?

Computing environment

  • OS: Linux
  • OS version: Fedora Rahide
  • NCL Version:6.6.2
  • Installation method: building from source
@opoplawski opoplawski linked a pull request Mar 2, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant