🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #24343

INN perl filters under Linux

#24343
From: tom minchin
Date: Sat, 13 Dec 1997 00:00
48 lines
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

Technical Details
Message-ID: <66u00c$ffc$1@black.interact.net.au>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-comp.lang.perl.mbox.zip!not-for-mail

Show Full Headers
Complete Article Headers
Message-ID: <66u00c$ffc$1@black.interact.net.au>
Subject: INN perl filters under Linux
Date: Sat, 13 Dec 1997 00:00:00 +0000
From: tom@black.interact.net.au (tom minchin)
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-comp.lang.perl.mbox.zip!not-for-mail
X-Deja-AN: 297828154
Organization: InterACT Technology Group http://www.interact.net.au/
Newsgroups: news.software.nntp,comp.lang.perl