Skip to main content.
home | support | download

Back to List Archive

Re: API make errors

From: Brad Miele <bmiele(at)not-real.ipnstock.com>
Date: Mon Nov 15 2004 - 16:13:55 GMT
actually i took one of my production machines offline to do a complete
install, so swish-e is installed in the correct place, and it seems to be
being found by the Makefile

su-2.05b# perl Makefile.PL PREFIX=/usr/local CCFLAGS=-I/usr/local/include
LIBS="-L/usr/local/lib -lswish-e"

Using swish-e binary '/usr/local/bin/swish-e'
Your SWISH-E version: 2.5.2
Creating index...'/usr/local/bin/swish-e -c t/test.conf -f t/index.swish-e
-v 0'

Writing Makefile for SWISH::API

seems to know where stuff is...

su-2.05b# make
cc -c    -I/usr/local/include -O    -DVERSION=\"0.03\"
-DXS_VERSION=\"0.03\" -DPIC -fPIC
"-I/usr/local/lib/perl5/5.8.1/i386-freebsd/CORE"   API.c
API.xs: In function `XS_SWISH__API_push_meta_list':
API.xs:378: syntax error before `*'
API.xs:379: `o' undeclared (first use in this function)
API.xs:379: (Each undeclared identifier is reported only once
API.xs:379: for each function it appears in.)
*** Error code 1

Stop in /usr/local/src/swish-e-2.5.2-2004-11-14/perl.

poking around some more...

Brad
------------------------------------------------------------
 Brad Miele
 Technology Director
 IPNStock
 (866) 476-7862 x902
 bmiele@ipnstock.com

 If God had wanted you to go around nude, He would have given you bigger
hands.


On Mon, 15 Nov 2004, Peter Karman wrote:

> I believe that a new feature in the Makefile.PL tries to determine the
> location of the first swish-e in your PATH. If that version is not the
> current 2.5.2 version, then your header and library are out of sync.
>
> if you are installing 2.5.2 in a different location that 2.4.2 (which is
> likely a good idea, since you're trying to set it up in parallel and
> then move over, I assume), you might set the SWISHBIN env variable prior
> to running perl Makefile.PL.
>
> Example:
>
> perl Makefile.PL SWISHBIN=/path/to/2.5.2/bin/swish-e
>
> try:
>
> perl Makefile.PL SWISHHELP
>
> to see the new usage statement.
>
> and finally, make sure you have done a 'make install' on the swish-e
> binary before compiling the perl API. That way the API is getting the
> current header and library files.
>
> Brad Miele wrote on 11/15/04 8:22 AM:
>
> > I am midway through the install of 2.5.2 on my machines,
> >
> > I get the following error when running make in the perl directory:
> >
> > su-2.05b# gmake
> > cc -c   -DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H -fno-strict-aliasing
> > -I/usr/local/include -O   -DVERSION=\"0.03\" -DXS_VERSION=\"0.03\" -DPIC
> > -fPIC "-I/usr/local/lib/perl5/5.8.1/i386-freebsd/CORE"   API.c
> > API.xs: In function `XS_SWISH__API_push_meta_list':
> > API.xs:378: syntax error before `*'
> > API.xs:379: `o' undeclared (first use in this function)
> > API.xs:379: (Each undeclared identifier is reported only once
> > API.xs:379: for each function it appears in.)
> > gmake: *** [API.o] Error 1
> > su-2.05b#
> >
> > line 378, where the trouble seems to begin, is:
> >
> >             SV *o = sv_newmortal();
> >
> > i am sure that this is something that I am doing wrong (standard
> > disclaimer) any thoughts?
> >
> > Brad
> > ------------------------------------------------------------
> >  Brad Miele
> >  Technology Director
> >  IPNStock
> >  (866) 476-7862 x902
> >  bmiele@ipnstock.com
> >
> >  Bizoos, n.:
> > 	The millions of tiny individual bumps that make up a
> > basketball.
> > 		-- Rich Hall, "Sniglets"
> >
>
> --
> Peter Karman  .  http://www.cray.com/craydoc/ .  karman(at)not-real.cray.com
>
Received on Mon Nov 15 08:14:02 2004