Bug#613894: h2ph fails to corectly convert /usr/include/bits/wchar.h to a perl header

Dominic Hargreaves dom at earth.li
Sat Aug 20 15:57:11 UTC 2011


tags 613894 +confirmed
found 613894 5.14.1-2

On Fri, Feb 18, 2011 at 11:27:51AM +1030, Tim wrote:
> Running h2ph against /usr/include/bits/wchar.h generates a perl header with the following syntax errors:
> syntax error at /usr/local/lib/perl/5.10.1/bits/wchar.ph line 15, near ")ord"
> syntax error at /usr/local/lib/perl/5.10.1/bits/wchar.ph line 20, near "}"
> 
> it appears the h2ph cannot correctly parse the following line in /usr/include/bits/wchar.h
> #elif L'\0' - 1 > 0
> as it is coresponding line in the generated perl header that contains the syntax error
> elsif((defined(&L) ? &L : undef)ord('\0') - 1> 0) {

Confirmed. Note that in unstable this file is now in (eg):

/usr/include/i386-linux-gnu/bits/wchar.h

-- 
Dominic Hargreaves | http://www.larted.org.uk/~dom/
PGP key 5178E2A5 from the.earth.li (keyserver,web,email)






More information about the Perl-maintainers mailing list