Dear msys2-users list, after upgrading my msys2 installation with "pacman -sYuu" i've noticed that libtool for some reason can no longer link with zlib or the winsock ws2_32 dll. I tried to reinstall zlib-devel and mingw-w64-x86_64-zlib but that did not fix anything for zlib so it seems that the problem is that the new libtool for some reason cannot decode the .dll.a files provided by the msys2/mingw64 packages.
This is the errors that libtools spits out for the two libraries: *** Warning: linker path does not have real file for library -lz. *** I have the capability to make that library automatically link in when *** you link to this library. But I can only do this if you have a *** shared version of the library, which you do not appear to have *** because I did check the linker path looking for a file starting *** with libz and none of the candidates passed a file format test *** using a file magic. Last file checked: C:/msys64/mingw64/lib/libz.dll.a *** Warning: linker path does not have real file for library -lws2_32. *** I have the capability to make that library automatically link in when *** you link to this library. But I can only do this if you have a *** shared version of the library, which you do not appear to have *** because I did check the linker path looking for a file starting *** with libws2_32 and none of the candidates passed a file format test *** using a file magic. Last file checked: C:/msys64/mingw64/x86_64-w64-mingw32/lib/libws2_32.a *** The inter-library dependencies that have been dropped here will be *** automatically added whenever a program is linked with this library *** or is declared to -dlopen it. *** Since this library must not contain undefined symbols, *** because either the platform does not support them or *** it was explicitly requested with -no-undefined, *** libtool will only create a static version of it. The import files does exist: $ ls -hl C:/msys64/mingw64/lib/libz.dll.a C:/msys64/mingw64/x86_64-w64-mingw32/lib/libws2_32.a -rw-r--r-- 1 henrik Ingen 60K May 22 2019 C:/msys64/mingw64/lib/libz.dll.a -rw-r--r-- 1 henrik Ingen 276K Oct 19 17:34 C:/msys64/mingw64/x86_64-w64-mingw32/lib/libws2_32.a Googling around for this I found some suggestions to set "lt_cv_deplibs_check_method=“pass_all”" and this does indeed make libtool blindly accept both libraries but then it still refuses to make a dynamic library of my project since it finds undefined symbols (most likely due to the skip of the check). Any one with some suggestions on how to solve this? It's especially strange since this have worked flawless for many years until some of the updates late this year. Regards, Henrik Holst
_______________________________________________ Msys2-users mailing list Msys2-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/msys2-users