🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #24652

Re: Q: INN 1.5.1 & Perl compile problems ?

#24652
From: 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

Technical Details
Message-ID: <688elf$1mr4@unix1.cc.ysu.edu>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail
References: <686jpd$r8m$1@news.ecrc.de> <Pine.BSI.3.95.971228172854.29746A-100000@hermes.rockisland.com> <6872mb$p0r$1@news1.exit109.com>

Show Full Headers
Complete Article Headers
Message-ID: <688elf$1mr4@unix1.cc.ysu.edu>
Subject: Re: Q: INN 1.5.1 & Perl compile problems ?
Date: Mon, 29 Dec 1997 00:00:00 +0000
From: doug@cc.ysu.edu (Doug S)
References: <686jpd$r8m$1@news.ecrc.de> <Pine.BSI.3.95.971228172854.29746A-100000@hermes.rockisland.com> <6872mb$p0r$1@news1.exit109.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail
X-Deja-AN: 311036235
Organization: Youngstown State University
Newsgroups: news.software.nntp