Article View: gnu.gcc.help
Article #42336WAIS Perl5 module compile problem
From: Frank Bennett
Date: Wed, 13 Dec 1995 00:00
Date: Wed, 13 Dec 1995 00:00
128 lines
7456 bytes
7456 bytes
[ Article crossposted from comp.lang.perl.misc ]
[ Author was Frank Bennett ]
[ Posted on 13 Dec 1995 09:49:56 GMT ]
[ Article crossposted from comp.infosystems.wais ]
[ Author was Frank Bennett ]
[ Posted on 13 Dec 1995 09:49:21 GMT ]
I have written once before about this ("freeWAIS-sf w/Linux"),
and I apologize for the repeat postings. But I thought it
would be better to offer more specifics, and the original
posting (which I will now cancel) had a vague subject heading.
We are trying to install WAIS-sf 2.0.55, SFgate 2.0.x, and
waisperl 2.0.11. So far, WAIS-sf compiles and passes its
tests with flying colors. Perl5.00m is nearly there (still fails
on test 25 in op/stat.t). But waisperl is being stubborn.
Looking at the traces, it looks as though there is a problem
at the very outset of the install that is tripping things up.
If anyone can cast light on how to get past what is likely
to be our last hurdle, please do get in touch!
Other dynamically loaded modules (POSIX, Fntcl etc) do work with
our Perl5, and test okay. I have also tried making a static
version of the Wais-ified Perl using "make perl" in the module
sources. This builds, but fails the tests.
The traces, for "perl Makefile.PL", "make" and "make test",
are as follows:
*** perl Makefile.PL ***
Use of uninitialized value at /usr/local/lib/perl5/Cwd.pm line 144.
Use of uninitialized value at /usr/local/lib/perl5/Cwd.pm line 144.
Use of uninitialized value at /usr/local/lib/perl5/Cwd.pm line 144.
Use of uninitialized value at /usr/local/lib/perl5/Cwd.pm line 144.
Checking if your kit is complete...
Looks good
'TESTDB' is not a known MakeMaker parameter name.
Writing Makefile for Wais
*** make ***
mkdir ./blib
mkdir ./blib/auto
mkdir ./blib/auto/Wais
/usr/local/bin/perl -I/usr/local/lib/perl5/i386-linux -I/usr/local/lib/perl5 /usr/local/lib/perl5/ExtUtils/xsubpp -typemap /usr/local/lib/perl5/ExtUtils/typemap Wais.xs >Wais.tc && mv Wais.tc Wais.c
gcc -c -D__USE_BSD_SIGNAL -Dbool=char -DHAS_BOOL -O2 -fpic -I/usr/local/lib/perl5/i386-linux/CORE -DTRACE=0 -I/curtis/fbennett/freeWAIS/freeWAIS-sf-2.0.52/ir Wais.c
In file included from /curtis/fbennett/freeWAIS/freeWAIS-sf-2.0.52/ir/cutil.h:59,
from dictionary.h:27,
from Wais.c:30:
/curtis/fbennett/freeWAIS/freeWAIS-sf-2.0.52/ir/cdialect.h:62: warning: `alloca' redefined
/usr/include/alloca.h:44: warning: this is the location of the previous definition
Wais.c: In function `init_Wais':
Wais.c:45: warning: passing arg 2 of `sv_setpv' makes pointer from integer without a cast
gcc -c -D__USE_BSD_SIGNAL -Dbool=char -DHAS_BOOL -O2 -fpic -I/usr/local/lib/perl5/i386-linux/CORE -DTRACE=0 -I/curtis/fbennett/freeWAIS/freeWAIS-sf-2.0.52/ir HTWAIS.c
In file included from /curtis/fbennett/freeWAIS/freeWAIS-sf-2.0.52/ir/ui.h:25,
from HTWAIS.h:23,
from HTWAIS.c:50:
/curtis/fbennett/freeWAIS/freeWAIS-sf-2.0.52/ir/cdialect.h:62: warning: `alloca' redefined
/usr/include/alloca.h:44: warning: this is the location of the previous definition
gcc -c -D__USE_BSD_SIGNAL -Dbool=char -DHAS_BOOL -O2 -fpic -I/usr/local/lib/perl5/i386-linux/CORE -DTRACE=0 -I/curtis/fbennett/freeWAIS/freeWAIS-sf-2.0.52/ir dictionary.c
In file included from /curtis/fbennett/freeWAIS/freeWAIS-sf-2.0.52/ir/cutil.h:59,
from dictionary.h:27,
from dictionary.c:55:
/curtis/fbennett/freeWAIS/freeWAIS-sf-2.0.52/ir/cdialect.h:62: warning: `alloca' redefined
/usr/include/alloca.h:44: warning: this is the location of the previous definition
dictionary.c: In function `open_database':
dictionary.c:80: warning: passing arg 2 of `sv_setpv' makes pointer from integer without a cast
dictionary.c: In function `postings':
dictionary.c:264: warning: passing arg 2 of `sv_setpv' makes pointer from integer without a cast
dictionary.c:272: warning: passing arg 2 of `sv_setpv' makes pointer from integer without a cast
dictionary.c:276: warning: passing arg 2 of `sv_setpv' makes pointer from integer without a cast
dictionary.c:297: warning: passing arg 2 of `sv_setpv' makes pointer from integer without a cast
dictionary.c:300: warning: passing arg 2 of `sv_setpv' makes pointer from integer without a cast
dictionary.c:303: warning: passing arg 2 of `sv_setpv' makes pointer from integer without a cast
dictionary.c:313: warning: passing arg 2 of `sv_setpv' makes pointer from integer without a cast
Running Mkbootstrap for Wais ()
chmod 644 Wais.bs
LD_RUN_PATH="/curtis/fbennett/freeWAIS/freeWAIS-sf-2.0.52/ir:/curtis/fbennett/freeWAIS/freeWAIS-sf-2.0.52/regexp:/curtis/fbennett/freeWAIS/freeWAIS-sf-2.0.52/lib" gcc -o blib/auto/Wais/Wais.so -shared Wais.o HTWAIS.o dictionary.o -L/curtis/fbennett/freeWAIS/freeWAIS-sf-2.0.52/ir -L/curtis/fbennett/freeWAIS/freeWAIS-sf-2.0.52/regexp -L/curtis/fbennett/freeWAIS/freeWAIS-sf-2.0.52/lib -lwais -lregexp -lftw
chmod 755 blib/auto/Wais/Wais.so
cp Wais.bs ./blib/auto/Wais/Wais.bs
chmod 644 blib/auto/Wais/Wais.bs
cp Wais.pm blib/Wais.pm
chmod 644 blib/Wais.pm
*** make test ***
/usr/local/bin/perl -I./blib -I./blib -I/usr/local/lib/perl5/i386-linux -I/usr/local/lib/perl5 -e 'use Test::Harness qw(&runtests $verbose); $verbose=0; runtests @ARGV;' t/*.t
t/basic............./usr/local/bin/perl: can't resolve symbol 'ceil'
/usr/local/bin/perl: can't resolve symbol 'floor'
Can't load './blib/auto/Wais/Wais.so' for module Wais: Unable to resolve symbol at /usr/local/lib/perl5/DynaLoader.pm line 450.
at blib/Wais.pm line 13
BEGIN failed--compilation aborted at t/basic.t line 37.
FAILED on test 0
t/dict............../usr/local/bin/perl: can't resolve symbol 'ceil'
/usr/local/bin/perl: can't resolve symbol 'floor'
Can't load './blib/auto/Wais/Wais.so' for module Wais: Unable to resolve symbol at /usr/local/lib/perl5/DynaLoader.pm line 450.
at blib/Wais.pm line 13
BEGIN failed--compilation aborted at t/dict.t line 40.
FAILED on test 0
Failed 2/2 tests, 0.00% okay.
make: *** [test_dynamic] Error 29
--
Frank G Bennett, Jr | "On reflection, it seems
Law Department, SOAS, London | to me that life could be
Tel: (0171)323-6351 | quite pleasant indeed
email: fbennett@rumple.soas.ac.uk | without a working C
WWW: http://rumple.soas.ac.uk/~fbennett/| compiler."
--
Frank G Bennett, Jr | "On reflection, it seems
Law Department, SOAS, London | to me that life could be
Tel: (0171)323-6351 | quite pleasant indeed
email: fbennett@rumple.soas.ac.uk | without a working C
WWW: http://rumple.soas.ac.uk/~fbennett/| compiler."
--
Frank G Bennett, Jr | "On reflection, it seems
Law Department, SOAS, London | to me that life could be
Tel: (0171)323-6351 | quite pleasant indeed
email: fbennett@rumple.soas.ac.uk | without a working C
WWW: http://rumple.soas.ac.uk/~fbennett/| compiler."
Technical Details
Message-ID:
<4amrnm$g9k@clus1.ulcc.ac.uk>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 11318c,20e44f6bb490d35,start X-Google-Attributes: gid11318c,public From: fbennett@rumple.soas.ac.uk (Frank Bennett) Subject: WAIS Perl5 module compile problem Date: 1995/12/13 Message-ID: <4amrnm$g9k@clus1.ulcc.ac.uk> X-Deja-AN: 121757922 organization: University of London Computer Centre newsgroups: gnu.gcc.help