Class::Methodmaker build failure and installed size
Peter Palfrader <[email protected]> Sun, 17 Oct 2004 02:21:47 +0200
| Newsgroups | gmane.comp.lang.perl.modules.class-methodmaker |
|---|---|
| Message-ID | <[email protected]> |
Hi, there's two things I wonder about: 2.04 doesn't build for me, 2.02 did previously. I'm not sure you should use the INSTALL* settings for finding include paths for building (build log below). Also, I guess those uses of uninitialized variables shouldn't be :) Can you fix that upstream or should I just add some hacks to debian's diff to make it build? (I haven't found the time to try yet) A user complained about the size of Methodmaker 2.02 on disk. Apparently an installed Class::Methodmake requires some 20 megs of diskspace - at least that's what the package uses that I build. It seems there are a lot of almost identical files in /usr/share/perl5/auto/Class/MethodMaker/* that were created by AutoSplit. It compresses surprisingly well to some 360k alltogether but still needs a lot on disk. Is there any chance this could be fixed, or is it my fault? Build log for 2.04: dpkg-buildpackage: source package is libclass-methodmaker-perl dpkg-buildpackage: source version is 2.04-1 dpkg-buildpackage: source maintainer is Peter Palfrader <[email protected]> dpkg-buildpackage: host architecture is amd64 fakeroot debian/rules clean dh_testdir dh_testroot rm -f build-stamp configure-stamp if [ -e Makefile ]; then /usr/bin/make -i distclean; fi dh_clean dpkg-source -b Class-MethodMaker-2.04 dpkg-source: warning: source directory `./Class-MethodMaker-2.04' is not <sourcepackage>-<upstreamversion> `libclass-methodmaker-perl-2.04' dpkg-source: warning: .orig directory name Class-MethodMaker-2.04.orig is not <package>-<upstreamversion> (wanted libclass-methodmaker-perl-2.04.orig) dpkg-source: building libclass-methodmaker-perl using existing libclass-methodmaker-perl_2.04.orig.tar.gz dpkg-source: building libclass-methodmaker-perl in libclass-methodmaker-perl_2.04-1.diff.gz dpkg-source: building libclass-methodmaker-perl in libclass-methodmaker-perl_2.04-1.dsc debian/rules build dh_testdir # Add here commands to configure the package. /usr/bin/perl Makefile.PL INSTALLBIN=`pwd`/debian/tmp/usr/bin INSTALLSCRIPT=`pwd`/debian/tmp/usr/bin INSTALLDIRS=perl INSTALLMAN1DIR=`pwd`/debian/tmp/usr/share/man/man1 INSTALLMAN3DIR=`pwd`/debian/tmp/usr/share/man/man3 INSTALLPRIVLIB=`pwd`/debian/tmp/usr/share/perl5 INSTALLARCHLIB=`pwd`/debian/tmp`/usr/bin/perl -MConfig -e 'print $Config{installarchlib}'` /usr/bin/perl Build.PL config=installbin=/home/weasel/tmp/methodmaker/Class-MethodMaker-2.04/debian/tmp/usr/bin config=installscript=/home/weasel/tmp/methodmaker/Class-MethodMaker-2.04/debian/tmp/usr/bin installdirs=core config=installman1dir=/home/weasel/tmp/methodmaker/Class-MethodMaker-2.04/debian/tmp/usr/share/man/man1 config=installman3dir=/home/weasel/tmp/methodmaker/Class-MethodMaker-2.04/debian/tmp/usr/share/man/man3 config=installprivlib=/home/weasel/tmp/methodmaker/Class-MethodMaker-2.04/debian/tmp/usr/share/perl5 config=installarchlib=/home/weasel/tmp/methodmaker/Class-MethodMaker-2.04/debian/tmp/usr/lib/perl/5.8 Creating custom builder _build/lib/CMM/AutoSplit.pm in _build/lib/CMM Checking whether your kit is complete... Looks good Creating new 'Build' script for 'Class-MethodMaker' version '2.04' Unknown 'build_class', defaulting to 'Module::Build' touch configure-stamp dh_testdir # Add here commands to compile the package. /usr/bin/make make[1]: Entering directory `/home/weasel/tmp/methodmaker/Class-MethodMaker-2.04' /usr/bin/perl Build --makefile_env_macros 1 /usr/bin/perl generate.PL lib/Class/MethodMaker/array.pm lib/Class/MethodMaker/hash.pm lib/Class/MethodMaker/scalar.pm ./cmmg.pl components/array.m > lib/Class/MethodMaker/array.pm Subroutine Cwd::fastcwd redefined at /usr/lib/perl/5.8/XSLoader.pm line 91. ./cmmg.pl components/hash.m > lib/Class/MethodMaker/hash.pm Subroutine Cwd::fastcwd redefined at /usr/lib/perl/5.8/XSLoader.pm line 91. ./cmmg.pl components/scalar.m > lib/Class/MethodMaker/scalar.pm Subroutine Cwd::fastcwd redefined at /usr/lib/perl/5.8/XSLoader.pm line 91. lib/Class/MethodMaker/OptExt.pm -> blib/lib/Class/MethodMaker/OptExt.pm lib/Class/MethodMaker/hash.pm -> blib/lib/Class/MethodMaker/hash.pm lib/Class/MethodMaker/Constants.pm -> blib/lib/Class/MethodMaker/Constants.pm lib/Class/MethodMaker/Engine.pm -> blib/lib/Class/MethodMaker/Engine.pm lib/Class/MethodMaker/V1Compat.pm -> blib/lib/Class/MethodMaker/V1Compat.pm lib/Class/MethodMaker.pm -> blib/lib/Class/MethodMaker.pm lib/Class/MethodMaker/array.pm -> blib/lib/Class/MethodMaker/array.pm lib/Class/MethodMaker/scalar.pm -> blib/lib/Class/MethodMaker/scalar.pm lib/Class/MethodMaker/Engine.xs -> lib/Class/MethodMaker/Engine.c Use of uninitialized value in string eq at /usr/share/perl5/ExtUtils/ParseXS.pm line 463, <File0000> line 15. Use of uninitialized value in pattern match (m//) at /usr/share/perl5/ExtUtils/ParseXS.pm line 464, <File0000> line 15. Use of uninitialized value in string eq at /usr/share/perl5/ExtUtils/ParseXS.pm line 463, <File0000> line 15. Use of uninitialized value in pattern match (m//) at /usr/share/perl5/ExtUtils/ParseXS.pm line 464, <File0000> line 15. Use of uninitialized value in string eq at /usr/share/perl5/ExtUtils/ParseXS.pm line 463, <File0000> line 15. Use of uninitialized value in pattern match (m//) at /usr/share/perl5/ExtUtils/ParseXS.pm line 464, <File0000> line 15. Use of uninitialized value in string eq at /usr/share/perl5/ExtUtils/ParseXS.pm line 463, <File0000> line 15. Use of uninitialized value in pattern match (m//) at /usr/share/perl5/ExtUtils/ParseXS.pm line 464, <File0000> line 15. cc -I/home/weasel/tmp/methodmaker/Class-MethodMaker-2.04/debian/tmp/usr/lib/perl/5.8/CORE -fPIC -c -D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -DDEBIAN -fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -o lib/Class/MethodMaker/Engine.o lib/Class/MethodMaker/Engine.c lib/Class/MethodMaker/Engine.xs:1:20: EXTERN.h: No such file or directory lib/Class/MethodMaker/Engine.xs:2:18: perl.h: No such file or directory lib/Class/MethodMaker/Engine.xs:3:18: XSUB.h: No such file or directory lib/Class/MethodMaker/Engine.c:19: warning: parameter names (without types) in function declaration lib/Class/MethodMaker/Engine.c:19: warning: data definition has no type or storage class lib/Class/MethodMaker/Engine.c: In function `XS': lib/Class/MethodMaker/Engine.c:22: error: `dXSARGS' undeclared (first use in this function) lib/Class/MethodMaker/Engine.c:22: error: (Each undeclared identifier is reported only once lib/Class/MethodMaker/Engine.c:22: error: for each function it appears in.) lib/Class/MethodMaker/Engine.c:23: error: `items' undeclared (first use in this function) lib/Class/MethodMaker/Engine.c:24: error: `aTHX_' undeclared (first use in this function) lib/Class/MethodMaker/Engine.c:24: error: parse error before string constant lib/Class/MethodMaker/Engine.c:25: error: `cv' undeclared (first use in this function) lib/Class/MethodMaker/Engine.c:27: error: `SV' undeclared (first use in this function) lib/Class/MethodMaker/Engine.c:27: error: `sub' undeclared (first use in this function) lib/Class/MethodMaker/Engine.c:28: warning: cast to pointer from integer of different size lib/Class/MethodMaker/Engine.c:29: warning: cast to pointer from integer of different size lib/Class/MethodMaker/Engine.c:30: warning: cast to pointer from integer of different size lib/Class/MethodMaker/Engine.xs:10: error: `GV' undeclared (first use in this function) lib/Class/MethodMaker/Engine.xs:10: error: parse error before ')' token lib/Class/MethodMaker/Engine.xs:11: error: parse error before ')' token lib/Class/MethodMaker/Engine.xs:12: error: parse error before ')' token lib/Class/MethodMaker/Engine.xs:13: error: parse error before ')' token lib/Class/MethodMaker/Engine.c:38: error: `XSRETURN_EMPTY' undeclared (first use in this function) lib/Class/MethodMaker/Engine.c: At top level: lib/Class/MethodMaker/Engine.c:44: warning: parameter names (without types) in function declaration lib/Class/MethodMaker/Engine.c:44: warning: data definition has no type or storage class lib/Class/MethodMaker/Engine.c:46: error: redefinition of `XS' lib/Class/MethodMaker/Engine.c:21: error: `XS' previously defined here lib/Class/MethodMaker/Engine.c: In function `XS': lib/Class/MethodMaker/Engine.c:47: error: `dXSARGS' undeclared (first use in this function) lib/Class/MethodMaker/Engine.c:50: error: `cv' undeclared (first use in this function) lib/Class/MethodMaker/Engine.c:51: error: `items' undeclared (first use in this function) lib/Class/MethodMaker/Engine.c:52: error: `XS_VERSION_BOOTCHECK' undeclared (first use in this function) lib/Class/MethodMaker/Engine.c:54: error: `XS_Class__MethodMaker__Engine_set_sub_name' undeclared (first use in this function) lib/Class/MethodMaker/Engine.c:55: error: `XSRETURN_YES' undeclared (first use in this function) error building .o file from 'lib/Class/MethodMaker/Engine.c' at /usr/share/perl5/Module/Build/Base.pm line 2166, <File0000> line 15. make[1]: *** [all] Error 2 make[1]: Leaving directory `/home/weasel/tmp/methodmaker/Class-MethodMaker-2.04' make: *** [build-stamp] Error 2 -- Peter ------------------------------------------------------- This SF.net email is sponsored by: IT Product Guide on ITManagersJournal Use IT products in your business? Tell us what you think of them. Give us Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more http://productguide.itmanagersjournal.com/guidepromo.tmpl