On Fri, Jul 11, 2003 at 07:39:05AM -0700, Edward Chaltry wrote:
> Hello,
>
> I am trying to build the SWISH::API module from the latest swish 2.4.0-pr1
> code base. The module builds correctly, but a (large) number of tests
> fail. I have taken the latest updates from cvs with the same result. Here
> is my output:
Running make test TEST_VERBOSE=1 will display which tests are failing.
I'm running on Debian Linux with Perl 5.8.0. Here's a complete build
session. I'm not seeing any problems.
First build swish -- I'm using a local directory for this example:
moseley@bumby:~$ tar zxof swish-e-2.4.0-pr1.tar.gz
moseley@bumby:~$ cd swish-e-2.4.0-pr1
moseley@bumby:~/swish-e-2.4.0-pr1$ ./configure --prefix=$HOME/Ed >/dev/null
moseley@bumby:~/swish-e-2.4.0-pr1$ make >/dev/null
moseley@bumby:~/swish-e-2.4.0-pr1$ make install >/dev/null
Did it install where I think?
moseley@bumby:~/swish-e-2.4.0-pr1$ ls $HOME/Ed
bin include lib man share
Ok, looks good. Now build the Perl module. I have to specify where to
find the just built and installed header and library:
moseley@bumby:~/swish-e-2.4.0-pr1/perl$ perl Makefile.PL \
> CCFLAGS=-I$HOME/Ed/include \
> LIBS="-L$HOME/Ed/lib -lswish-e"
For testing we will need the path to your SWISH-E binary.
** Enter "skip" (without quotes) to skip testing - you will not be able to run "make test"
Enter the location of the swish-e executable[/usr/local/bin/swish-e]: /home/moseley/Ed/bin/swish-e
Your SWISH-E version: 2.4.01
Creating index...'/home/moseley/Ed/bin/swish-e -c t/test.conf -f t/index.swish-e -v 0'
Checking if your kit is complete...
Looks good
Writing Makefile for SWISH::API
moseley@bumby:~/swish-e-2.4.0-pr1/perl$ make
cp API.pm blib/lib/SWISH/API.pm
/usr/bin/perl /usr/share/perl/5.8.0/ExtUtils/xsubpp -noprototypes -typemap /usr/share/perl/5.8.0/ExtUtils/typemap -typemap typemap API.xs > API.xsc && mv API.xsc API.c
cc -c -I/home/moseley/Ed/include -O3 -DVERSION=\"0.01\" -DXS_VERSION=\"0.01\" -fPIC "-I/usr/lib/perl/5.8.0/CORE" API.c
Running Mkbootstrap for SWISH::API ()
chmod 644 API.bs
rm -f blib/arch/auto/SWISH/API/API.so
LD_RUN_PATH="/home/moseley/Ed/lib" cc -shared -L/usr/local/lib API.o -o blib/arch/auto/SWISH/API/API.so -L/home/moseley/Ed/lib -lswish-e
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
Ok, to make sure that SWISH::API is linking with the just installed
library (i.e. make sure it's pointing to $HOME/Ed/lib:
moseley@bumby:~/swish-e-2.4.0-pr1/perl$ ldd blib/arch/auto/SWISH/API/API.so
libswish-e.so.2 => /home/moseley/Ed/lib/libswish-e.so.2 (0x4000f000)
libc.so.6 => /lib/libc.so.6 (0x40035000)
libz.so.1 => /lib/libz.so.1 (0x40145000)
libm.so.6 => /lib/libm.so.6 (0x40152000)
/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x80000000)
moseley@bumby:~/swish-e-2.4.0-pr1/perl$ make test
PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/test....ok
All tests successful.
Files=1, Tests=90, 0 wallclock secs ( 0.13 cusr + 0.00 csys = 0.13 CPU)
--
Bill Moseley
moseley@hank.org
Received on Tue Jul 15 00:40:18 2003