🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
18 messages
18 total messages Started by Tuc Sat, 06 Dec 2003 20:27
Perl Interface to INN Storage Manager
#67314
Author: Tuc
Date: Sat, 06 Dec 2003 20:27
9 lines
1480 bytes
Hi,

      Besides INN::SM which seems to be not supported, are there any
other perl interfaces to the INN Storage Manager? I can't fathom
having to run SM for every article that comes in to process it how I
want. I guess I could read "doc/hook-perl" and process it as it comes
in before it gets written. Is that my only alternative?

Thanks, Tuc/TTSG Internet Services, Inc.
Re: Perl Interface to INN Storage Manager
#67315
Author: Russ Allbery
Date: Sat, 06 Dec 2003 20:28
16 lines
1871 bytes
Tuc <google@ttsg.com> writes:

>       Besides INN::SM which seems to be not supported, are there any
> other perl interfaces to the INN Storage Manager? I can't fathom
> having to run SM for every article that comes in to process it how I
> want. I guess I could read "doc/hook-perl" and process it as it comes
> in before it gets written. Is that my only alternative?

Right now, yeah, although I expect INN::SM would probably work with a bit
of tweaking.

-- 
Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>

          Please post questions rather than mailing me directly.
     <http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Re: Perl Interface to INN Storage Manager
#67316
Author: Tuc
Date: Sun, 07 Dec 2003 17:49
22 lines
2211 bytes
Russ Allbery <rra@stanford.edu> wrote in message news:<87wu991yjw.fsf@windlord.stanford.edu>...
> Tuc <google@ttsg.com> writes:
> 
> >       Besides INN::SM which seems to be not supported, are there any
> > other perl interfaces to the INN Storage Manager? I can't fathom
> > having to run SM for every article that comes in to process it how I
> > want. I guess I could read "doc/hook-perl" and process it as it comes
> > in before it gets written. Is that my only alternative?
> 
> Right now, yeah, although I expect INN::SM would probably work with a bit
> of tweaking.
>
     In desperation I'm doing the pipe to SM like some of the INN
programs do, and it really isn't HORRIBLE... But I'd like to do it
better.

     I'm not a good tweaker of programs. I worked at it for a few
hours and finally got too stuck to continue.  Is there someone out
there that might be able to do the tweaking? It would be nicer to have
a faster/cleaner interface.

Thanks, Tuc/TTSG Internet Services, Inc.
Re: Perl Interface to INN Storage Manager
#67318
Author: Jeffrey M. Vinocur
Date: Sun, 07 Dec 2003 23:26
115 lines
4218 bytes
[ CC'd to suto@merry.xmath.ous.ac.jp from news.software.nntp ]

In article <b0a6af8e.0312070949.3c7875a6@posting.google.com>,
Tuc <google@ttsg.com> wrote:
>Russ Allbery <rra@stanford.edu> wrote in message
>news:<87wu991yjw.fsf@windlord.stanford.edu>...
>> 
>> although I expect INN::SM would probably work with a bit of tweaking.
>>
>     I'm not a good tweaker of programs. I worked at it for a few
>hours and finally got too stuck to continue.  Is there someone out
>there that might be able to do the tweaking?

Well, this patch gets it to compile against 2.4 -- I haven't had
a chance to test if it actually works, though.

Also, I think it still compiles against 2.3, but I don't have a
2.2 install around to test against so I may have broken
something.  (Should be pretty obvious to add more #if testing
where needed, though.)



diff -ur orig/SM.xs updated/SM.xs
--- orig/SM.xs	Thu May  3 11:17:53 2001
+++ updated/SM.xs	Sun Dec  7 18:14:59 2003
@@ -8,14 +8,26 @@
 #include "config.h"
 #include "clibrary.h"
 #include "libinn.h"
-#include "macros.h"
 #include "paths.h"
+#include "storage.h"
+#if INN_VERSION < 20400
+#include "macros.h"
 #include "qio.h"
+#else
+#include "inn/innconf.h"
+#include "inn/qio.h"
+#endif
 
 #ifdef __cplusplus
 }
 #endif
 
+#if INN_VERSION >= 20400
+#define BOOL bool
+#define TRUE true
+#define FALSE false
+#endif
+
 void
 set_char_var(char *name, char *value)
 {
@@ -72,7 +84,9 @@
   SET_INT_VAR(refusecybercancels);
   SET_INT_VAR(remembertrash);
   SET_CHAR_VAR(sourceaddress);
+#if INN_VERSION < 20400
   SET_INT_VAR(usecontrolchan);
+#endif
   SET_INT_VAR(verifycancels);
   SET_INT_VAR(wanttrash);
 #if INN_VERSION >= 20300
@@ -104,10 +118,12 @@
   SET_INT_VAR(articlemmap);
   SET_INT_VAR(clienttimeout);
   SET_INT_VAR(nnrpdcheckart);
+#if INN_VERSION < 20400
   SET_INT_VAR(nnrpperlauth);
 #if INN_VERSION >= 20300
   SET_INT_VAR(nnrppythonauth);
 #endif
+#endif
   SET_INT_VAR(noreader);
   SET_INT_VAR(readerswhenstopped);
   SET_INT_VAR(readertrack);
@@ -140,12 +156,22 @@
   SET_INT_VAR(strippostcc);
 
   /* Posting -- Exponential Backoff */
+#if INN_VERSION < 20400
   SET_INT_VAR(backoff_auth);
   SET_CHAR_VAR(backoff_db);
   SET_INT_VAR(backoff_k);
   SET_INT_VAR(backoff_postfast);
   SET_INT_VAR(backoff_postslow);
   SET_INT_VAR(backoff_trigger);
+#else
+  SET_INT_VAR(backoffauth);
+  SET_CHAR_VAR(backoffdb);
+  SET_INT_VAR(backoffk);
+  SET_INT_VAR(backoffpostfast);
+  SET_INT_VAR(backoffpostslow);
+  SET_INT_VAR(backofftrigger);
+#endif
+
 
   /* Logging */
   SET_INT_VAR(logartsize);
@@ -295,7 +321,7 @@
   RETVAL = 0;
 
   for (i = 0 ; i < items ; ++i) {
-    text = (char *)SvPV(ST(i), na);
+    text = (char *)SvPV(ST(i), PL_na);
 
     if (IsToken(text))
       if (SMcancel(TextToToken(text)))



-- 
Jeffrey M. Vinocur
jeff@litech.org
Re: Perl Interface to INN Storage Manager
#67317
Author: Kiyokazu SUTO
Date: Mon, 08 Dec 2003 11:22
21 lines
2282 bytes
Citation (with leading "> " of each line) from article:
  <E1AT8Ia-0003o2-00@puck.litech.org>
    by "Jeffrey M. Vinocur" <jeff@puck.litech.org> :
> Well, this patch gets it to compile against 2.4 -- I haven't had
> a chance to test if it actually works, though.
>
> Also, I think it still compiles against 2.3, but I don't have a
> 2.2 install around to test against so I may have broken
> something.  (Should be pretty obvious to add more #if testing
> where needed, though.)

Thanks.  I applied the patch, and confirmed that it compiles and works
against inn-2.3.2.  The tarball

  http://pub.ks-and-ks.ne.jp/prog/pub/perl/inn-sm-perl.tar.gz

is now updated.

-- 
SUTO, Kiyokazu <suto@ks-and-ks.ne.jp>
http://pub.ks-and-ks.ne.jp/pgp-public-key.html
Re: Perl Interface to INN Storage Manager
#67324
Author: Tuc
Date: Mon, 08 Dec 2003 16:20
89 lines
4550 bytes
jeff@litech.org (Jeffrey M. Vinocur) wrote in message news:<br0cvp$d3t$1@puck.litech.org>...
> [ CC'd to suto@merry.xmath.ous.ac.jp from news.software.nntp ]
>
> Well, this patch gets it to compile against 2.4 -- I haven't had
> a chance to test if it actually works, though.
> 
> Also, I think it still compiles against 2.3, but I don't have a
> 2.2 install around to test against so I may have broken
> something.  (Should be pretty obvious to add more #if testing
> where needed, though.)
> 
Applied the patch, and now get :

cc -c       -DVERSION=\"0.11\" -DXS_VERSION=\"0.11\" -DPIC -fpic
-I/usr/libdata/perl/5.00503/mach/CORE -g -O2 -I/include  
-DINN_VERSION=20401 SM.c
SM.xs:9: clibrary.h: No such file or directory
SM.xs:10: libinn.h: No such file or directory
SM.xs:12: storage.h: No such file or directory
SM.xs:17: inn/innconf.h: No such file or directory
SM.xs:18: inn/qio.h: No such file or directory
SM.xs:27: warning: `TRUE' redefined
/usr/libdata/perl/5.00503/mach/CORE/handy.h:32: warning: this is the
location of the previous definition
SM.xs:28: warning: `FALSE' redefined
/usr/libdata/perl/5.00503/mach/CORE/handy.h:33: warning: this is the
location of the previous definition
gmake: *** [SM.o] Error 1

I got that type of problem before, I don't know why it isn't picking
up my libs.

So I change in Makefile :

DEFINE = -g -O2 -I/include   -DINN_VERSION=20401

to

DEFINE = -g -O2 -I/usr/local/src/INNSNAPSHOT/include -I
/usr/local/src/SNAPSHOT/include/inn   -DINN_VERSION=20401

So now I get :

cc -c       -DVERSION=\"0.11\" -DXS_VERSION=\"0.11\" -DPIC -fpic
-I/usr/libdata/
perl/5.00503/mach/CORE -g -O2
-I/usr/local/src/inn-STABLE-20031206/include -I/us
r/local/src/inn-STABLE-20031206/include/inn   -DINN_VERSION=20401 SM.c
In file included from
/usr/local/src/inn-STABLE-20031206/include/inn/defines.h:5
0,
                 from
/usr/local/src/inn-STABLE-20031206/include/config.h:20,
                 from
/usr/local/src/inn-STABLE-20031206/include/clibrary.h:25,
                 from SM.xs:9:
/usr/include/stdbool.h:39: warning: `bool' redefined
/usr/libdata/perl/5.00503/mach/CORE/handy.h:71: warning: this is the
location of
 the previous definition
SM.xs:27: warning: `TRUE' redefined
/usr/libdata/perl/5.00503/mach/CORE/handy.h:32: warning: this is the
location of
 the previous definition
SM.xs:28: warning: `FALSE' redefined
/usr/libdata/perl/5.00503/mach/CORE/handy.h:33: warning: this is the
location of
 the previous definition
SM.xs: In function `XS_INN__SM_read_article':
SM.xs:377: warning: passing arg 1 of `Perl_newSVpv' discards
qualifiers from poi
nter target type
Running Mkbootstrap for INN::SM ()
chmod 644 SM.bs
cc -o blib/arch/auto/INN/SM/SM.so  -Wl,-E -shared -lperl -lm  SM.o 
/usr/local/s
rc/inn-STABLE-20031206/storage/libstorage.la
/usr/local/src/inn-STABLE-20031206/
lib/libinn.la     
/usr/local/src/inn-STABLE-20031206/storage/libstorage.la: file not
recognized: F
ile format not recognized
gmake: *** [blib/arch/auto/INN/SM/SM.so] Error 1

At this point, I'm stuck!

This is FreeBSD 4.9 using the stock installed PERL.

Thanks, Tuc/TTSG Internet Services, Inc.
Re: Perl Interface to INN Storage Manager
#67327
Author: Kiyokazu SUTO
Date: Tue, 09 Dec 2003 01:23
56 lines
3013 bytes
--Multipart_Tue_Dec__9_10:23:21_2003-1
Content-Type: text/plain; charset=US-ASCII

Citation (with leading "> " of each line) from article:
  <b0a6af8e.0312080820.482ec033@posting.google.com>
    by google@ttsg.com (Tuc) :
> DEFINE = -g -O2 -I/include   -DINN_VERSION=20401

Ah, I realized the problem (make variable ``top'' is not defined when
making Makefile with mkmk.sh).  Please apply the attached patch (after
the patch in <E1AT8Ia-0003o2-00@puck.litech.org> applied), and
re-build Makefile.

-- 
SUTO, Kiyokazu <suto@ks-and-ks.ne.jp>
http://pub.ks-and-ks.ne.jp/pgp-public-key.html


--Multipart_Tue_Dec__9_10:23:21_2003-1
Content-Type: text/plain; charset=US-ASCII

--- mkmk.sh-old	Thu May  3 21:57:58 2001
+++ mkmk.sh	Tue Dec  9 09:25:29 2003
@@ -21,6 +21,7 @@
 fi
 
 cat <<EOF | $make -f -
+top=$inndir
 include $mkg
 
 `for d in "$@"; do echo "$d"; done`
--- SM.xs-old	Mon Dec  8 19:38:24 2003
+++ SM.xs	Tue Dec  9 09:40:45 2003
@@ -23,8 +23,11 @@
 #endif
 
 #if INN_VERSION >= 20400
+#undef BOOL
 #define BOOL bool
+#undef TRUE
 #define TRUE true
+#undef FALSE
 #define FALSE false
 #endif
 
@@ -374,7 +377,7 @@
       }
       else
 #endif
-      PUSHs(sv_2mortal(newSVpv(art->data, art->len)));
+      PUSHs(sv_2mortal(newSVpv((char *)art->data, art->len)));
       SMfreearticle(art);
     }
     else

--Multipart_Tue_Dec__9_10:23:21_2003-1--
Re: Perl Interface to INN Storage Manager
#67329
Author: Tuc
Date: Tue, 09 Dec 2003 07:08
78 lines
3943 bytes
Kiyokazu SUTO <suto@ks-and-ks.ne.jp> wrote in message news:<20031209-102321-01fdb.suto@ks-and-ks.ne.jp>...
> --- mkmk.sh-old	Thu May  3 21:57:58 2001
> +++ mkmk.sh	Tue Dec  9 09:25:29 2003
> @@ -21,6 +21,7 @@
>  fi
>  
>  cat <<EOF | $make -f -
> +top=$inndir
>  include $mkg
>  
>  `for d in "$@"; do echo "$d"; done`
> --- SM.xs-old	Mon Dec  8 19:38:24 2003
> +++ SM.xs	Tue Dec  9 09:40:45 2003
> @@ -23,8 +23,11 @@
>  #endif
>  
>  #if INN_VERSION >= 20400
> +#undef BOOL
>  #define BOOL bool
> +#undef TRUE
>  #define TRUE true
> +#undef FALSE
>  #define FALSE false
>  #endif
>  
> @@ -374,7 +377,7 @@
>        }
>        else
>  #endif
> -      PUSHs(sv_2mortal(newSVpv(art->data, art->len)));
> +      PUSHs(sv_2mortal(newSVpv((char *)art->data, art->len)));
>        SMfreearticle(art);
>      }
>      else
> 
> --

Closer and closer!

hermod# make
mkdir ./blib
mkdir ./blib/lib
mkdir ./blib/lib/INN
cp SM.pm ./blib/lib/INN/SM.pm
AutoSplitting ./blib/lib/INN/SM.pm (./blib/lib/auto/INN/SM)
/usr/bin/perl -I/usr/libdata/perl/5.00503/mach -I/usr/libdata/perl/5.00503 /usr/
libdata/perl/5.00503/ExtUtils/xsubpp  -typemap /usr/libdata/perl/5.00503/ExtUtil
s/typemap SM.xs >xstmp.c && mv xstmp.c SM.c
cc -c        -DVERSION=\"0.11\"  -DXS_VERSION=\"0.11\" -DPIC -fpic -I/usr/libdat
a/perl/5.00503/mach/CORE -g -O2 -I/usr/local/src/inn-STABLE-20031206/include   -
DINN_VERSION=20401 SM.c
In file included from /usr/local/src/inn-STABLE-20031206/include/inn/defines.h:5
0,
                 from /usr/local/src/inn-STABLE-20031206/include/config.h:20,
                 from /usr/local/src/inn-STABLE-20031206/include/clibrary.h:25,
                 from SM.xs:9:
/usr/include/stdbool.h:39: warning: `bool' redefined
/usr/libdata/perl/5.00503/mach/CORE/handy.h:71: warning: this is the location of
 the previous definition
mkdir blib/arch
mkdir blib/arch/auto
mkdir blib/arch/auto/INN
mkdir blib/arch/auto/INN/SM
Running Mkbootstrap for INN::SM ()
chmod 644 SM.bs
cc -o blib/arch/auto/INN/SM/SM.so  -Wl,-E -shared -lperl -lm SM.o  /usr/local/sr
c/inn-STABLE-20031206/storage/libstorage.la /usr/local/src/inn-STABLE-20031206/l
ib/libinn.la     
/usr/local/src/inn-STABLE-20031206/storage/libstorage.la: file not recognized: F
ile format not recognized
*** Error code 1

Stop in /usr/local/src/inn-sm.

I think we lick this, we might have something usable here!


Thanks, Tuc/TTSG Internet Services, Inc.
Re: Perl Interface to INN Storage Manager
#67331
Author: Russ Allbery
Date: Tue, 09 Dec 2003 07:44
16 lines
2367 bytes
Tuc <google@ttsg.com> writes:

> cc -o blib/arch/auto/INN/SM/SM.so  -Wl,-E -shared -lperl -lm SM.o  /usr/local/src/inn-STABLE-20031206/storage/libstorage.la /usr/local/src/inn-STABLE-20031206/lib/libinn.la     
> /usr/local/src/inn-STABLE-20031206/storage/libstorage.la: file not recognized: File format not recognized

This is caused by the libtool library (the .la file) being passed in on
the link line.  If you built INN without libtool, it would probably be
fine.  I don't know how to get Perl to always do the right thing here
without putting more work into the problem than I currently have time to
give it, but you can work around the problem by replacing .la with .a.

-- 
Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>

          Please post questions rather than mailing me directly.
     <http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Re: Perl Interface to INN Storage Manager
#67330
Author: Kiyokazu SUTO
Date: Tue, 09 Dec 2003 11:56
23 lines
2700 bytes
Citation (with leading "> " of each line) from article:
  <87r7zev3ir.fsf@windlord.stanford.edu>
    by Russ Allbery <rra@stanford.edu> :
> Tuc <google@ttsg.com> writes:
>
> > cc -o blib/arch/auto/INN/SM/SM.so  -Wl,-E -shared -lperl -lm SM.o  /usr/local/src/inn-STABLE-20031206/storage/libstorage.la /usr/local/src/inn-STABLE-20031206/lib/libinn.la     
> > /usr/local/src/inn-STABLE-20031206/storage/libstorage.la: file not recognized: File format not recognized
>
> This is caused by the libtool library (the .la file) being passed in on
> the link line.  If you built INN without libtool, it would probably be
> fine.  I don't know how to get Perl to always do the right thing here
> without putting more work into the problem than I currently have time to
> give it, but you can work around the problem by replacing .la with .a.

I see.

  sh mkmk.sh EXTLIB=a

will make correct Makefile.

-- 
SUTO, Kiyokazu <suto@ks-and-ks.ne.jp>
http://pub.ks-and-ks.ne.jp/pgp-public-key.html
Re: Perl Interface to INN Storage Manager
#67338
Author: Tuc
Date: Tue, 09 Dec 2003 15:49
61 lines
3306 bytes
Kiyokazu SUTO <suto@ks-and-ks.ne.jp> wrote in message news:<20031209-205607-01fdc.suto@ks-and-ks.ne.jp>...
> 
> I see.
> 
>   sh mkmk.sh EXTLIB=a
> 
> will make correct Makefile.
>
Which gave me :

cc -o blib/arch/auto/INN/SM/SM.so  -Wl,-E -shared -lperl -lm SM.o 
/usr/local/src/inn-STABLE-20031206/storage/libstorage.a
/usr/local/src/inn-STABLE-20031206/lib/libinn.a
cc: /usr/local/src/inn-STABLE-20031206/storage/libstorage.a: No such
file or directory
cc: /usr/local/src/inn-STABLE-20031206/lib/libinn.a: No such file or
directory
*** Error code 1


Seems after install, the libraries aren't there, so I cheated and
changed the Makefile from :

LDFROM = $(OBJECT)  /usr/local/src/inn-STABLE-20031206/storage/libstorage.a
/usr
/local/src/inn-STABLE-20031206/lib/libinn.a

to

LDFROM = $(OBJECT)  /usr/local/news/lib/libstorage.a
/usr/local/news/lib/libinn.
a


I know there were other references, but I don't think they mattered...
So.

IT COMPILES! But during a make test :

hermod# make test
PERL_DL_NONLAZY=1 /usr/bin/perl -Iblib/arch -I./blib/lib
-I/usr/libdata/perl/5.00503/mach -I/usr/libdata/perl/5.00503 test.pl
1..1
Can't load 'blib/arch/auto/INN/SM/SM.so' for module INN::SM:
blib/arch/auto/INN/SM/SM.so: Undefined symbol "ReadInnConf" at
/usr/libdata/perl/5.00503/DynaLoader.pm line 169.

 at test.pl line 11
BEGIN failed--compilation aborted at test.pl line 11.
not ok 1
*** Error code 255

Stop in /usr/local/src/inn-sm.

Ok, got me on this one. A grep of ReadInnConf finds a reference to it
in
backends/crosspost.c, and 2 mentions that it failed in
storage/interface.c and storage/cfs/cnfs.c, but nothing that looks
like it ever defines it!

Thanks, Tuc/TTSG Internet Services, Inc.
Re: Perl Interface to INN Storage Manager
#67342
Author: Kiyokazu SUTO
Date: Wed, 10 Dec 2003 01:44
115 lines
4823 bytes
--Multipart_Wed_Dec_10_10:44:41_2003-1
Content-Type: text/plain; charset=US-ASCII

Citation (with leading "> " of each line) from article:
  <b0a6af8e.0312090749.2d053572@posting.google.com>
    by google@ttsg.com (Tuc) :
> Seems after install, the libraries aren't there, so I cheated and
..snip..
> Ok, got me on this one. A grep of ReadInnConf finds a reference to it
> in
> backends/crosspost.c, and 2 mentions that it failed in
> storage/interface.c and storage/cfs/cnfs.c, but nothing that looks
> like it ever defines it!

Can you try the attached patch? (I hope this is the last try.)

-- 
SUTO, Kiyokazu <suto@ks-and-ks.ne.jp>
http://pub.ks-and-ks.ne.jp/pgp-public-key.html


--Multipart_Wed_Dec_10_10:44:41_2003-1
Content-Type: text/plain; charset=US-ASCII

--- /tmp/inn-sm-perl/SM.xs	Tue Dec  9 09:40:45 2003
+++ SM.xs	Wed Dec 10 08:58:54 2003
@@ -61,7 +61,13 @@
 {
   set_int_var("inn::inn_version", inn_version[0] * 10000 + inn_version[1] * 100 + inn_version[2]);
 
-  if (ReadInnConf() < 0)
+  if (
+#if INN_VERSION < 20400
+      ReadInnConf() < 0
+#else
+      !innconf_read(NULL)
+#endif
+      )
     croak("Can't read \"inn.conf\"\n");
 
   /* General Settings */
--- /tmp/inn-sm-perl/mkmk.sh	Tue Dec  9 09:25:29 2003
+++ mkmk.sh	Wed Dec 10 10:17:16 2003
@@ -20,10 +20,60 @@
  inndir="`dirname "$mkg"`"
 fi
 
+debug() {
+ cat
+}
+
 cat <<EOF | $make -f -
-top=$inndir
+top = $inndir
+
 include $mkg
 
+EXTLIB = a
+libpath =
+
+ifeq (\${LIBINN},)
+libinn =
+else
+libinndir = \$(shell dirname \${LIBINN})
+ifeq (\$(shell ls \${libinndir}/libinn.a 2>/dev/null),)
+libinn = -linn
+ifeq (\${libpath},)
+libpath = -L\${PATHLIB}
+endif
+else
+libinn = -L\${libinndir} -linn
+endif
+endif
+
+ifeq (\${LIBHIST},)
+libhist=
+else
+libhistdir = \$(shell dirname \${LIBHIST})
+ifeq (\$(shell ls \${libhistdir}/libinnhist.a 2>/dev/null),)
+libhist = -linnhist
+ifeq (\${libpath},)
+libpath = -L\${PATHLIB}
+endif
+else
+libhist = -L\${libhistdir} -linnhist
+endif
+endif
+
+ifeq (\${LIBSTORAGE},)
+libstorage=
+else
+libstoragedir = \$(shell dirname \${LIBSTORAGE})
+ifeq (\$(shell ls \${libstoragedir}/libstorage.a 2>/dev/null),)
+libstorage = -lstorage
+ifeq (\${libpath},)
+libpath = -L\${PATHLIB}
+endif
+else
+libstorage = -L\${libstoragedir} -lstorage
+endif
+endif
+
 `for d in "$@"; do echo "$d"; done`
 
 Makefile: Makefile.PL $0 $mkg
@@ -31,6 +81,5 @@
 	( read a b c ; if [ -n "\$\$c" ]; then printf "%d%02d%02d" \$\$a \$\$b \$\$c; else echo '20200'; fi )\` ; \\
 	perl Makefile.PL \\
 	"DEFINE=\`echo "\${GCFLAGS}" | sed 's%\.\./%$inndir/%g'\` -DINN_VERSION=\$\${INN_VERSION}" \\
-	"LIBS=\`echo "\${LIBS}" | sed 's%\.\./%$inndir/%g'\`" \\
-	"LDFROM=\\\$\$(OBJECT) \`echo "\${LIBNEWS} \${LIBSTORAGE} \${LIBINN}" | sed 's%\.\./%$inndir/%g'\`"
+	"LIBS=\`echo "\${LIBS}" | sed 's%\.\./%$inndir/%g'\` \${libpath} \${libstorage} \${libhist} \${libinn}"
 EOF

--Multipart_Wed_Dec_10_10:44:41_2003-1--
Re: Perl Interface to INN Storage Manager
#67341
Author: Tuc
Date: Wed, 10 Dec 2003 08:18
11 lines
1908 bytes
Kiyokazu SUTO <suto@ks-and-ks.ne.jp> wrote in message news:<20031210-104441-01fdd.suto@ks-and-ks.ne.jp>...
>
   [Patches]

Hi,

I hate to be a pain, but the mkmk.sh is giving me problems. Any chance
I can get a clean tarball? I'm sure its a mistake I made, just can't
find it.

Thanks, Tuc/TTSG Internet Services, Inc.
Re: Perl Interface to INN Storage Manager
#67344
Author: Tuc
Date: Wed, 10 Dec 2003 09:01
11 lines
1984 bytes
Kiyokazu SUTO <suto@ks-and-ks.ne.jp> wrote in message news:<20031210-104441-01fdd.suto@ks-and-ks.ne.jp>...
>
   [Patches]

Hi,

I hate to be a pain, but the mkmk.sh is giving me problems. Any chance
I can get a clean tarball? I'm sure its a mistake I made, just can't
find it.

Thanks, Tuc/TTSG Internet Services, Inc.
Re: Perl Interface to INN Storage Manager
#67343
Author: Kiyokazu SUTO
Date: Wed, 10 Dec 2003 12:48
15 lines
2398 bytes
Citation (with leading "> " of each line) from article:
  <b0a6af8e.0312100018.59987784@posting.google.com>
    by google@ttsg.com (Tuc) :
> I hate to be a pain, but the mkmk.sh is giving me problems. Any chance
> I can get a clean tarball? I'm sure its a mistake I made, just can't
> find it.

  http://pub.ks-and-ks.ne.jp/prog/pub/perl/inn-sm-perl.tar.gz

All patches applied.  It compiles and passes ``make test'' against
both 2.3.2 and 2.4.0.

-- 
SUTO, Kiyokazu <suto@ks-and-ks.ne.jp>
http://pub.ks-and-ks.ne.jp/pgp-public-key.html
Re: Perl Interface to INN Storage Manager
#67348
Author: Tuc
Date: Wed, 10 Dec 2003 17:20
1396 bytes
Re: Perl Interface to INN Storage Manager
#67426
Author: Tuc
Date: Sun, 14 Dec 2003 03:48
42 lines
2697 bytes
Hi All,

I've been working with Kiyokazu SUTO offline and here's whats
happened...

1) Added --make=gmake to my invocation of mkmk.sh .
2) Removed the EXTLIB=a since it finds it better now.
3) At that point it finally makes, but a make test complained:

Can't load 'blib/arch/auto/INN/SM/SM.so' for module INN::SM: Shared
object "libs
torage.so.2" not found at /usr/libdata/perl/5.00503/DynaLoader.pm line
169.

4) We worked out that "-Wl,-rpath,/usr/local/news/lib" needed to be
part of the link. He suggested adding
LIBS="-Wl,-rpath,/usr/local/news/lib" to the invocation of mkmk.sh,
which didn't do it for me. I added it to LDDLFLAGS in the created
Makefile (I never figured out how to make it via the mkmk.sh). This is
still open from a standpoint of not modifying the makefile.

5) Now on to using it.... I tried :

INN::SM::sm_init;

     or

$artiwant='@0301544852454500000005FB0D6600000001@';
$text=INN::SM::read_article($artiwant);
print $text;

     or

INN::SM::read_inn_conf;
print inn::inn_version;


and they all coredump.



Any ideas?
Re: Perl Interface to INN Storage Manager
#67459
Author: Tuc
Date: Thu, 18 Dec 2003 04:48
45 lines
2963 bytes
Bueller???? Bueller??? Is everyone gone all of a sudden? 

google@ttsg.com (Tuc) wrote in message news:<b0a6af8e.0312131948.4f5530d9@posting.google.com>...
> Hi All,
> 
> I've been working with Kiyokazu SUTO offline and here's whats
> happened...
> 
> 1) Added --make=gmake to my invocation of mkmk.sh .
> 2) Removed the EXTLIB=a since it finds it better now.
> 3) At that point it finally makes, but a make test complained:
> 
> Can't load 'blib/arch/auto/INN/SM/SM.so' for module INN::SM: Shared
> object "libs
> torage.so.2" not found at /usr/libdata/perl/5.00503/DynaLoader.pm line
> 169.
> 
> 4) We worked out that "-Wl,-rpath,/usr/local/news/lib" needed to be
> part of the link. He suggested adding
> LIBS="-Wl,-rpath,/usr/local/news/lib" to the invocation of mkmk.sh,
> which didn't do it for me. I added it to LDDLFLAGS in the created
> Makefile (I never figured out how to make it via the mkmk.sh). This is
> still open from a standpoint of not modifying the makefile.
> 
> 5) Now on to using it.... I tried :
> 
> INN::SM::sm_init;
> 
>      or
> 
> $artiwant='@0301544852454500000005FB0D6600000001@';
> $text=INN::SM::read_article($artiwant);
> print $text;
> 
>      or
> 
> INN::SM::read_inn_conf;
> print inn::inn_version;
> 
> 
> and they all coredump.
> 
> 
> 
> Any ideas?
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