So I partially answered my own question, by removing
C:\Windows\SysWOW64\zlib1.dll. This caused
$ ldd conftest.exe | grep zlib
zlib1.dll => /mingw32/bin/zlib1.dll (0x63080000)
and the libxml test run by configure to pass.
But I don't understand enough to be satisfied with this solution.
Obviously it has something to do with the DLL search path, but how do I
manage that path correctly so this won't happen again or to someone else
building our software?
Matt
On 3/21/2016 8:25 AM, Matthew A. Postiff wrote:
> Hi,
>
> The answer you all provided for my last question was very helpful.
>
> I'm still trying to compile a program in msys2.
> In the MINGW64 environment, configure passes and it compiles.
> In the MINGW32 environment, configure fails, complaining about missing
> libxml2. But, the conftest.exe that is built to test for libxml is
> linked to libxml2:
>
> $ ldd conftest.exe | grep libxml2
> libxml2-2.dll => /mingw32/bin/libxml2-2.dll (0x71140000)
>
> Digging around I found another problem with conftest.exe:
>
> $ ldd conftest.exe | grep zlib
> zlib1.dll => /c/Windows/system32/zlib1.dll (0x10000000)
>
> There are two problems with zlib1.dll:
>
> 1. /c/Windows/system32/zlib1.dll DOES NOT EXIST on my system. I found
> the DLL instead at /c/Windows/SysWOW64/zlib1.dll
> 2. That library shouldn't have been linked. It should have linked to
> /mingw32/bin/zlib1.dll
>
> Any ideas on what is wrong, or what I'm doing wrong?
>
> Thank you,
>
> Matt
>
> P.S. Bigger question: You ask why am I building on both 32-bit and
> 64-bit environments? Because the MINGW64 version fails at runtime in a
> strange way, and I wanted to try a 32-bit build to see if I could learn
> something more about why that happens.
>
>
> ------------------------------------------------------------------------------
> Transform Data into Opportunity.
> Accelerate data analysis in your applications with
> Intel Data Analytics Acceleration Library.
> Click to learn more.
> http://pubads.g.doubleclick.net/gampad/clk?id=278785351&iu=/4140
> _______________________________________________
> Msys2-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/msys2-users
>
------------------------------------------------------------------------------
Transform Data into Opportunity.
Accelerate data analysis in your applications with
Intel Data Analytics Acceleration Library.
Click to learn more.
http://pubads.g.doubleclick.net/gampad/clk?id=278785351&iu=/4140
_______________________________________________
Msys2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/msys2-users