Hi,
I am getting the following error while trying to compile ioapi and m3tools using ifort and netcdf. Netcdf was compiled with --disable-netcdf4 --disable-dap.
I have also updated Archflags with DIOAPI_NCF4=1. The error is shown below. I would appreciate any tips/guidance on resolving the issue. Thank you!
cd /home/camxsvc/libraries/ioapi3.2/Linux2_x86_64ifort; ifort -auto -warn notruncated_source -Bstatic -static-intel -DIOAPI_NCF4=1 airs2m3.o -L/home/camxsvc/libraries/ioapi3.2/Linux2_x86_64ifort -lioapi -lnetcdff -lnetcdf -qopenmp -qopenmp-link=static -shared-intel -Bstatic -o airs2m3
ifort: command line warning #10121: overriding ‘-static-intel’ with ‘-shared-intel’
ld: /home/camxsvc/libraries/ioapi3.2/Linux2_x86_64ifort/libnetcdf.a(libdispatch_la-ddispatch.o): in function NCDISPATCH_finalize': ddispatch.c:(.text+0x7): undefined reference to
curl_global_cleanup’
ld: /home/camxsvc/libraries/ioapi3.2/Linux2_x86_64ifort/libnetcdf.a(libdispatch_la-ddispatch.o): in function NCDISPATCH_initialize': ddispatch.c:(.text+0x14e): undefined reference to
curl_global_init’
ld: /home/camxsvc/libraries/ioapi3.2/Linux2_x86_64ifort/libnetcdf.a(libdispatch_la-dhttp.o): in function nc_http_read': dhttp.c:(.text+0x8f): undefined reference to
curl_easy_setopt’
ld: dhttp.c:(.text+0xa3): undefined reference to curl_easy_perform' ld: dhttp.c:(.text+0xbe): undefined reference to
curl_easy_getinfo’
ld: dhttp.c:(.text+0xd2): undefined reference to curl_easy_strerror' ld: dhttp.c:(.text+0x109): undefined reference to
curl_easy_strerror’
ld: dhttp.c:(.text+0x139): undefined reference to curl_easy_strerror' ld: /home/camxsvc/libraries/ioapi3.2/Linux2_x86_64ifort/libnetcdf.a(libdispatch_la-dhttp.o): in function
setupconn’:
dhttp.c:(.text+0x1a2): undefined reference to curl_easy_setopt' ld: dhttp.c:(.text+0x1c3): undefined reference to
curl_easy_setopt’
ld: dhttp.c:(.text+0x1e4): undefined reference to curl_easy_setopt' ld: dhttp.c:(.text+0x205): undefined reference to
curl_easy_setopt’
ld: dhttp.c:(.text+0x226): undefined reference to curl_easy_setopt' ld: /home/camxsvc/libraries/ioapi3.2/Linux2_x86_64ifort/libnetcdf.a(libdispatch_la-dhttp.o):dhttp.c:(.text+0x269): more undefined references to
curl_easy_setopt’ follow
ld: /home/camxsvc/libraries/ioapi3.2/Linux2_x86_64ifort/libnetcdf.a(libdispatch_la-dhttp.o): in function setupconn': dhttp.c:(.text+0x41b): undefined reference to
curl_easy_strerror’
ld: dhttp.c:(.text+0x44b): undefined reference to curl_easy_strerror' ld: dhttp.c:(.text+0x479): undefined reference to
curl_easy_strerror’
ld: dhttp.c:(.text+0x4a8): undefined reference to curl_easy_strerror' ld: dhttp.c:(.text+0x4d7): undefined reference to
curl_easy_strerror’
ld: dhttp.c:(.text+0x510): undefined reference to curl_easy_setopt' ld: dhttp.c:(.text+0x52a): undefined reference to
curl_easy_setopt’
ld: dhttp.c:(.text+0x53e): undefined reference to curl_easy_strerror' ld: dhttp.c:(.text+0x56d): undefined reference to
curl_easy_strerror’
ld: dhttp.c:(.text+0x598): undefined reference to curl_easy_strerror' ld: /home/camxsvc/libraries/ioapi3.2/Linux2_x86_64ifort/libnetcdf.a(libdispatch_la-dhttp.o): in function
nc_http_set_method’:
dhttp.c:(.text+0x626): undefined reference to curl_easy_setopt' ld: dhttp.c:(.text+0x648): undefined reference to
curl_easy_setopt’
ld: dhttp.c:(.text+0x65d): undefined reference to curl_easy_setopt' ld: dhttp.c:(.text+0x67e): undefined reference to
curl_easy_setopt’
ld: dhttp.c:(.text+0x69b): undefined reference to curl_easy_setopt' ld: dhttp.c:(.text+0x6c5): undefined reference to
curl_easy_strerror’
ld: dhttp.c:(.text+0x6fe): undefined reference to curl_easy_setopt' ld: dhttp.c:(.text+0x70e): undefined reference to
curl_easy_strerror’
ld: /home/camxsvc/libraries/ioapi3.2/Linux2_x86_64ifort/libnetcdf.a(libdispatch_la-dhttp.o): in function nc_http_reset': dhttp.c:(.text+0x75a): undefined reference to
curl_easy_setopt’
ld: dhttp.c:(.text+0x778): undefined reference to curl_easy_setopt' ld: dhttp.c:(.text+0x796): undefined reference to
curl_easy_setopt’
ld: dhttp.c:(.text+0x7b4): undefined reference to curl_easy_setopt' ld: dhttp.c:(.text+0x7cf): undefined reference to
curl_easy_setopt’
ld: /home/camxsvc/libraries/ioapi3.2/Linux2_x86_64ifort/libnetcdf.a(libdispatch_la-dhttp.o):dhttp.c:(.text+0x7f8): more undefined references to curl_easy_setopt' follow ld: /home/camxsvc/libraries/ioapi3.2/Linux2_x86_64ifort/libnetcdf.a(libdispatch_la-dhttp.o): in function
nc_http_reset’:
dhttp.c:(.text+0x8af): undefined reference to curl_easy_strerror' ld: dhttp.c:(.text+0x8e1): undefined reference to
curl_easy_strerror’
ld: dhttp.c:(.text+0x90d): undefined reference to curl_easy_strerror' ld: dhttp.c:(.text+0x93c): undefined reference to
curl_easy_strerror’
ld: dhttp.c:(.text+0x96b): undefined reference to curl_easy_strerror' ld: /home/camxsvc/libraries/ioapi3.2/Linux2_x86_64ifort/libnetcdf.a(libdispatch_la-dhttp.o):dhttp.c:(.text+0x99a): more undefined references to
curl_easy_strerror’ follow
ld: /home/camxsvc/libraries/ioapi3.2/Linux2_x86_64ifort/libnetcdf.a(libdispatch_la-dhttp.o): in function nc_http_write': dhttp.c:(.text+0xac7): undefined reference to
curl_easy_perform’
ld: dhttp.c:(.text+0xae3): undefined reference to curl_easy_getinfo' ld: dhttp.c:(.text+0xb03): undefined reference to
curl_easy_strerror’
ld: dhttp.c:(.text+0xb37): undefined reference to curl_easy_strerror' ld: /home/camxsvc/libraries/ioapi3.2/Linux2_x86_64ifort/libnetcdf.a(libdispatch_la-dhttp.o): in function
nc_http_size’:
dhttp.c:(.text+0xc49): undefined reference to curl_easy_setopt' ld: dhttp.c:(.text+0xc66): undefined reference to
curl_easy_setopt’
ld: dhttp.c:(.text+0xc81): undefined reference to curl_easy_perform' ld: dhttp.c:(.text+0xc9f): undefined reference to
curl_easy_getinfo’
ld: dhttp.c:(.text+0xce9): undefined reference to curl_easy_setopt' ld: dhttp.c:(.text+0xd07): undefined reference to
curl_easy_setopt’
ld: dhttp.c:(.text+0xd5e): undefined reference to curl_easy_strerror' ld: dhttp.c:(.text+0xd8d): undefined reference to
curl_easy_strerror’
ld: dhttp.c:(.text+0xdf4): undefined reference to curl_easy_strerror' ld: dhttp.c:(.text+0xe29): undefined reference to
curl_easy_strerror’
ld: dhttp.c:(.text+0xe5b): undefined reference to curl_easy_strerror' ld: /home/camxsvc/libraries/ioapi3.2/Linux2_x86_64ifort/libnetcdf.a(libdispatch_la-dhttp.o): in function
nc_http_close’:
dhttp.c:(.text+0x1283): undefined reference to curl_easy_cleanup' ld: /home/camxsvc/libraries/ioapi3.2/Linux2_x86_64ifort/libnetcdf.a(libdispatch_la-dhttp.o): in function
nc_http_init_verbose’:
dhttp.c:(.text+0x179c): undefined reference to curl_easy_init' ld: dhttp.c:(.text+0x17bf): undefined reference to
curl_easy_setopt’
ld: dhttp.c:(.text+0x17ff): undefined reference to curl_easy_setopt' ld: dhttp.c:(.text+0x181e): undefined reference to
curl_easy_setopt’
ld: dhttp.c:(.text+0x182e): undefined reference to curl_easy_strerror' ld: dhttp.c:(.text+0x185e): undefined reference to
curl_easy_strerror’
make[1]: *** [Makefile:248: airs2m3] Error 1
make[1]: Leaving directory ‘/home/camxsvc/libraries/ioapi3.2/m3tools’
make: *** [Makefile:205: all] Error 2