From ben [...] morrow.me.uk Sat Aug 27 06: | 59:50 2011 |
MIME-Version: | 1.0 |
X-Spam-Status: | No, score=-6.9 tagged_above=-99.9 required=10 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_HI=-5] autolearn=ham |
Content-Disposition: | inline |
X-Spam-Flag: | NO |
content-type: | text/plain; charset="utf-8" |
Message-ID: | <20110827105939.GA58451 [...] anubis.morrow.me.uk> |
X-Virus-Scanned: | Debian amavisd-new at bestpractical.com |
X-Spam-Score: | -6.9 |
Received: | from localhost (localhost [127.0.0.1]) by hipster.bestpractical.com (Postfix) with ESMTP id B80A32400F3 for <cpan-bug+Unicode-Map8 [...] hipster.bestpractical.com>; Sat, 27 Aug 2011 06:59:50 -0400 (EDT) |
Received: | from hipster.bestpractical.com ([127.0.0.1]) by localhost (hipster.bestpractical.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id wp7B-spz7FUi for <cpan-bug+Unicode-Map8 [...] hipster.bestpractical.com>; Sat, 27 Aug 2011 06:59:49 -0400 (EDT) |
Received: | from la.mx.develooper.com (x1.develooper.com [207.171.7.70]) by hipster.bestpractical.com (Postfix) with SMTP id 15A742400F1 for <bug-Unicode-Map8 [...] rt.cpan.org>; Sat, 27 Aug 2011 06:59:48 -0400 (EDT) |
Received: | (qmail 31240 invoked by uid 103); 27 Aug 2011 10:59:48 -0000 |
Received: | from x16.dev (10.0.100.26) by x1.dev with QMQP; 27 Aug 2011 10:59:48 -0000 |
Received: | from isis.morrow.me.uk (HELO isis.morrow.me.uk) (204.109.63.142) by 16.mx.develooper.com (qpsmtpd/0.80/v0.80-19-gf52d165) with ESMTP; Sat, 27 Aug 2011 03:59:46 -0700 |
Received: | from anubis.morrow.me.uk (host109-145-255-252.range109-145.btcentralplus.com [109.145.255.252]) (Authenticated sender: mauzo) by isis.morrow.me.uk (Postfix) with ESMTPSA id 02284468C8 for <bug-Unicode-Map8 [...] rt.cpan.org>; Sat, 27 Aug 2011 10:59:42 +0000 (UTC) |
Received: | by anubis.morrow.me.uk (Postfix, from userid 1001) id 4AA5A8086; Sat, 27 Aug 2011 11:59:39 +0100 (BST) |
Delivered-To: | cpan-bug+Unicode-Map8 [...] hipster.bestpractical.com |
User-Agent: | Mutt/1.5.21 (2010-09-15) |
Subject: | Won't build with EU::ParseXS 3.03 (incorrect XS) |
Return-Path: | <ben [...] morrow.me.uk> |
X-RT-Mail-Extension: | unicode-map8 |
X-Original-To: | cpan-bug+Unicode-Map8 [...] hipster.bestpractical.com |
X-Spam-Check-BY: | 16.mx.develooper.com |
Date: | Sat, 27 Aug 2011 11:59:39 +0100 |
X-Spam-Level: | |
To: | bug-Unicode-Map8 [...] rt.cpan.org |
From: | Ben Morrow <ben [...] morrow.me.uk> |
X-RT-Original-Encoding: | us-ascii |
Content-Length: | 1044 |
Unicode::Map8 won't build with recent versions of ExtUtils::ParseXS, due
to a slightly incorrect use of INPUT sections in Map8.xs. The failure
looks like this
/usr/bin/perl /usr/local/lib/perl5/site_perl/5.14.1/ExtUtils/xsubpp
-typemap /usr/local/lib/perl5/5.14.1/ExtUtils/typemap -typemap
typemap Map8.xs > Map8.xsc && mv Map8.xsc Map8.c
Could not find a typemap for C type 'U16*' in Map8.xs, line 229
and the problem is that variables declared in an INPUT section with the
same names as parameters need to have types which are in the typemap.
(For some reason older versions of xsubpp didn't enforce this.) The
simplest fix is to rename the parameters in question, as in the patch
below.
Ben
--- Map8.xs.orig 2011-08-27 11:42:45.404611555 +0100
+++ Map8.xs 2011-08-27 11:43:08.343260769 +0100
@@ -218,7 +218,7 @@
U16 uc
SV*
-to8(map, str16)
+to8(map, xstr16)
Map8* map
PREINIT:
STRLEN len;
@@ -282,7 +282,7 @@
RETVAL
SV*
-to16(map, str8)
+to16(map, xstr8)
Map8* map
PREINIT:
STRLEN len;