mingw-cross-env-list
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Mingw-cross-env-list] vigra and openexr zlib calls


From: Tony Theodore
Subject: Re: [Mingw-cross-env-list] vigra and openexr zlib calls
Date: Sun, 25 Sep 2011 15:20:46 +1000

On 22 September 2011 09:11, Mark Brand <address@hidden> wrote:
> Hi,
>
> While updating vigra [2], I noticed that the new version depends on openexr.
> I was surprised to find out that linking test-vigra.exe failed due to zlib
> symbols address@hidden and address@hidden referenced by openexr not being
> found, despite -lz.
>
> After some poking around, I decided that the problem was caused by
> ZLIB_WINAPI being defined in openexr source files. Via zconf.h, this causes
> the symbols to be decorated with the '@16', apparently following the stdcall
> calling convention. Removing the ZLIB_WINAPI seems to solve the problem[1].
>
> As an alternative, I tried using "-Wl,--enable-stdcall-fixup" when linking
> test-vigra.exe, but that had no apparent effect.
>
> It seems strange that this has not come up earlier, since anybody linking to
> openexr would have had this problem.
>
> Feedback is welcome! This includes the subject of whether something like the
> patch in [1] should be suggested upstream.

Hi Mark,

It looks like someone already suggested it upstream a while ago [1],
and it's the accepted solution. This hasn't been updated in the
sources though, so a reminder wouldn't hurt.

Cheers,

Tony


[1] http://lists.gnu.org/archive/html/openexr-devel/2010-11/msg00002.html



reply via email to

[Prev in Thread] Current Thread [Next in Thread]