develooper Front page | perl.perl5.porters | Postings from April 2019

[perl #133973] ExtUtils::ParseXS release, plus bug with clang++ on5.14-5.16 on EUPXS 3.04_01+

Thread Previous
From:
etj@cpan.org via RT
Date:
April 1, 2019 17:22
Subject:
[perl #133973] ExtUtils::ParseXS release, plus bug with clang++ on5.14-5.16 on EUPXS 3.04_01+
Message ID:
rt-4.0.24-18858-1554139354-1802.133973-15-0@perl.org
On Mon, 01 Apr 2019 10:09:03 -0700, ej_zg@hotmail.com wrote:
> ExtUtils::ParseXS is 3.40 in perl blead, 3.35 on CPAN. Can someone
> release it?

I'm content to be co-maint on this if wished, by the way, to go with EU::CppGuess etc.

> Also, there is a problem with v3.04_01+ on 5.14-5.16 on clang++, which
> I will expand on using the web UI.

To expand slightly: the problem was exposed by this CPANTesters report: http://www.cpantesters.org/cpan/report/4d4205da-541f-11e9-9066-e374b0ba08e8

Basically, perl.h on 5.14 didn't correctly detect that dNOOP should use a C++-style thing for clang, but the right thing happens if HASATTRIBUTE_UNUSED is manually undefined after config.h, and before perl.h: see https://github.com/tsee/extutils-cppguess/commit/07ec6d78221accea959a165119f757ff0aecdb26

On 5.16, that didn't work, but redefining dNOOP after perl.h does work: https://github.com/tsee/extutils-cppguess/commit/c622bb7c033ca697a544db11864d6d16e21fe668

On 5.18, nothing is necessary.

If it is desired, I can look at making EUPXS do the right thing (obviously that would require further checking for C++, which is redundant for this already-guaranteed-C++ bit of XS). Let me know.

---
via perlbug:  queue: perl5 status: new
https://rt.perl.org/Ticket/Display.html?id=133973

Thread Previous


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