Bug#588788: perl: ftbfs with gcc4.5
Paul Brook
paul at nowt.org
Mon Jul 12 10:15:20 UTC 2010
Package: perl
Version: 5.10.1-13
Severity: normal
Tags: patch
By default patchlevel.h includes git_version.h. The latter is generated by configure.
However the debian/config.debian uses patchlevel.h before running configure.
This has always been fairly borken, but old GCC processed the rest of the file anyway, and none noticed the compiler errors. Recent GCC consider this a fatal error and produce no output.
Defining PERL_PATCHLEVEL_H_IMPLICIT avoids requiring git_version.h while still providing the necessary symbols.
-- System Information:
Debian Release: squeeze/sid
APT prefers unstable
APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.33-2-amd64 (SMP w/8 CPU cores)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Versions of packages perl depends on:
ii libbz2-1.0 1.0.5-4 high-quality block-sorting file co
ii libc6 2.11.2-2 Embedded GNU C Library: Shared lib
ii libdb4.7 4.7.25-9 Berkeley v4.7 Database Libraries [
ii libgdbm3 1.8.3-9 GNU dbm database routines (runtime
ii perl-base 5.10.1-13 minimal Perl system
ii perl-modules 5.10.1-13 Core Perl modules
ii zlib1g 1:1.2.3.4.dfsg-3 compression library - runtime
Versions of packages perl recommends:
ii make 3.81-8 An utility for Directing compilati
ii netbase 4.42 Basic TCP/IP networking system
Versions of packages perl suggests:
pn libterm-readline-gnu-perl | l <none> (no description available)
ii perl-doc 5.10.1-13 Perl documentation
-- no debconf information
-------------- next part --------------
=== modified file 'debian/config.debian'
--- debian/config.debian 2010-05-04 16:32:38 +0000
+++ debian/config.debian 2010-07-12 09:46:37 +0000
@@ -2,7 +2,8 @@
eval $(echo '#include "./patchlevel.h"
SETver=PERL_REVISION.PERL_VERSION;
-SETsubver= PERL_SUBVERSION' | gcc -E - | sed -n '/^SET/{s///;s/ //gp;}')
+SETsubver= PERL_SUBVERSION' | gcc -E -DPERL_PATCHLEVEL_H_IMPLICIT - \
+| sed -n '/^SET/{s///;s/ //gp;}')
fullver="$ver.$subver"
nextver="$ver."$(($subver+1))
More information about the Perl-maintainers
mailing list