Thread Modul kompilieren ohne root und mit zus. Library (5 answers)
Opened by gikotim at 2010-01-10 10:30

gikotim
 2010-01-11 19:21
#130393 #130393
User since
2010-01-08
3 Artikel
BenutzerIn
[default_avatar]
okay, also LIBS=... brachte schon mal ein wenig Erfolg.
Nun habe ich ein makefile ohne Warnung

Code: (dl )
Writing Makefile for SwissEph


Dann make:
Code: (dl )
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
cp lib/SwissEph.pm blib/lib/SwissEph.pm
/usr/bin/perl /usr/local/lib/perl5/5.8.9/ExtUtils/xsubpp -typemap /usr/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/perl5/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 the 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/SwissEph.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



Aber im make test geht's in die Hosen:

Code: (dl )
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(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: Undefined symbol "swe_pheno" at /usr/local/lib/perl5/5.8.9/mach/DynaLoader.pm 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 line 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.


Ich habe es nochmals als root compilert, da geht make test.

Nochjemand eine Idee?

View full thread Modul kompilieren ohne root und mit zus. Library