Skip to main content.
home | support | download

Back to List Archive

Re: [swish-e] Can't locate auto/SWISH/API/ in @INC...

From: Bernard T. Higonnet <bth(at)>
Date: Mon Feb 05 2007 - 13:34:54 GMT
On Sunday 04 February 2007 15:03, Peter Karman wrote:
> Bernard T. Higonnet scribbled on 2/4/07 1:49 AM:
> > Hello,
> > 
> > I am unable to make the perl API work for the reason given in the subject 
> > line.
> > 
> > Normally, I think this would indicate a problem with perl, mod_perl, 
> > directories, etc on my machine.
> > 
> > I looked at a couple of .al files lying around and they seem specific for the 
> > routines that have them, so I can't make by hand.
> > 
> Is XSLoader installed? or DynaLoader? The former is preferred.

both are installed I believe.

> Did SWISH::API actually build and install with no errors?

Not really, Compilation went OK, but tests did not. If one reads the build info below, test 2 will ve seen to fail at line 6 which is:

require SWISH::API;

so for sure I have a problem!

I feel very shameful at not having investigated this more at the time.

That being said I still don't know how to fix it...

build info:

freebsd2# perl Makefile.PL  PREFIX=/usr/local/apache2/perl-bin
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'

Writing Makefile for SWISH::API
freebsd2# gmake
cc -c  -O2 -fno-strict-aliasing -pipe -I/usr/local/include -DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H -fno-strict-aliasing -pipe -Wdeclaration-after-statement -I/usr/local/include -O   -DVERSION=\"0.04\" -DXS_VERSION=\"0.04\" -DPIC -fPIC "-I/usr/local/lib/perl5/5.8.8/i386-freebsd/CORE"   API.c
API.xs: In function `XS_SWISH__API_Fuzzify':
API.xs:117: warning: assignment makes pointer from integer without a cast
Running Mkbootstrap for SWISH::API ()
chmod 644
rm -f blib/arch/auto/SWISH/API/
LD_RUN_PATH="/usr/local/lib:/usr/lib" cc  -shared  -L/usr/local/lib API.o  -o blib/arch/auto/SWISH/API/   \
   -L/usr/local/lib -lswish-e -lz -lm   \

chmod 755 blib/arch/auto/SWISH/API/
cp blib/arch/auto/SWISH/API/
chmod 644 blib/arch/auto/SWISH/API/
Manifying blib/man3/SWISH::API.3

freebsd2# gmake test
PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/test.....Can't load '/tmp/swish-e-2.4.4/perl/blib/arch/auto/SWISH/API/' for module SWISH::API: /tmp/swish-e-2.4.4/perl/blib/arch/auto/SWISH/API/ Undefined symbol "SwishFuzzify" at /usr/local/lib/perl5/5.8.8/i386-freebsd/ line 230.
 at t/test.t line 6
Compilation failed in require at t/test.t line 6.
        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.
gmake: *** [test_dynamic] Error 2
Users mailing list
Received on Mon Feb 5 05:35:06 2007