🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #89183

Re: What did / do you find difficult about running Usenet / NNTP / INN server?

#89183
From: Julien ÉLIE
Date: Thu, 27 Jan 2022 19:48
82 lines
4348 bytes
Hi Grant,

>> I moved to another server and tried to compile but was missing 
>> perl_alloc which I had to chase down and a few other bits. Knowing 
>> ahead of time what I need would save several iterations through 
>> ./configure
> 
> Compiling from source is another thing entirely.
> 
> I would expect that there is documentation about what dependencies there 
> are.
> 
> But IM(ns)HO the configure script /is/ the method for ensuring that 
> dependencies are met when compiling.

The configure script actually already ensures that.
As for the example of a failure to find perl_alloc, it is because the 
Perl library is not installed.
configure will fail the following way:

checking for Perl version 5.004_03 or later... /usr/bin/perl
checking for Perl module Encode... yes
checking for Perl module GD... yes
checking for Perl module MIME::Parser... yes
checking for flags to link with Perl... -Wl,-E  -fstack-protector-strong 
-L/usr/local/lib  -L/usr/lib/x86_64-linux-gnu/perl/5.32/CORE -lperl -ldl 
-lm -lpthread -lcrypt
checking EXTERN.h usability... yes
checking EXTERN.h presence... yes
checking for EXTERN.h... yes
configure: error: in `/home/news/work/inn/main':
configure: error: unable to link with Perl library


And indeed, the configure checks are:

  AC_CHECK_HEADER([EXTERN.h], [],
     [AC_MSG_FAILURE([unable to compile with EXTERN.h])])
  AC_CHECK_FUNC([perl_alloc], [],
     [AC_MSG_FAILURE([unable to link with Perl library])])


So, yes, it means that Perl library is missing.
It corresponds to the libperl-dev (deb) or perl-devel (rpm) packages.



> Admittedly it would be nice if the configure script could ~> would make 
> it through all the tests and then generate a report of what's preventing 
> the build.

Unfortunately, we stop configure with an error failure as soon as a 
mandatory check fails.  We do not have such a summary of all errors that 
would permit running configure only twice.

Well, it normally does not take long to run...


So, would the list of dependencies I suggested in a previous message in 
this thread be OK and correspond to what you had in mind Nigel?
I suggest to just print them at the beginning of the configure output. 
This way, they can easily be seen by everybody building INN.

% ./configure
configure: Building INN requires the following dependencies to be met.

Mandatory (deb): bison, flex, perl, default-mta (or any specific MTA) [...]
Optional (deb): libperl-dev (--with-perl), python3-dev (--with-python), 
libsqlite3-dev (--with-sqlite3) [...]

Mandatory (rpm): byacc, flex, perl, postfix (or any other MTA) [...]
Optional (rpm): perl-devel (--with-perl), python3-devel (--with-python), 
sqlite3-devel (--with-sqlite3) [...]

checking for gcc... gcc
checking whether the C compiler works... yes
[...]

-- 
Julien ÉLIE

« Bibere humanum est, ergo bibamus. »
Technical Details
Message-ID: <ssusuo$ift1$1@news.trigofacile.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!apf1.newsdeef.eu!not-for-mail
References: <srbfvb$ji$1@tncsrv09.home.tnetconsulting.net> <20220126011123.2d4bfd59@wibble.sysadmininc.com> <ssslf7$833$1@tncsrv09.home.tnetconsulting.net>

Show Full Headers
Complete Article Headers
Message-ID: <ssusuo$ift1$1@news.trigofacile.com>
Subject: Re: What did / do you find difficult about running Usenet / NNTP / INN server?
Date: Thu, 27 Jan 2022 20:48:40 +0100
From: Julien ÉLIE <iulius@nom-de-mon-site.com.invalid>
References: <srbfvb$ji$1@tncsrv09.home.tnetconsulting.net> <20220126011123.2d4bfd59@wibble.sysadmininc.com> <ssslf7$833$1@tncsrv09.home.tnetconsulting.net>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!apf1.newsdeef.eu!not-for-mail
Newsgroups: news.software.nntp
Organization: Groupes francophones par TrigoFACILE
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Thu, 27 Jan 2022 19:48:40 -0000 (UTC)
Injection-Info: news.trigofacile.com; posting-account="julien"; posting-host="176-143-2-105.abo.bbox.fr:176.143.2.105"; logging-data="606113"; mail-complaints-to="abuse@trigofacile.com"
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:91.0) Gecko/20100101 Thunderbird/91.5.0
Cancel-Lock: sha1:nz+eUQxyT+1RKGvFihmOROJrVrM= sha256:CPxorAtjrDlw7Sjd5kljpF/PlLmzzowNKhvMkAjYVuo= sha1:bvuBTNwDmWK2Evw6Wi/RndrXtD4= sha256:zgeZ7mIuu9pSzG+C7+6FOXF3qUXbgjh2NSBtpQZnlbs=
Content-Language: fr
In-Reply-To: <ssslf7$833$1@tncsrv09.home.tnetconsulting.net>