Hi,
Since MSYS2/Pacman on Windows updated libcurl from 8.7.x to 8.8.x last
week, a project that built properly before now produces the error :
C:\Windows\system32\cmd.exe /C "cd . &&
D:\a\_temp\msys64\ucrt64\bin\cc.exe -Wall -Wno-format -Wshadow
-Wtype-limits -Wvla -Wold-style-declaration -Wno-unknown-pragmas
-Wno-error=varargs -Wno-format-truncation
-Wno-error=address-of-packed-member -std=c99 -march=native -msse2 -g
-Wfatal-errors -mfpmath=sse -g -Werror -Wuninitialized -O0 -g3 -ggdb3
-Wmaybe-uninitialized -D_DEBUG -Wl,--enable-runtime-pseudo-reloc -shared
-o src\libansel.dll -Wl,--out-implib,src\libansel.dll.a
-Wl,--major-image-version,0,--minor-image-version,0
@CMakeFiles\lib_ansel.rsp && cd ."
D:/a/_temp/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/14.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe:
src/CMakeFiles/lib_ansel.dir/common/curl_tools.c.obj: in function
`dt_curl_init':
D:/a/ansel/ansel/src/src/common/curl_tools.c:29:(.text+0xde): undefined
reference to `__imp_curl_easy_reset'
D:/a/_temp/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/14.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe:
D:/a/ansel/ansel/src/src/common/curl_tools.c:34:(.text+0x186): undefined
reference to `__imp_curl_easy_setopt'
D:/a/_temp/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/14.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe:
D:/a/ansel/ansel/src/src/common/curl_tools.c:37:(.text+0x1c2): undefined
reference to `__imp_curl_easy_setopt'
D:/a/_temp/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/14.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe:
D:/a/ansel/ansel/src/src/common/curl_tools.c:40:(.text+0x1f4): undefined
reference to `__imp_curl_easy_setopt'
* The offending file is there :
https://github.com/aurelienpierreeng/ansel/blob/master/src/common/curl_tools.c
* CMakeList.txt can be found there :
https://github.com/aurelienpierreeng/ansel/blob/master/CMakeLists.txt
* CMake reports to have found CURL binary path and version properly.
I have the same issue (undefined reference to __imp_curl_*** functions)
when building Exiv2 with cURL support in the same environnment. This too
used to build with no error on the same setup until libcurl version
changed recently.
Is there an internal change to libcurl that could explain this or is it
an issue with MSYS2 packages ?
Thanks for any pointer you could give.
Aurélien.
--
Unsubscribe: https://lists.haxx.se/mailman/listinfo/curl-library
Etiquette: https://curl.se/mail/etiquette.html