gikotim has asked for the wisdom of the Perl Monks concerning the following question:
This runs without any complains. Than makeperl Makefile.PL LIBS=-L/usr/home/rolf/local/lib INC=-I/usr/home/rolf/local/include INSTALL_BASE=/usr/home/rolf/local
and make test fails:cp lib/SwissEph.pm blib/lib/SwissEph.pm /usr/bin/perl /usr/local/lib/perl5/5.8.9/ExtUtils/xsubpp -typemap /us +r/local/lib/perl5/5.8.9/ExtUtils/typemap SwissEph.xs > SwissEph.xsc +&& mv SwissEph.xsc SwissEph.c Please specify prototyping behavior for SwissEph.xs (see perlxs manual +) cc -c -I/usr/home/rolf/local/include -DAPPLLIB_EXP="/usr/local/lib/p +erl5/5.8.9/BSDPAN" -DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H -fno-strict- +aliasing -pipe -I/usr/local/include -O2 -pipe -fno-strict-aliasing + -DVERSION=\"1.76.00\" -DXS_VERSION=\"1.76.00\" -DPIC -fPIC "-I/usr/ +local/lib/perl5/5.8.9/mach/CORE" SwissEph.c In file included from SwissEph.xs:5: ppport.h:3042:1: warning: "PERL_UNUSED_DECL" redefined In file included from SwissEph.xs:2: /usr/local/lib/perl5/5.8.9/mach/CORE/perl.h:204:1: warning: this is th +e location of the previous definition Running Mkbootstrap for SwissEph () chmod 644 SwissEph.bs rm -f blib/arch/auto/SwissEph/SwissEph.so cc -shared -L/usr/local/lib SwissEph.o -o blib/arch/auto/SwissEph/S +wissEph.so chmod 755 blib/arch/auto/SwissEph/SwissEph.so cp SwissEph.bs blib/arch/auto/SwissEph/SwissEph.bs chmod 644 blib/arch/auto/SwissEph/SwissEph.bs Manifying blib/man3/SwissEph.3
Any help appreciated very much!PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_h +arness(0, 'blib/lib', 'blib/arch')" t/*.t t/SwissEph....NOK 1/233 + # Failed test 'use SwissEph;' # at t/SwissEph.t line 7. # Tried to use 'SwissEph'. # Error: Can't load '/usr/home/rolf/ccs/swe/SwissEph-1.76.00/blib +/arch/auto/SwissEph/SwissEph.so' for module SwissEph: /usr/home/rolf/ +ccs/swe/SwissEph-1.76.00/blib/arch/auto/SwissEph/SwissEph.so: Undefin +ed symbol "swe_pheno" at /usr/local/lib/perl5/5.8.9/mach/DynaLoader.p +m line 226. # at (eval 4) line 2 # Compilation failed in require at (eval 4) line 2. # BEGIN failed--compilation aborted at (eval 4) line 2. Undefined subroutine &SwissEph::swe_cotrans called at t/SwissEph.t lin +e 21. # Looks like you planned 233 tests but only ran 1. # Looks like you failed 1 test of 1 run. # Looks like your test died just after 1. t/SwissEph....dubious + Test returned status 255 (wstat 65280, 0xff00) DIED. FAILED tests 1-233 Failed 233/233 tests, 0.00% okay Failed Test Stat Wstat Total Fail List of Failed ---------------------------------------------------------------------- +--------- t/SwissEph.t 255 65280 233 465 1-233 Failed 1/1 test scripts. 233/233 subtests failed. Files=1, Tests=233, 0 wallclock secs ( 0.05 cusr + 0.00 csys = 0.05 + CPU) Failed 1/1 test programs. 233/233 subtests failed. *** Error code 255 Stop in /usr/home/rolf/ccs/swe/SwissEph-1.76.00.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: compile perl module without root and extra library
by Anonymous Monk on Jan 12, 2010 at 08:47 UTC | |
by gikotim (Initiate) on Jan 12, 2010 at 09:34 UTC | |
by almut (Canon) on Jan 12, 2010 at 10:10 UTC | |
by gikotim (Initiate) on Jan 12, 2010 at 11:45 UTC |