Do you mean more clean than

$ printenv | grep PATH
PATH=/mingw32/bin:/usr/local/bin:/usr/bin:/bin

or are you referring to the "DOS" path presented to the shell before the shell starts?

For the record...I had a zlib1.dll in C:\Windows\SysWOW64\ on two different computers. On the one, it caused a libxml check in configure to fail. The check returned 127--library missing--but it wasn't libxml2-2 that was missing! On the other, it caused gcc to be unable to write output. It returned 1 and did not give any output. When I deleted zlib1.dll, these odd problems disappeared.

On 3/21/2016 6:11 PM, Baruch Burstein wrote:
The recommended practice is to run msys2 shells with a clean PATH environment variable. That might help here, too.

On Mon, Mar 21, 2016 at 8:40 PM, Matthew A. Postiff <[email protected]> wrote:
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



--
˙uʍop-ǝpısdn sı ɹoʇıuoɯ ɹnoʎ 'sıɥʇ pɐǝɹ uɐɔ noʎ ɟı


------------------------------------------------------------------------------
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

Reply via email to