Skip to main content.
home | support | download

Back to List Archive

Problem making SWISH::API

From: William M Conlon <bill(at)not-real.tothept.com>
Date: Thu Oct 05 2006 - 22:42:25 GMT
This is a problem with this particular system, as it makes fine on  
another Fedora Core box, and the problem occurs with both 2.4.3 and  
2.4.4.  But maybe someone can clue me into something obvious.

The problem appears at make test -- it says it can't find the API.so,  
but it's there.  The output below is for 2.4.4rc1, but it also occurs  
for 2.4.3, so the issue isn't XSLoader versus DynaLoader.  (I also  
installed XSLoader without any luck).

Thanks.

[root@white perl]# make clean
rm -rf API.c t/index.swish-e t/index.swish-e.prop ./blib  
Makefile.aperl blib/arch/auto/SWISH/API/extralibs.all blib/arch/auto/ 
SWISH/API/extralibs.ld perlmain.c tmon.out mon.out so_locations  
pm_to_blib *.o *.a perl.exe perl perl API.bs API.bso API.def  
libAPI.def API.exp API.x core core.*perl.*.? *perl.core core.[0-9]  
core.[0-9][0-9] core.[0-9][0-9][0-9] core.[0-9][0-9][0-9][0-9] core. 
[0-9][0-9][0-9][0-9][0-9]
mv Makefile Makefile.old > /dev/null 2>&1

[root@white perl]# perl Makefile.PL
Using swish-config found at [/usr/local/bin/swish-config]
Creating index...'/usr/local/bin/swish-e -c t/test.conf -f t/ 
index.swish-e -v 0'

Checking if your kit is complete...
Warning: the following files are missing in your kit:
         META.yml
Please inform the author.
Writing Makefile for SWISH::API

[root@white perl]# make
cp API.pm blib/lib/SWISH/API.pm
/usr/bin/perl /usr/lib/perl5/5.8.6/ExtUtils/xsubpp -noprototypes - 
typemap /usr/lib/perl5/5.8.6/ExtUtils/typemap -typemap typemap   
API.xs > API.xsc && mv API.xsc API.c
gcc -c  -g -O2 -I/usr/local/include -D_REENTRANT -D_GNU_SOURCE - 
DDEBUGGING -fno-strict-aliasing -pipe -I/usr/local/include - 
D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm -O2 -g - 
pipe -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -m32 -march=i386 - 
mtune=pentium4 -fasynchronous-unwind-tables   -DVERSION=\"0.04\" - 
DXS_VERSION=\"0.04\" -fPIC "-I/usr/lib/perl5/5.8.6/i386-linux-thread- 
multi/CORE"   API.c
Running Mkbootstrap for SWISH::API ()
chmod 644 API.bs
rm -f blib/arch/auto/SWISH/API/API.so
gcc  -shared -L/usr/local/lib API.o  -o blib/arch/auto/SWISH/API/ 
API.so   -L/usr/local/lib -lswish-e -lz -lm
chmod 755 blib/arch/auto/SWISH/API/API.so
cp API.bs blib/arch/auto/SWISH/API/API.bs
chmod 644 blib/arch/auto/SWISH/API/API.bs
Manifying blib/man3/SWISH::API.3pm

[root@white perl]# make test
PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e"  
"test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/dummy....ok
t/test.....Can't load '/root/swish-e-2.4.4rc1/perl/blib/arch/auto/ 
SWISH/API/API.so' for module SWISH::API: libswish-e.so.2: cannot open  
shared object file: No such file or directory at /usr/lib/perl5/5.8.6/ 
i386-linux-thread-multi/DynaLoader.pm line 230.
at t/test.t line 6
Compilation failed in require at t/test.t line 6.
t/test.....dubious
         Test returned status 2 (wstat 512, 0x200)
Failed Test Stat Wstat Total Fail  Failed  List of Failed
------------------------------------------------------------------------ 
-------
t/test.t       2   512    ??   ??       %  ??
Failed 1/2 test scripts, 50.00% okay. 0/1 subtests failed, 100.00% okay.
make: *** [test_dynamic] Error 2

[root@white perl]# ls -al /root/swish-e-2.4.4rc1/perl/blib/arch/auto/ 
SWISH/API/API.so
-rwxr-xr-x  1 root root 159134 Oct  5 15:28 /root/swish-e-2.4.4rc1/ 
perl/blib/arch/auto/SWISH/API/API.so



Bill
Received on Thu Oct 5 15:42:36 2006