🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #50994

Re: [NEWSX] finally working with INN 2.3.1 storage API !

#50994
From: Carlo Fusco
Date: Tue, 06 Mar 2001 01:10
122 lines
5410 bytes
Gorka Olaizola <gorka@hondarribia.penguinpowered.com> wrote:
> Hello,

> I'm installing inn2 +  newsx in my Debian Sid  and i found the  same
> problems that you.

We are talking about newsx and storage api since last year.  Initially
I thought it was necessary to write a patch to the code (far beyond my
reach),  but fortunately  this was  not the case,   in fact as  I said
before the  problem  is  to  tell  the  buggy scripts  where  to  find
libinn.a.

Now, either you do as I did and described before, with simlinks to the
place where   automake  expects to  find the   headers of  the storage
library (/usr/local/include) or you apply this patch [1][2]:

---------------------------------
diff -ur newsx-1.4/configure.in newsx-1.4-libinn/configure.in
--- newsx-1.4/configure.in      Sun Oct 22 15:34:50 2000
+++ newsx-1.4-libinn/configure.in       Sun Oct 22 15:36:03 2000
@@ -275,7 +275,10 @@

   dnl hmmm - this seems to be unused
   dnl good job since INN wants /lib on the end and cnews doesn't
-  NEWSLIB="$NEWSHOME/lib"
+
+  dnl But libstorage and libinn from inn2 are in /usr/lib/news
+  dnl not in /var/lib/news/lib
+  NEWSLIB="/usr/lib/news"

   NEWSCONFIG=/etc/news/innshellvars:/usr/lib/news/config
 fi
@@ -424,7 +427,8 @@
     dnl installed manually, we have to resort to a local copy.
     dnl BUG: Must really be fixed!
     dnl
-    AC_CHECK_HEADERS(storage.h)
+    dnl Modified for debian, storage.h is in /usr/include/inn
+    AC_CHECK_HEADERS(inn/storage.h)

     CFLAGS="$CFLAGS_save"
     LIBS="$LIBS_save"
diff -ur newsx-1.4/src/sim.h newsx-1.4-libinn/src/sim.h
--- newsx-1.4/src/sim.h Mon Apr  5 12:56:31 1999
+++ newsx-1.4-libinn/src/sim.h  Sun Oct 22 15:36:21 2000
@@ -16,7 +16,9 @@

 #if HAVE_LIBSTORAGE
 #if HAVE_STORAGE_H
-#    include <storage.h>
+/* changed from include <storage.h> for debian.
+ * storage.h is in /usr/include/inn    */
+#    include <inn/storage.h>
 #else
 #    include "../lib/storage.h"  /* this really is a last resort */
 #endif
---------------------------------

after that you will see during the configuration step this:

[..]
checking for HashMessageID in -linn... (cached) yes
checking for IsToken in -lstorage... (cached) yes
checking for storage.h... (cached) yes   <------------
creating ./config.status
[..]

Of course   now  there is an  other   problem: as  I   said before the
functions xmalloc and xrealloc in this way got declared twice and this
upset the compiler (and  consequently my nervous system). The solution
I   found [3] is  to  comment them out from   src/util.c and change in
test/Makefile the string "LIBS = -lnsl" with "LIBS = -lnsl -linn".

If  you   do  that  and  subsequently    you compile  using  make  and
make-install [4] you  could f/up to  this post a  reminder of how lame
[3] is this  solution :-) . Yet  it works,  as  this post has proven.

> I fixed the compilation errors but when I try to post my messages newsx
> complaints about an invalid request.

> newsx.real: can't find article "@05010000000A0000001A0000000000000000@":
> Invalid retrieve request

Believe me, when I saw  

post "@token@" OK 

(something like this) I was _really_ happy.

[cut]
> I'm using tradspool storage but I think I have tried with cnfs too

I tried, it works (yeah!!) with both.

> Does anyone know what is happening?

to summarize: first  you  need to link  the various  headers of libinn
(config.h" and "storage.h", I  think), second storage.a, and third fix
the double  declaration problem, finally  you compile and  enjoy again
the newsgroups.

NOTE

[1] stolen from:
    http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=75183&msg=\
    \2&repeatmerged=yes

[2] I tried and it works fine on my debian/woody

[3] In a German newsgroup with google. As I sad [4]: I'm a lamer.

[4] You can't use   the debian  script dpkg-buildpackage   because  it
    regenerate the original  test/Makefile, unless  of course you  are
    not a lamer as I am and you know how  to debug the script. In this
    case probably you should email the patch  to Adrian Bridgett so he
    can close the open bugs #75183 and #65851

-- 
ciao | Usare un email valida nei ng e` un grande beneficio per tutti.
cf   | Per proteggersi dallo spam servitevi di indirizzi usa e getta
-----+ oppure di servizi tipo http://www.sneakemail.com       
Technical Details
Message-ID: <981ddt$6a1$1@frodo.dyndns.org>
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!supernews.google.com!sn-xit-03!supernews.com!freenix!fr.usenet-edu.net!usenet-edu.net!fu-berlin.de!uni-berlin.de!frodo-udp288056uds.mgh.harvard.EDU!not-for-mail
References: <97n79g$8p8$1@frodo.dyndns.org> <slrn9a5at6.j3q.gorka@conan.hondarribia.penguinpowered.com>

Show Full Headers
Complete Article Headers
Message-ID: <981ddt$6a1$1@frodo.dyndns.org>
Subject: Re: [NEWSX] finally working with INN 2.3.1 storage API !
Date: Tue, 06 Mar 2001 01:10:21 +0000
From: messer_samvise@libero.it (Carlo Fusco)
References: <97n79g$8p8$1@frodo.dyndns.org> <slrn9a5at6.j3q.gorka@conan.hondarribia.penguinpowered.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!supernews.google.com!sn-xit-03!supernews.com!freenix!fr.usenet-edu.net!usenet-edu.net!fu-berlin.de!uni-berlin.de!frodo-udp288056uds.mgh.harvard.EDU!not-for-mail
Newsgroups: news.software.nntp
Organization: Don Chishotte Clan
Lines: 121
NNTP-Posting-Host: frodo-udp288056uds.mgh.harvard.edu (132.183.24.84)
X-Trace: fu-berlin.de 983841337 28853188 132.183.24.84 (16 [55735])
User-Agent: tin/1.4.4-20000803 ("Vet for the Insane") (UNIX) (Linux/2.2.18 (i586))