Subject: | staticperl and problems with compile some kind of packages: |
Date: | Fri, 04 Oct 2013 11:17:57 +0200 |
To: | bug-App-Staticperl [...] rt.cpan.org |
From: | "Eljot na Onet.pl" <eljot_007 [...] poczta.onet.pl> |
Hi,
I've got problems installing some perl modules under perlstatic:
Environment:
OS: CentOS 5.4 32bit
App::Staticperl version 1.43
perl installed by staticperl: default (5.12.4)
------------------------------------
1. Problem while install XS modules
------------------------------------
For example when I execute:
$ staticperl cpan Params::Validate
I got messages:
Going to read '~/.staticperl/cpan/Metadata'
Database was generated on Tue, 01 Oct 2013 23:08:10 GMT
Running install for module 'Params::Validate'
Running make for D/DR/DROLSKY/Params-Validate-1.08.tar.gz
Checksum for
~/.staticperl/cpan/sources/authors/id/D/DR/DROLSKY/Params-Validate-1.08.tar.gz
ok
CPAN.pm: Going to build D/DR/DROLSKY/Params-Validate-1.08.tar.gz
ld: warning: cannot find entry symbol _start; defaulting to 0000000008048074
Creating new 'MYMETA.yml' with configuration results
Creating new 'Build' script for 'Params-Validate' version '1.08'
Building Params-Validate
cc -Ic -I~/.staticperl/perl/lib/CORE -DXS_VERSION="1.08"
-DVERSION="1.08" -c -g -DPERL_DISABLE_PMC -DPERL_ARENA_SIZE=16376
-DNO_PERL_MALLOC_ENV -D_GNU_SOURCE -DNDEBUG -fno-strict-aliasing -pipe
-I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -Os -o
lib/Params/Validate/XS.o lib/Params/Validate/XS.c
ExtUtils::Mkbootstrap::Mkbootstrap('blib/arch/auto/Params/Validate/XS/XS.bs')
ld -o blib/arch/auto/Params/Validate/XS/XS.none lib/Params/Validate/XS.o
ld: warning: cannot find entry symbol _start; defaulting to 0000000008048074
lib/Params/Validate/XS.o: In function `article':
~/.staticperl/cpan/build/Params-Validate-1.08-6zjjy7/lib/Params/Validate/XS.xs:213:
undefined reference to `Perl_sv_2pv_flags'
lib/Params/Validate/XS.o: In function `boot_Params__Validate__XS':
~/.staticperl/cpan/build/Params-Validate-1.08-6zjjy7/lib/Params/Validate/XS.c:1802:
undefined reference to `PL_markstack_ptr'
~/.staticperl/cpan/build/Params-Validate-1.08-6zjjy7/lib/Params/Validate/XS.c:1802:
undefined reference to `PL_stack_base'
~/.staticperl/cpan/build/Params-Validate-1.08-6zjjy7/lib/Params/Validate/XS.c:1802:
undefined reference to `PL_stack_sp'
~/.staticperl/cpan/build/Params-Validate-1.08-6zjjy7/lib/Params/Validate/XS.c:1814:
undefined reference to `Perl_sv_2pv_flags'
~/.staticperl/cpan/build/Params-Validate-1.08-6zjjy7/lib/Params/Validate/XS.c:1814:
undefined reference to `PL_stack_base'
~/.staticperl/cpan/build/Params-Validate-1.08-6zjjy7/lib/Params/Validate/XS.c:1814:
undefined reference to `Perl_get_sv'
~/.staticperl/cpan/build/Params-Validate-1.08-6zjjy7/lib/Params/Validate/XS.c:1814:
undefined reference to `Perl_form'
~/.staticperl/cpan/build/Params-Validate-1.08-6zjjy7/lib/Params/Validate/XS.c:1814:
undefined reference to `Perl_newSVpvn'
~/.staticperl/cpan/build/Params-Validate-1.08-6zjjy7/lib/Params/Validate/XS.c:1814:
undefined reference to `Perl_sv_derived_from'
~/.staticperl/cpan/build/Params-Validate-1.08-6zjjy7/lib/Params/Validate/XS.c:1814:
undefined reference to `Perl_new_version'
~/.staticperl/cpan/build/Params-Validate-1.08-6zjjy7/lib/Params/Validate/XS.c:1814:
undefined reference to `Perl_upg_version'
~/.staticperl/cpan/build/Params-Validate-1.08-6zjjy7/lib/Params/Validate/XS.c:1814:
undefined reference to `Perl_vcmp'
~/.staticperl/cpan/build/Params-Validate-1.08-6zjjy7/lib/Params/Validate/XS.c:1814:
undefined reference to `Perl_vstringify'
~/.staticperl/cpan/build/Params-Validate-1.08-6zjjy7/lib/Params/Validate/XS.c:1814:
undefined reference to `Perl_sv_2mortal'
~/.staticperl/cpan/build/Params-Validate-1.08-6zjjy7/lib/Params/Validate/XS.c:1814:
undefined reference to `Perl_newSVpvf'
~/.staticperl/cpan/build/Params-Validate-1.08-6zjjy7/lib/Params/Validate/XS.c:1814:
undefined reference to `Perl_sv_2mortal'
~/.staticperl/cpan/build/Params-Validate-1.08-6zjjy7/lib/Params/Validate/XS.c:1814:
undefined reference to `Perl_sv_free2'
~/.staticperl/cpan/build/Params-Validate-1.08-6zjjy7/lib/Params/Validate/XS.c:1814:
undefined reference to `Perl_sv_free'
~/.staticperl/cpan/build/Params-Validate-1.08-6zjjy7/lib/Params/Validate/XS.c:1814:
undefined reference to `Perl_croak'
~/.staticperl/cpan/build/Params-Validate-1.08-6zjjy7/lib/Params/Validate/XS.c:1817:
undefined reference to `Perl_newXS_flags'
~/.staticperl/cpan/build/Params-Validate-1.08-6zjjy7/lib/Params/Validate/XS.c:1818:
undefined reference to `Perl_newXS'
~/.staticperl/cpan/build/Params-Validate-1.08-6zjjy7/lib/Params/Validate/XS.c:1820:
undefined reference to `PL_unitcheckav'
~/.staticperl/cpan/build/Params-Validate-1.08-6zjjy7/lib/Params/Validate/XS.c:1821:
undefined reference to `PL_scopestack_ix'
~/.staticperl/cpan/build/Params-Validate-1.08-6zjjy7/lib/Params/Validate/XS.c:1821:
undefined reference to `Perl_call_list'
~/.staticperl/cpan/build/Params-Validate-1.08-6zjjy7/lib/Params/Validate/XS.c:1823:
undefined reference to `PL_stack_base'
~/.staticperl/cpan/build/Params-Validate-1.08-6zjjy7/lib/Params/Validate/XS.c:1823:
undefined reference to `PL_sv_yes'
[...] (about 700 rows cutted with similar info)
~/.staticperl/cpan/build/Params-Validate-1.08-6zjjy7/lib/Params/Validate/XS.xs:999:
undefined reference to `Perl_sv_catpv'
error building blib/arch/auto/Params/Validate/XS/XS.none from
lib/Params/Validate/XS.o at
~/.staticperl/perl/lib/ExtUtils/CBuilder/Base.pm line 241.
DROLSKY/Params-Validate-1.08.tar.gz
./Build -- NOT OK
Running Build test
Can't test without successful make
Running Build install
Make had returned bad status, install seems impossible
All symbols are defined in libperl.a library so I think the linker is
not given the library during make. Is it a bug in App:Starticperl or in
package Makefile.PL or am I doing something wrong?
------------------------------------
2. The second problem concerns those perl packages what doesn't have
Makefile.PL but Build.PL instead and instsrc command is used.
------------------------------------
executing command:
$ staticperl instsrc ./
(unpacked source is in $PWD) results with:
***
*** installing modules from source
*** .
***
.
Can't open perl script "MakeFile.PL": No such file or directory
FATAL: .: error running MakeFile.PL
Could yuo please help me?
--
Greetings
Jarek Lubczyński
There are 10 kinds of people:
Those who understand binary and those who don't