develooper Front page | perl.perl5.porters | Postings from November 2011

Re: Fwd: [rt.cpan.org #71964] 3.05 breaks XS modules onCygwin/perl-5.10

Thread Previous | Thread Next
From:
Tony Cook
Date:
November 7, 2011 23:58
Subject:
Re: Fwd: [rt.cpan.org #71964] 3.05 breaks XS modules onCygwin/perl-5.10
Message ID:
20111108075847.GB11454@mars.tony.develop-help.com
On Tue, Nov 08, 2011 at 07:58:27AM +0100, Steffen Mueller wrote:
> Here's a bug report that the static-by-default behaviour of newer
> ExtUtils::ParseXS versions break XS modules on cygwin. I have no
> access to cygwin and no time to change that. I tried mailing Reini,
> but he seems too busy, too.
> 
> Does anybody have an idea except for disabling XS_INTERNAL on cygwin?

EU::PXS fails to install for me on the stock cygwin perl, with errors
similar to those in the bug report:

t/001-basic.t ............................ 1/11 XSTest.c:171:1: error: external
linkage required for symbol ‘XS_XSTest_is_even’ because of ‘dllexport’ attribute

XSTest.c:172:1: error: external linkage required for symbol ‘XS_XSTest_is_even’
because of ‘dllexport’ attribute
XSTest.c:191:1: error: external linkage required for symbol ‘XS_XSTest_something
’ because of ‘dllexport’ attribute
XSTest.c:192:1: error: external linkage required for symbol ‘XS_XSTest_something
’ because of ‘dllexport’ attribute

If I remove the __declspec(dllexport) from line 497 of
lib/ExtUtils/ParseXS/Utilities.pm the tests pass.

I can't see why the __declspec(dllexport) was there for XS().

Tony

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About