Bug#599933: perl: fails to build with GCC 4.5
Colin Watson
cjwatson at ubuntu.com
Tue Oct 12 14:56:11 UTC 2010
Package: perl
Version: 5.10.1-15
Severity: important
Tags: patch
User: ubuntu-devel at lists.ubuntu.com
Usertags: origin-ubuntu ubuntu-patch natty
Ubuntu recently switched to GCC 4.5, and we quickly found that Perl
failed to build with it. Here's the build log:
http://launchpadlibrarian.net/57494704/buildlog_ubuntu-natty-i386.perl_5.10.1-15ubuntu1_FAILEDTOBUILD.txt.gz
It ends as follows:
# Verify that the headers are usable
for ph in `< /build/buildd/perl-5.10.1/debian/headers sed -e 's/\.h$/.ph/'`; do \
if [ ! -f /build/buildd/perl-5.10.1/debian/tmp/usr/lib/perl/5.10/$ph ]; then \
echo "$ph: missing"; else \
/build/buildd/perl-5.10.1/perl.static -I /build/buildd/perl-5.10.1/debian/tmp/usr/lib/perl/5.10 -I /build/buildd/perl-5.10.1/debian/tmp/usr/share/perl/5.10 -e \
"print '"$ph": '; require '"$ph"'; print \"ok\n\";" \
|| exit 1; \
fi; \
done
Illegal declaration of subroutine main::__INT16_C at /build/buildd/perl-5.10.1/debian/tmp/usr/lib/perl/5.10/_h2ph_pre.ph line 162.
Compilation failed in require at /build/buildd/perl-5.10.1/debian/tmp/usr/lib/perl/5.10/asm/termios.ph line 1.
Compilation failed in require at -e line 1.
asm/termios.ph: make: *** [install-stamp] Error 1
I hunted around a bit and tracked down
http://perl5.git.perl.org/perl.git/commit/8d66b3f930dc6d88b524d103e304308ae73a46e7,
which fixes this problem (although the commit message is uninformative).
Attached please find a patch to incorporate this.
Thanks,
--
Colin Watson [cjwatson at ubuntu.com]
-------------- next part --------------
A non-text attachment was scrubbed...
Name: perl-gcc-4.5.patch
Type: text/x-diff
Size: 3810 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/perl-maintainers/attachments/20101012/7aa1cd97/attachment.patch>
More information about the Perl-maintainers
mailing list