Thread View: news.software.nntp
4 messages
4 total messages
Started by Dougal Campbell
Thu, 01 Jan 1998 00:00
Perl filter help (can't compile)?
Author: Dougal Campbell
Date: Thu, 01 Jan 1998 00:00
Date: Thu, 01 Jan 1998 00:00
32 lines
2236 bytes
2236 bytes
I'm wanting to recompile INN with perl support (in order to run
CleanFeed). I've done a fresh install of Perl 5.004_04 and MD5. "make
test" in both cases runs fine. I've set the appropriate values in the
perl sections of config.data, but when I try to do a make, I get a
bunch of parse errors in the perl header files included by lib/perl.c.
Here's a brief sample:
gcc -I../include -O2 -m486 -fomit-frame-pointer -DTIMER -DOVERSCREAM -I/usr/local/lib/perl5/i586-linux/5.00404/CORE -c perl.c -o perl.o
In file included from /usr/local/lib/perl5/i586-linux/5.00404/CORE/perl.h:1012,
from perl.c:29:
/usr/local/lib/perl5/i586-linux/5.00404/CORE/cop.h:205: parse error before `bool'
/usr/local/lib/perl5/i586-linux/5.00404/CORE/cop.h:205: warning: no semicolon at end of struct or union
/usr/local/lib/perl5/i586-linux/5.00404/CORE/cop.h:206: warning: data definition has no type or storage class
/usr/local/lib/perl5/i586-linux/5.00404/CORE/cop.h:215: parse error before `}'
/usr/local/lib/perl5/i586-linux/5.00404/CORE/cop.h:256: field `cx_subst' has incomplete type
It goes on in a similar fashion, with errors from "scope.h", "perl.h",
and "proto.h".
I'm compiling under Linux (2.0.23 kernel) with gcc 2.7.2.
Does anyone have any suggestions as to what I might be doing wrong?
--
Dougal Campbell, Systems Manager, ADViCOM dougal@advicom.net
http://www.advicom.net/ http://advicom.net/~dougal/
See my homepage for anti-spam information!
QUOTE OF THE MOMENT:
OK, so you're a Ph.D. Just don't touch anything.
Re: Perl filter help (can't compile)?
Author: tom minchin
Date: Fri, 02 Jan 1998 00:00
Date: Fri, 02 Jan 1998 00:00
18 lines
1226 bytes
1226 bytes
Dougal Campbell <dougal@vespucci.advicom.net> writes: >I'm wanting to recompile INN with perl support (in order to run >CleanFeed). I've done a fresh install of Perl 5.004_04 and MD5. "make >test" in both cases runs fine. I've set the appropriate values in the >perl sections of config.data, but when I try to do a make, I get a >bunch of parse errors in the perl header files included by lib/perl.c. >Here's a brief sample: This should go in the INN FAQ I suspect (I didn't know either): Add to your PERL_INC line in config.data: -Dbool=char -DHAS_BOOL tom@interact.net.au
Re: Perl filter help (can't compile)?
Author: Thomas Neumann
Date: Fri, 02 Jan 1998 00:00
Date: Fri, 02 Jan 1998 00:00
28 lines
1421 bytes
1421 bytes
tom@black.interact.net.au (tom minchin) writes:
> Dougal Campbell <dougal@vespucci.advicom.net> writes:
> >I'm wanting to recompile INN with perl support (in order to run
> >CleanFeed). I've done a fresh install of Perl 5.004_04 and MD5. "make
> >test" in both cases runs fine. I've set the appropriate values in the
> >perl sections of config.data, but when I try to do a make, I get a
> >bunch of parse errors in the perl header files included by lib/perl.c.
> >Here's a brief sample:
>
> This should go in the INN FAQ I suspect (I didn't know either):
>
> Add to your PERL_INC line in config.data:
>
> -Dbool=char -DHAS_BOOL
Actually, the if-you-really-want-to-get-it-right answer is to run
$ perl -MConfig -e 'print $Config{ccflags},"\n"'
and add the output of that to the PERL_INC line of your config.data
-t
Re: Perl filter help (can't compile)?
Author: Dougal Campbell
Date: Sun, 04 Jan 1998 00:00
Date: Sun, 04 Jan 1998 00:00
41 lines
1971 bytes
1971 bytes
Thomas Neumann <tom@smart.ruhr.de> wrote:
> tom@black.interact.net.au (tom minchin) writes:
> > Dougal Campbell <dougal@vespucci.advicom.net> writes:
[...stuff about problems compiling...]
> > This should go in the INN FAQ I suspect (I didn't know either):
> >
> > Add to your PERL_INC line in config.data:
> >
> > -Dbool=char -DHAS_BOOL
Aha! That did the trick!
> Actually, the if-you-really-want-to-get-it-right answer is to run
>
> $ perl -MConfig -e 'print $Config{ccflags},"\n"'
>
> and add the output of that to the PERL_INC line of your config.data
>
> -t
I had already tried Tom Minchin's suggestion before I saw your expanded
reply. I've saved your message for future reference. Thanks to you
both!
I thought I recalled seeing a message a while back that mentioned
something about the BOOL defines, but I couldn't track it down either
in my personal usenet archives or in the Usenet RKT.
Now....time for some serious spam squishing....
--
Dougal Campbell, Systems Manager, ADViCOM dougal@advicom.net
http://www.advicom.net/ http://advicom.net/~dougal/
See my homepage for anti-spam information!
QUOTE OF THE MOMENT:
It's not reality or how you perceive things that's important -- it's
what you're taking for it...
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads