Bug#545073: libjson-xs-perl: doesn't cleanly build on lenny
Marc Haber
mh+debian-bugs at zugschlus.de
Fri Sep 4 18:49:24 UTC 2009
Package: libjson-xs-perl
Version: 2.240-1
Severity: wishlist
Hi,
as a dependency-dependency of twirssi.pl, I am trying to backport
libjson-xs-perl to lenny. I had to remove the version from the
debhelper dependency (debhelper in lenny is 7.0.15), but all other
build dependencies were fully satisfied. Build fails, since it cannot
find sys/types.h (sic!):
$ env -i debuild
dpkg-buildpackage -rfakeroot -D -us -uc
dpkg-buildpackage: set CFLAGS to default value: -g -O2
dpkg-buildpackage: set CPPFLAGS to default value:
dpkg-buildpackage: set LDFLAGS to default value:
dpkg-buildpackage: set FFLAGS to default value: -g -O2
dpkg-buildpackage: set CXXFLAGS to default value: -g -O2
dpkg-buildpackage: source package libjson-xs-perl
dpkg-buildpackage: source version 2.240-1~zg1
dpkg-buildpackage: source changed by Marc Haber <mh at nechayev.zugschlus.de>
dpkg-buildpackage: host architecture i386
fakeroot debian/rules clean
dh clean
dh_testdir
dh_auto_clean
make[1]: Entering directory `/home/mh/libjson-xs-perl/libjson-xs-perl-2.240'
rm -f \
blib/script/json_xs
rm -f \
*.a core \
core.[0-9] blib/arch/auto/JSON/XS/extralibs.all \
core.[0-9][0-9] XS.bso \
pm_to_blib.ts core.[0-9][0-9][0-9][0-9] \
XS.x XS.bs \
perl tmon.out \
*.o pm_to_blib \
blib/arch/auto/JSON/XS/extralibs.ld blibdirs.ts \
core.[0-9][0-9][0-9][0-9][0-9] *perl.core \
core.*perl.*.? Makefile.aperl \
perl XS.def \
core.[0-9][0-9][0-9] mon.out \
libXS.def perlmain.c \
perl.exe XS.c \
so_locations XS.exp
rm -rf \
blib
mv Makefile Makefile.old > /dev/null 2>&1
rm -f \
XS.o Makefile.old \
Makefile
rm -rf \
JSON-XS-2.24
/usr/bin/perl "-MExtUtils::Manifest=fullcheck" -e fullcheck
Not in MANIFEST: debian/changelog
Not in MANIFEST: debian/compat
Not in MANIFEST: debian/control
Not in MANIFEST: debian/copyright
Not in MANIFEST: debian/libjson-xs-perl.debhelper.log
Not in MANIFEST: debian/rules
Not in MANIFEST: debian/watch
make[1]: Leaving directory `/home/mh/libjson-xs-perl/libjson-xs-perl-2.240'
dh_clean
dpkg-source -b libjson-xs-perl-2.240
dpkg-source: info: using source format `1.0'
dpkg-source: info: building libjson-xs-perl using existing libjson-xs-perl_2.240.orig.tar.gz
dpkg-source: info: building libjson-xs-perl in libjson-xs-perl_2.240-1~zg1.diff.gz
dpkg-source: info: building libjson-xs-perl in libjson-xs-perl_2.240-1~zg1.dsc
debian/rules build
dh build
dh_testdir
dh_auto_configure
Checking if your kit is complete...
Looks good
Writing Makefile for JSON::XS
dh_auto_build
make[1]: Entering directory `/home/mh/libjson-xs-perl/libjson-xs-perl-2.240'
cp XS/Boolean.pm blib/lib/JSON/XS/Boolean.pm
cp XS.pm blib/lib/JSON/XS.pm
/usr/bin/perl /usr/share/perl/5.10/ExtUtils/xsubpp -typemap /usr/share/perl/5.10/ExtUtils/typemap -typemap typemap XS.xs > XS.xsc && mv XS.xsc XS.c
cc -c -D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -g -DVERSION=\"2.24\" -DXS_VERSION=\"2.24\" -fPIC "-I/usr/lib/perl/5.10/CORE" XS.c
In file included from XS.xs:2:
/usr/lib/perl/5.10/CORE/perl.h:587:24: error: sys/types.h: No such file or directory
In file included from /usr/include/ctype.h:27,
from /usr/lib/perl/5.10/CORE/perl.h:618,
from XS.xs:2:
/usr/include/features.h:330:25: error: sys/cdefs.h: No such file or directory
In file included from /usr/lib/perl/5.10/CORE/perl.h:618,
from XS.xs:2:
/usr/include/ctype.h:48: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'enum'
/usr/include/ctype.h:102: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'extern'
/usr/include/ctype.h: In function 'isalpha':
/usr/include/ctype.h:103: error: expected declaration specifiers before '__THROW'
/usr/include/ctype.h:104: error: expected '=', ',', ';', 'asm' or '__attribute__' before '__THROW'
/usr/include/ctype.h:105: error: expected '=', ',', ';', 'asm' or '__attribute__' before '__THROW'
/usr/include/ctype.h:106: error: expected '=', ',', ';', 'asm' or '__attribute__' before '__THROW'
/usr/include/ctype.h:107: error: expected '=', ',', ';', 'asm' or '__attribute__' before '__THROW'
<snip>
sys/types.h is part of libc6-dev, which is of course installed. The
package builds fine on sid, even when one downgrades debhelper to
lenny's version on the sid system.
I am either doing something very wrong, or there is something hosed in
your package, or there is some version missing in libjson-xs-perl's
build dependencies. I would really love to be able to build
libjson-xs-perl on lenny.
Greetings
Marc
More information about the pkg-perl-maintainers
mailing list