Closed
Description
While trying to compile NetCDF 4.9.0 with LibCURL_jll v7.73.0+6, I see this error:
[11:40:07] /bin/sh ../libtool --tag=CXX --mode=link c++ -g -O2 -L/workspace/destdir/lib -o libncxml.la ncxml_xml2.lo -lhdf5_hl -lhdf5 -lm -lz -ldl -lxml2 -lcurl
[11:40:07] grep: /workspace/destdir/lib/libnghttp2.la: No such file or directory
[11:40:07] sed: /workspace/destdir/lib/libnghttp2.la: No such file or directory
[11:40:07] libtool: error: '/workspace/destdir/lib/libnghttp2.la' is not a valid libtool archive
[11:40:07] make[2]: *** [Makefile:530: libncxml.la] Error 1
In fact the file libnghttp2.la is referenced in libcurl.la
sandbox:${WORKSPACE}/destdir/lib # grep libnghttp2.la /workspace/destdir/lib/libcurl.la
dependency_libs=' -L/workspace/destdir/lib /workspace/destdir/lib/libnghttp2.la -lssh2 -lmbedtls -lmbedx509 -lmbedcrypto -lz -lrt'
Only binaries of libnghttp2 are currently distributed:
sandbox:${WORKSPACE}/destdir/lib # ls /workspace/destdir/lib/libnghttp2*
/workspace/destdir/lib/libnghttp2.a /workspace/destdir/lib/libnghttp2.so /workspace/destdir/lib/libnghttp2.so.14 /workspace/destdir/lib/libnghttp2.so.14.21.2
If I use LibCURL_jll v7.81.0+0, I don't get this error during build-time but at runtime Mac OS complains with on julia 1.8:
dlopen(/Users/runner/.julia/artifacts/2906ec26bc4c6a3f0b45255d1d933904f49abf30/lib/libnetcdf.19.dylib, 1): Library not loaded: @rpath/libcurl.4.dylib
Referenced from: /Users/runner/.julia/artifacts/[29](https://github.com/Alexander-Barth/NCDatasets.jl/runs/6876791696?check_suite_focus=true#step:8:30)06ec26bc4c6a3f0b45255d1d933904f49abf[30](https://github.com/Alexander-Barth/NCDatasets.jl/runs/6876791696?check_suite_focus=true#step:8:31)/lib/libnetcdf.19.dylib
Reason: Incompatible library version: libnetcdf.19.dylib requires version 13.0.0 or later, but libcurl.4.dylib provides version 12.0.0
I guess this means that libcurl is too new.
Metadata
Metadata
Assignees
Labels
No labels