🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
11 messages
11 total messages Started by NOC Sun, 28 Dec 1997 00:00
Q: INN 1.5.1 & Perl compile problems ?
#24637
Author: NOC
Date: Sun, 28 Dec 1997 00:00
62 lines
2860 bytes
I have been given the task of getting INN & CleanFeed up and running on 2
machines:

Machine 1: SUN Ultra1/Solaris 2.5.1, 256MB RAM, 20GB Disk, INN 1.5.1
Machine 2: PC Linux 2.0.32, 128MB RAM, 20GB Disk, INN 1.7.2-insync-1.1d

Both machines have gcc-2.7.2 (correctly installed).

When I edit the config.data to compile with Perl 5.004_0[234] / 5.003 as so:

  ##  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	-L/usr/lib/perl5/i386-linux/5.00404/CORE -lperl -lm
  ##  Core directory (includes, libs). See perlembed(1)
  #### =()<PERL_INC       @<PERL_INC>@>()=
  PERL_INC	-I/usr/lib/perl5/i386-linux/5.00404/CORE

I get the same compile errors on both platforms:

  gcc -I../include  -O2 -m486 -fomit-frame-pointer -I/usr/lib/perl5/i386-linux/5.00404/CORE -c perl.c -o perl.o
  In file included from /usr/lib/perl5/i386-linux/5.00404/CORE/perl.h:1012,
                   from perl.c:30:
  /usr/lib/perl5/i386-linux/5.00404/CORE/cop.h:205: parse error before 'bool'
  /usr/lib/perl5/i386-linux/5.00404/CORE/cop.h:205: warning: no semicolon at end of struct or union
  /usr/lib/perl5/i386-linux/5.00404/CORE/cop.h:206: warning: data definition has no type or storage class
  /usr/lib/perl5/i386-linux/5.00404/CORE/cop.h:215: parse error before }'
  /usr/lib/perl5/i386-linux/5.00404/CORE/cop.h:256: field 'cx_subst' has incomplete type

The offending line around line 205 in cop.h is:

  struct subst {
    I32         sbu_iters;
    I32         sbu_maxiters;
    I32         sbu_safebase;
    I32         sbu_oldsave;
    bool        sbu_once;         <<<<<<<<<< line 205
    bool        sbu_rxtainted;
    char *      sbu_orig;
    SV *        sbu_dstr;
    SV *        sbu_targ;
    char *      sbu_s;
    char *      sbu_m;
    char *      sbu_strend;
    void *      sbu_rxres;
    REGEXP *    sbu_rx;
  };  

Looks like I32 is not defined right but its there in perl's handy.h file.

Anyone seen this problem and if so I sure would like to know a solution ?

Thanx 

John (shaking from all the coffee)


Re: Q: INN 1.5.1 & Perl compile problems ?
#24629
Author: brian moore
Date: Sun, 28 Dec 1997 00:00
42 lines
2491 bytes
In article <686jpd$r8m$1@news.ecrc.de>,
	NOC <noc@bricbrac.de> writes:
> I have been given the task of getting INN & CleanFeed up and running on 2
> machines:

Cool. :)  Cleanfeed is fun.... now I'm rmgrouping a pile of groups that
USED to have posts, but seem quite dead once the spam is dropped.

> When I edit the config.data to compile with Perl 5.004_0[234] / 5.003 as so:
> 
>   gcc -I../include  -O2 -m486 -fomit-frame-pointer -I/usr/lib/perl5/i386-linux/5.00404/CORE -c perl.c -o perl.o
>   In file included from /usr/lib/perl5/i386-linux/5.00404/CORE/perl.h:1012,
>                    from perl.c:30:
>   /usr/lib/perl5/i386-linux/5.00404/CORE/cop.h:205: parse error before 'bool'
>   /usr/lib/perl5/i386-linux/5.00404/CORE/cop.h:205: warning: no semicolon at end of struct or union
>   /usr/lib/perl5/i386-linux/5.00404/CORE/cop.h:206: warning: data definition has no type or storage class
>   /usr/lib/perl5/i386-linux/5.00404/CORE/cop.h:215: parse error before }'
>   /usr/lib/perl5/i386-linux/5.00404/CORE/cop.h:256: field 'cx_subst' has incomplete type

> The offending line around line 205 in cop.h is:
> 
>     bool        sbu_once;         <<<<<<<<<< line 205

> Looks like I32 is not defined right but its there in perl's handy.h file.

Actually, it's mad at not finding 'bool', though I don't know why it
can't.  (It's worked on my Slugaris 2.5 box fine, haven't tried Linux.)

Try this:
PERL_INC       -I/usr/lib/perl5/i386-linux/5.00404/CORE -Dbool=char

It's cheating, yes, but oh, well. :)

There seems to be some way for perl to be confused on install and leave
certain key items (like bool) out of things.

-- 
Brian Moore                      Kill A Spammer For Jesus
Sysadmin, C/Perl Hacker

Re: Q: INN 1.5.1 & Perl compile problems ?
#24630
Author: Michael Hall
Date: Sun, 28 Dec 1997 00:00
40 lines
2398 bytes

  Can't say much on the Solaris box but I just went through this recently
on my Linux/INN 1.7.2-insync-1.1d box. I notice in your post the section
of config.data doesn't contain some info from the config.dist supplied
with the INN (insync) distribution. It specifically mentions that this 
version of INN has Perl dynamic loading support and that if you've set
PERL_SUPPORT to DO you need to run 'perl -MExtUtils::Embed -e ldopts'
and put that output in the PERL_LIB section. Once I did that it compiled
fine, first time around it bombed since I just used my old config.data
without that info. Take a peek at the config.dist included with it and
look at it for the details, I believe after I read the README.insync it
also mentions somthing about it in there.

On 28 Dec 1997, NOC wrote:

> I have been given the task of getting INN & CleanFeed up and running on 2
> machines:
> 
> Machine 1: SUN Ultra1/Solaris 2.5.1, 256MB RAM, 20GB Disk, INN 1.5.1
> Machine 2: PC Linux 2.0.32, 128MB RAM, 20GB Disk, INN 1.7.2-insync-1.1d
> 
> Both machines have gcc-2.7.2 (correctly installed).
> 
> When I edit the config.data to compile with Perl 5.004_0[234] / 5.003 as so:
> 
>   ##  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	-L/usr/lib/perl5/i386-linux/5.00404/CORE -lperl -lm
>   ##  Core directory (includes, libs). See perlembed(1)
>   #### =()<PERL_INC       @<PERL_INC>@>()=
>   PERL_INC	-I/usr/lib/perl5/i386-linux/5.00404/CORE
> 


Re: Q: INN 1.5.1 & Perl compile problems ?
#24649
Author: Jeremy
Date: Mon, 29 Dec 1997 00:00
25 lines
1642 bytes
Michael Hall  <mhall@hermes.rockisland.com> wrote:

>   Can't say much on the Solaris box but I just went through this recently
> on my Linux/INN 1.7.2-insync-1.1d box. I notice in your post the section
> of config.data doesn't contain some info from the config.dist supplied
> with the INN (insync) distribution. It specifically mentions that this 
> version of INN has Perl dynamic loading support and that if you've set
> PERL_SUPPORT to DO you need to run 'perl -MExtUtils::Embed -e ldopts'
> and put that output in the PERL_LIB section.

I'm also told you can put that command in backquotes as PERL_LIB.

And it's worth noting that this *requires* Perl 5.004.  I'm not sure if
it will compile linked with 5.003 or earlier, but it won't work, even
if you aren't using the dynamic loading.

It also probably won't work on AIX.  I don't know why, but that's what
we're seeing.

-- 
Jeremy  |  jeremy@exit109.com
"Okay, at this point you're abusing sarcasm."  --Buffy

Re: Q: INN 1.5.1 & Perl compile problems ?
#24652
Author: Doug S
Date: Mon, 29 Dec 1997 00:00
89 lines
3393 bytes
Thus spake Jeremy  <jeremy@exit109.com>:
>Michael Hall  <mhall@hermes.rockisland.com> wrote:
>
>>   Can't say much on the Solaris box but I just went through this recently
>> on my Linux/INN 1.7.2-insync-1.1d box. I notice in your post the section
>> of config.data doesn't contain some info from the config.dist supplied
>> with the INN (insync) distribution. It specifically mentions that this 
>> version of INN has Perl dynamic loading support and that if you've set
>> PERL_SUPPORT to DO you need to run 'perl -MExtUtils::Embed -e ldopts'
>> and put that output in the PERL_LIB section.
>
>
>And it's worth noting that this *requires* Perl 5.004.  I'm not sure if
>it will compile linked with 5.003 or earlier, but it won't work, even
>if you aren't using the dynamic loading.

I just installed INN 1.7.2+insync 1.1d with perl 5.003 and had to back
out the updates to $INNSRC/lib/perl.c to make it work.

If you downloaded the pre-patched INN distribution, use the patch below
to back out the changes to lib/perl.c - if you applied the insync
patches to a stock INN 1.7.2 then you should be able to rename
lib/perl.c.orig to get it back.

After that, I simply made sure the md5 code in filter_innd.pl was not
being used. No problems with it at all.

You ask "why didn't you just upgrade perl ?" - I tried, 5.004.04 built
OK but didn't want to run all of the test jobs completely (Solaris
2.4). I decided I could mess with it another time.


*** perl.c.orig	Wed Dec 17 10:58:34 1997
--- perl.c	Mon Dec 29 10:04:13 1997
***************
*** 31,39 ****
  
  #include "macros.h"
  
- extern void xs_init    _((void));
- extern void boot_DynaLoader _((CV* cv));
- 
  int	PerlFilterActive = FALSE;
  
  static PerlInterpreter	*PerlCode;
--- 31,36 ----
***************
*** 92,98 ****
      /* We can't call 'eval' and 'do' directly for some reason, so we define
         some wrapper functions to give us access. */
          
!     perl_parse (PerlCode,xs_init,5,argv,NULL) ;
  }
  
  
--- 89,95 ----
      /* We can't call 'eval' and 'do' directly for some reason, so we define
         some wrapper functions to give us access. */
          
!     perl_parse (PerlCode,NULL,5,argv,NULL) ;
  }
  
  
***************
*** 223,237 ****
     perl_free(PerlCode);
     PerlFilterActive = FALSE;
  }
- 
- extern void xs_init()
- {
-     char * file = __FILE__;
-     dXSUB_SYS;
- 
-     newXS("DynaLoader::boot_DynaLoader", boot_DynaLoader, file);
- }
- 
  
  #endif /* defined(DO_PERL) */
  
--- 220,225 ----
-- 
Doug S. (doug@cc.ysu.edu) (http://cc.ysu.edu/~doug/)

If you get hung up on what you did wrong, you're never gonna get anywhere.
        -- Kenneth Copeland

Re: Q: INN 1.5.1 & Perl compile problems ?
#24663
Author: Timothy Miller
Date: Mon, 29 Dec 1997 00:00
15 lines
961 bytes
Jeremy <jeremy@exit109.com> writes:

> It also probably won't work on AIX.  I don't know why, but that's what
> we're seeing.

	Only 'cause I can't get the damn interpreter to test clean with
dynamic loading enabled.

	I *will* solve this (for AIX 4.1.5, at least).

-- 
Cerebus <tmill06@ibm.net>

Re: Q: INN 1.5.1 & Perl compile problems ?
#24668
Author: Andrew
Date: Mon, 29 Dec 1997 00:00
20 lines
1524 bytes
Michael Hall <mhall@hermes.rockisland.com> wrote:
> without that info. Take a peek at the config.dist included with it and
> look at it for the details, I believe after I read the README.insync it
> also mentions somthing about it in there.

How silly of me to think people would actually read the README.  :-)

I'd be willing to bet that's the problem he's seeing.  Since the new version
of the Insync patches have shared library support for Perl (pretty much
exclusively for using with jeremy@exit109.com's Clean Feed), trying to
compile it without the correct libraries for Perl's DynaLoader, is a Bad
Idea.

-- 
Andrew O. Smith - <aos@insync.net> | "How like a turtle the sun looks."
Sysadmin, Insync Internet Services |    -- South Park's non-offensive non-
Houston, Texas, USA                |       denominational Christmas play

Re: Q: INN 1.5.1 & Perl compile problems ?
#24678
Author: Charles R. Dennett
Date: Tue, 30 Dec 1997 00:00
49 lines
2460 bytes
This is somewhat of a related note, so I won't start a new thread.

I have INN 1.7.2 on a Slowaris 2.4 box.  The README file for the
perl hooks says 5.003 is required but it was unknown in 5.002
would work.  All I have is 5.002 so I thought I'd give it a shot
to see what would happen.  

I edited the config.data file and tried a make all.  Got this:

gcc -I../include -DSUNOS5 -USO_SNDBUF -O
-I/packages/perl5/lib/sun4-sunos/5.002/
CORE   -c perl.c -o perl.o
In file included from
/packages/solgnu/lib/gcc-lib/sparc-sun-solaris2.4/2.6.3/in
clude/math.h:206,
                 from
/packages/perl5/lib/sun4-sunos/5.002/CORE/perl.h:780,
                 from perl.c:29:
/packages/solgnu/lib/gcc-lib/sparc-sun-solaris2.4/2.6.3/include/floatingpoint.h:
177: conflicting types for `atof'
/packages/perl5/lib/sun4-sunos/5.002/CORE/perl.h:767: previous
declaration of `a
tof'
/packages/solgnu/lib/gcc-lib/sparc-sun-solaris2.4/2.6.3/include/floatingpoint.h:
178: conflicting types for `strtod'
/packages/solgnu/lib/gcc-lib/sparc-sun-solaris2.4/2.6.3/include/stdlib.h:79:
pre
vious declaration of `strtod'
make[1]: *** [perl.o] Error 1
make[1]: Leaving directory
`/export/packages/c1t0s5/news/local/src/inn-1.7.2/lib
'
make: *** [all] Error 1

Is this related to the perl 5.002 version or something else?  If
something
else, any idea what I can do to fix it?  I'm only the news admin, not
the sys admin, so I'm sort of stuck with what I have right now.  I could
go
get the latest and greatest perl and install it where I have access
but I'd like to use what's available on the system first if possible if
it is a perl version problem.

Thanks,
Charlie Dennett
dennett@kodak.com

Re: Q: INN 1.5.1 & Perl compile problems ?
#24868
Author: Ollivier Robert
Date: Mon, 05 Jan 1998 00:00
30 lines
1700 bytes
    [courtesy cc of this posting sent to cited author via email]

In article <34A9ADEB.1188@kodak.com>,
Charles R. Dennett <dennett@kodak.com> wrote:
> I have INN 1.7.2 on a Slowaris 2.4 box.  The README file for the
> perl hooks says 5.003 is required but it was unknown in 5.002
> would work.  All I have is 5.002 so I thought I'd give it a shot
> to see what would happen.  

Forget 5.002.
Forget 5.003.

Take 5.004_04, it is much better, has many bug fixes and works like a charm 
with INN 1.7.2+insync-1.1d.

> /packages/solgnu/lib/gcc-lib/sparc-sun-solaris2.4/2.6.3/in

You can upgrade your gcc up to 2.7.2.3 or even egcs[1] to get even better.

> but I'd like to use what's available on the system first if possible if
> it is a perl version problem.

I haven't compiled 5.002 on Solaris but I know many people use 5.004 and
later without problems.
-- 
Ollivier ROBERT  -=- FreeBSD: The Power to Serve! -=-  roberto@freebsd.org
Usenet Canal Historique

Re: Q: INN 1.5.1 & Perl compile problems ?
#24898
Author: Ollivier Robert
Date: Mon, 05 Jan 1998 00:00
13 lines
1073 bytes
    [courtesy cc of this posting sent to cited author via email]

In article <686jpd$r8m$1@news.ecrc.de>, NOC  <noc@bricbrac.de> wrote:
> Looks like I32 is not defined right but its there in perl's handy.h file.

If I remember well, it is becoming a FAQ. You have to add a -Dbool=int to
your CFLAGS.
-- 
Ollivier ROBERT  -=- FreeBSD: The Power to Serve! -=-  roberto@freebsd.org
Usenet Canal Historique

Re: Q: INN 1.5.1 & Perl compile problems ?
#25171
Author: john
Date: Tue, 13 Jan 1998 00:00
18 lines
1337 bytes
Jeremy wrote:

> It also probably won't work on AIX.  I don't know why, but that's what
> we're seeing.

Just cleaning up a loose end I've spotted....
it appears to work on AIX 4.2.1 *IF* perl and inn were
compiled with IBM C/Set++ 3.1.4  other versions of AIX
and C/Set++ may or may not work, and I've yet to see it
work with either perl or inn compiled with gcc.

-- 
        John Payne          | VM:    JOHN at RTP                     
  IBM Global Services NS    | email: john@raleigh.ibm.com            
  OpenNet Services (EMEA)   | Intranet http://w3.irc.ibm.com/jpayne

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