Thread View: news.software.nntp
5 messages
5 total messages
Started by tom minchin
Sat, 13 Dec 1997 00:00
INN perl filters under Linux
Author: tom minchin
Date: Sat, 13 Dec 1997 00:00
Date: Sat, 13 Dec 1997 00:00
48 lines
3332 bytes
3332 bytes
I've been running c-nocem for a while, but it doesn't seem to worth the
amount of CPU time required (as well as receiving news.lists.filters).
Instead, I attempted to compile in Perl hooks into INND on a Linux box
with Perl 5.00403 (RH4.2 dist). Unfortunately I'm unable to get it to
compile perl.c - even using Perl 5.003.
I have my config.data set as:
## 17. Perl Configuration
## Do you want Perl support? Pick DO or DONT
#### =()<PERL_SUPPORT @<PERL_SUPPORT>@>()=
PERL_SUPPORT DO
## How do you get the PERL libraries? Probably -lperl -lm, blank if no PERL
#### =()<PERL_LIB @<PERL_LIB>@>()=
PERL_LIB -rdynamic -L/usr/local/lib /usr/lib/perl5/i386-linux/5.00401/auto/DynaLoader/DynaLoader.a -L/usr/lib/perl5/i386-linux/5.00401/CORE -lperl -lnsl -lgdbm -ldb -ldl -lm -lc -lposix -lcrypt
#PERL_LIB -L/usr/local/gnu/lib/perl5/i386-bsdos/5.003/CORE -lperl -lm
## Core directory (includes, libs). See perlembed(1)
#### =()<PERL_INC @<PERL_INC>@>()=
PERL_INC -I/usr/lib/perl5/i386-linux/5.00401/CORE
#PERL_INC -I/usr/local/gnu/lib/perl5/i386-bsdos/5.003/CORE
## Perl Filter Files. Should probably be prefixed with the same value as
## _PATH_CONTROLPROGS.
#### =()<_PATH_PERL_STARTUP_INND @<_PATH_PERL_STARTUP_INND>@>()=
_PATH_PERL_STARTUP_INND /usr/lib/news/bin/control/startup_innd.pl
#### =()<_PATH_PERL_FILTER_INND @<_PATH_PERL_FILTER_INND>@>()=
_PATH_PERL_FILTER_INND /usr/lib/news/bin/control/filter_innd.pl
#### =()<_PATH_PERL_FILTER_NNRPD @<_PATH_PERL_FILTER_NNRPD>@>()=
_PATH_PERL_FILTER_NNRPD /usr/lib/news/bin/control/filter_nnrpd.pl
The compile gets as far as perl.c in the lib directory and dies, with:
gcc -I../include -I/usr/lib/perl5/i386-linux/5.00401/CORE -c perl.c -o perl.oIn file included from /usr/lib/perl5/i386-linux/5.00401/CORE/perl.h:1006,
from perl.c:29:
/usr/lib/perl5/i386-linux/5.00401/CORE/cop.h:205: parse error before `bool'
/usr/lib/perl5/i386-linux/5.00401/CORE/cop.h:206: warning: data definition has no type or storage class
/usr/lib/perl5/i386-linux/5.00401/CORE/cop.h:215: parse error before `}'
/usr/lib/perl5/i386-linux/5.00401/CORE/cop.h:256: field `cx_subst' has incomplete type
In file included from /usr/lib/perl5/i386-linux/5.00401/CORE/perl.h:1010,
from perl.c:29:
/usr/lib/perl5/i386-linux/5.00401/CORE/scope.h:93: parse error before `bool'
/usr/lib/perl5/i386-linux/5.00401/CORE/scope.h:93: warning: no semicolon at end
of struct or union
Anyone had success or similar failure? (DejaNews didn't reveal anything - so
people might be happy or given up quietly in despair).
tom@interact.net.au
Re: INN perl filters under Linux
Author: Phil Crown
Date: Sat, 13 Dec 1997 00:00
Date: Sat, 13 Dec 1997 00:00
42 lines
2344 bytes
2344 bytes
I had this problem. If you #define bool unsigned long before the parse error it should compile. tom minchin wrote: > I've been running c-nocem for a while, but it doesn't seem to worth the > amount of CPU time required (as well as receiving news.lists.filters). > Instead, I attempted to compile in Perl hooks into INND on a Linux box > with Perl 5.00403 (RH4.2 dist). Unfortunately I'm unable to get it to > compile perl.c - even using Perl 5.003. > > The compile gets as far as perl.c in the lib directory and dies, with: > gcc -I../include -I/usr/lib/perl5/i386-linux/5.00401/CORE -c perl.c -o perl.oIn file included from /usr/lib/perl5/i386-linux/5.00401/CORE/perl.h:1006, > from perl.c:29: > /usr/lib/perl5/i386-linux/5.00401/CORE/cop.h:205: parse error before `bool' > /usr/lib/perl5/i386-linux/5.00401/CORE/cop.h:206: warning: data definition has no type or storage class > /usr/lib/perl5/i386-linux/5.00401/CORE/cop.h:215: parse error before `}' > /usr/lib/perl5/i386-linux/5.00401/CORE/cop.h:256: field `cx_subst' has incomplete type > In file included from /usr/lib/perl5/i386-linux/5.00401/CORE/perl.h:1010, > from perl.c:29: > /usr/lib/perl5/i386-linux/5.00401/CORE/scope.h:93: parse error before `bool' > /usr/lib/perl5/i386-linux/5.00401/CORE/scope.h:93: warning: no semicolon at end > of struct or union > > Anyone had success or similar failure? (DejaNews didn't reveal anything - so > people might be happy or given up quietly in despair). > > tom@interact.net.au -- Phil Crown pcrown@ispnews.com http://ispnews.com
Re: INN perl filters under Linux
Author: Thomas Neumann
Date: Sat, 13 Dec 1997 00:00
Date: Sat, 13 Dec 1997 00:00
17 lines
1100 bytes
1100 bytes
tom@black.interact.net.au (tom minchin) writes: > > The compile gets as far as perl.c in the lib directory and dies, with: > gcc -I../include -I/usr/lib/perl5/i386-linux/5.00401/CORE -c perl.c -o perl.oIn file included from /usr/lib/perl5/i386-linux/5.00401/CORE/perl.h:1006, > from perl.c:29: > /usr/lib/perl5/i386-linux/5.00401/CORE/cop.h:205: parse error before `bool' Append `-Dbool=char -DHAS_BOOL' to the PERL_INC line in your config.data and try again. -t
Re: INN perl filters under Linux
Author: Jeff Fisher
Date: Sun, 14 Dec 1997 00:00
Date: Sun, 14 Dec 1997 00:00
28 lines
1695 bytes
1695 bytes
On 13 Dec 1997 18:47:29 +0100, Thomas Neumann
<tom@smart.ruhr.de> said:
> tom@black.interact.net.au (tom minchin) writes:
>
> >
> > The compile gets as far as perl.c in the lib directory and dies, with:
> > gcc -I../include -I/usr/lib/perl5/i386-linux/5.00401/CORE -c perl.c -o perl.oIn file included from /usr/lib/perl5/i386-linux/5.00401/CORE/perl.h:1006,
> > from perl.c:29:
> > /usr/lib/perl5/i386-linux/5.00401/CORE/cop.h:205: parse error before `bool'
>
>
> Append `-Dbool=char -DHAS_BOOL' to the PERL_INC line in your config.data
> and try again.
Two responses, two different definitions for bool....
I'm using #define bool int here. It seems to be running fine, but
what is the proper definition??????
--
Jeff Fisher | ...I want to be on the side of the many.
UNIX Sys Admin - IES Industries | Therefore, I take great pains to explain
http://opus.ies-energy.com/jeff/ | to as many people as possible.
| - Johannes Kepler
Re: INN perl filters under Linux
Author: Thomas Neumann
Date: Mon, 15 Dec 1997 00:00
Date: Mon, 15 Dec 1997 00:00
17 lines
1101 bytes
1101 bytes
rzxtlg@dogbert.ies-energy.com (Jeff Fisher) writes: > > Two responses, two different definitions for bool.... > I'm using #define bool int here. It seems to be running fine, but > what is the proper definition?????? I have taken mine from Config.pm out of the perl installation, so I'm sure I'm using the same definition for bool that was used when perl itself was built. There is no answer as to which one is always correct. See your own Config.pm on your system. -t
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