🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
7 messages
7 total messages Started by Carlo Fusco Fri, 02 Mar 2001 04:24
[NEWSX] finally working with INN 2.3.1 storage API !
#50921
Author: Carlo Fusco
Date: Fri, 02 Mar 2001 04:24
34 lines
2173 bytes
I still don't know how, but I made it ! 

Now, I think make and automake set of  script is buggy, while the code
apparently is just fine.

First  of  all the  configure  script is  not  able to find  the INN's
library  headers "config.h"  and  "storage.h" no  matter what option I
choose,  so  I created two symlinks   in  /usr/local/include dir of my
debian box   pointing    to   the corresponding files     located   in
/usr/include/inn/ . After that "./configure" recognize the files (if I
use  "--with-newslib=/usr/lib/news"    option pointing   to  the right
directory where storage.a is located) , but  during the next step, the
compiler quit with an error  because it finds  a double declaration of
"xmalloc"  and "xrealloc", so I commented  them out in src/util.c file
of  newsx  tree.    Because of  this,   it was    necessary  to modify
test/Makefile generated by "./configure", changing

LIBS = -lnsl 

with

LIBS = -lnsl -linn

Finally now "make" and "make install" work  fine (except few warnings)
and  the resulting binary can  post correctly from the token generated
by the storage manager.

I am not able to write a patch. Besides, I am sure there is a better
way to fix those bugs. I hope somebody would fix them soon.

-- 
ciao 
cf     
Re: [NEWSX] finally working with INN 2.3.1 storage API !
#50965
Author: Gorka Olaizola
Date: Sun, 04 Mar 2001 20:55
29 lines
1890 bytes
Hello,

I'm installing inn2 + newsx in my Debian Sid and i found the same problems 
that you.
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

Running "/usr/lib/news/bin/sm @05010000000A0000001A0000000000000000@" works
and I get the message in stdout so I think the storage manager is working
right.

I'm using tradspool storage but I think I have tried with cnfs too

Does anyone know what is happening?

Thanks

PD: If you want I can post my patch. It is for newsx 1.4-5 debian package

-- 
  musg0 @ irc                     http://personales.jet.es/olsago/
   (o_     _-(_)-  _-( )-   (o_    _-(_)-  _-(_)-  _-(_)-  _-(_)-
   //\   `(___)  `(___)     //\  `(___)  `(___)  `(___)  `(___)
   V_/    // \\   // \\     V_/   // \\   // \\   // \\   // \\
"Like penguins among sheeps we live." -=[Debian GNU/Linux Sid]=-
Re: [NEWSX] finally working with INN 2.3.1 storage API !
#50967
Author: Thierry Thomas
Date: Sun, 04 Mar 2001 21:11
15 lines
1753 bytes
On 4 Mar 2001 21:55:02 +0100, Gorka Olaizola
<gorka@hondarribia.penguinpowered.com> wrote:
> I'm installing inn2 + newsx in my Debian Sid and i found the same problems 
> that you.
> I fixed the compilation errors but when I try to post my messages newsx
> complaints about an invalid request.

I did about the same with an inn2.3 and FreeBSD (I have built a port),
and it was not easy... but after a lot of patches, it works. BTW, I'm
using CNFS, but it should not matter, everything pass through the
storage manager.
-- 
Th. Thomas,                           ICQ�: 8823153
Il y a s�rement des pays qui valent le coup. [MS]
Re: [NEWSX] finally working with INN 2.3.1 storage API !
#50994
Author: 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       
Re: [NEWSX] finally working with INN 2.3.1 storage API !
#50993
Author: Carlo Fusco
Date: Tue, 06 Mar 2001 01:13
20 lines
1758 bytes
Thierry Thomas <tthomas@mail.dotcom.fr> wrote:
> On 4 Mar 2001 21:55:02 +0100, Gorka Olaizola
> <gorka@hondarribia.penguinpowered.com> wrote:
>> I'm installing inn2 + newsx in my Debian Sid and i found the same problems 
>> that you.
>> I fixed the compilation errors but when I try to post my messages newsx
>> complaints about an invalid request.

> I did about the same with an inn2.3 and FreeBSD (I have built a port),
> and it was not easy... but after a lot of patches, it works. BTW, I'm
> using CNFS, but it should not matter, everything pass through the
> storage manager.

Nice, if you want you can post the patch to newsx ml since Egil has
fixed majordomo and now it is working.

-- 
ciao 
cf   
Re: [NEWSX] finally working with INN 2.3.1 storage API !
#51097
Author: Gorka Olaizola
Date: Fri, 09 Mar 2001 21:44
24 lines
2177 bytes
El d�a Tue, 6 Mar 2001 01:10:21 +0000 (UTC), Carlo Fusco <messer_samvise@libero.it> escribi�:
>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.
>
I've opened the bug #88795 in Debian and i have send my patch.
It's small but you don't have to symlink files or comment out sources. Just
apply it and compile the package.

-- 
  musg0 @ irc                     http://personales.jet.es/olsago/
   (o_     _-(_)-  _-( )-   (o_    _-(_)-  _-(_)-  _-(_)-  _-(_)-
   //\   `(___)  `(___)     //\  `(___)  `(___)  `(___)  `(___)
   V_/    // \\   // \\     V_/   // \\   // \\   // \\   // \\
"Like penguins among sheeps we live." -=[Debian GNU/Linux Sid]=-
Re: [NEWSX] finally working with INN 2.3.1 storage API !
#51108
Author: Carlo Fusco
Date: Sat, 10 Mar 2001 17:54
14 lines
1659 bytes
Gorka Olaizola <gorka@hondarribia.penguinpowered.com> wrote:
> El d�a Tue, 6 Mar 2001 01:10:21 +0000 (UTC), Carlo Fusco <messer_samvise@libero.it> escribi�:
[cut]
> I've opened the bug #88795 in Debian and i have send my patch.
> It's small but you don't have to symlink files or comment out sources. Just
> apply it and compile the package.

Thank you very much. I you don't mind I will send a message to newsx
ml with the link of your patch.

-- 
ciao
cf  
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