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

error: call to undeclared function 'test_mgr_szip'; ISO C99 and later do not support implicit function declarations #788

Open
samfux84 opened this issue Nov 15, 2024 · 1 comment
Assignees
Labels
Component - Build CMake, Autotools

Comments

@samfux84
Copy link

Hi,

I am trying to build HDF4 4.2.15 with Intel OneAPI 2023.2.0 and get the following error:

/cluster/home/sfux/spack/spack/lib/spack/env/oneapi/icx -DHAVE_CONFIG_H -I. -I../../hdf/src  -I../../hdf/src -I/cluster/software/stacks/2024-06/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/oneapi-2023.2.0/zlib-ng-2.1.4-sgtc5qn3prm2viidnrnq7bw5kf2elite/include -I/cluster/software/stacks/2024-06/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/oneapi-2023.2.0/libjpeg-turbo-3.0.0-tuyhr36jim6weztgfsi27hhn74idtwad/include -I/cluster/software/stacks/2024-06/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/oneapi-2023.2.0/libszip-2.1.1-v5nt2xppftuxijh4gjhk47f5tdxnx4v5/include   -O -MT mgr.o -MD -MP -MF .deps/mgr.Tpo -c -o mgr.o mgr.c
mgr.c:4080:5: error: call to undeclared function 'test_mgr_szip'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
    test_mgr_szip();   /* write/read with szip compression */
    ^
mgr.c:4080:5: note: did you mean 'test_mgr_init'?
mgr.c:242:1: note: 'test_mgr_init' declared here
test_mgr_init(void)
^
1 error generated.
make[2]: *** [Makefile:783: mgr.o] Error 1
make[2]: *** Waiting for unfinished jobs....
mv -f .deps/litend.Tpo .deps/litend.Po
mv -f .deps/man.Tpo .deps/man.Po
mv -f .deps/chunks.Tpo .deps/chunks.Po
make[2]: Leaving directory '/cluster/home/sfux/spack/spack/var/spack/stage/spack-stage-hdf-4.2.15-jl64o2c6ow5etkfvf32ort7buik7zkyp/spack-src/hdf/test'
make[1]: *** [Makefile:425: all-recursive] Error 1
make[1]: Leaving directory '/cluster/home/sfux/spack/spack/var/spack/stage/spack-stage-hdf-4.2.15-jl64o2c6ow5etkfvf32ort7buik7zkyp/spack-src/hdf'
make: *** [Makefile:515: all-recursive] Error 1

The same issue is also reported in

https://forum.hdfgroup.org/t/help-building-hdf4-with-clang-error-implicit-declaration-of-function-test-mgr-szip-is-invalid-in-c99/7680

Is there any solution for this or can version 4.2.15 only be built if the compiler flag -Wimplicit-function-declaration is set?

Any help is appreciated.

Best regards

Sam

@bmribler
Copy link
Collaborator

Hi Sam,

Will it be possible for you to use 4.2.16? The issue was fixed there.

Thanks,
Binh-Minh

@bmribler bmribler added the Component - Build CMake, Autotools label Nov 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component - Build CMake, Autotools
Projects
None yet
Development

No branches or pull requests

3 participants