Article View: news.software.nntp
Article #67342Re: Perl Interface to INN Storage Manager
From: Kiyokazu SUTO
Date: Wed, 10 Dec 2003 01:44
Date: Wed, 10 Dec 2003 01:44
115 lines
4823 bytes
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--
Technical Details
Message-ID:
<20031210-104441-01fdd.suto@ks-and-ks.ne.jp>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20140818.mbox.gz!internal1.nntp.ash.giganews.com!border2.nntp.ash.giganews.com!border1.nntp.ash.giganews.com!firehose2!nntp4!intern1.nntp.aus1.giganews.com!border1.nntp.aus1.giganews.com!nntp.giganews.com!newsfeed.media.kyoto-u.ac.jp!news.ks-and-ks.ne.jp!omega.ks-and-ks.ne.jp!not-for-mailReferences:
<b0a6af8e.0312061227.290161f1@posting.google.com> <87wu991yjw.fsf@windlord.stanford.edu> <b0a6af8e.0312070949.3c7875a6@posting.google.com> <br0cvp$d3t$1@puck.litech.org> <b0a6af8e.0312080820.482ec033@posting.google.com> <20031209-102321-01fdb.suto@ks-and-ks.ne.jp> <b0a6af8e.0312082308.6dffd9b5@posting.google.com> <87r7zev3ir.fsf@windlord.stanford.edu> <20031209-205607-01fdc.suto@ks-and-ks.ne.jp> <b0a6af8e.0312090749.2d053572@posting.google.com>Show Full Headers
Complete Article Headers
Message-ID: <20031210-104441-01fdd.suto@ks-and-ks.ne.jp> Subject: Re: Perl Interface to INN Storage Manager Date: Wed, 10 Dec 2003 01:44:41 +0000 From: Kiyokazu SUTO <suto@ks-and-ks.ne.jp> References: <b0a6af8e.0312061227.290161f1@posting.google.com> <87wu991yjw.fsf@windlord.stanford.edu> <b0a6af8e.0312070949.3c7875a6@posting.google.com> <br0cvp$d3t$1@puck.litech.org> <b0a6af8e.0312080820.482ec033@posting.google.com> <20031209-102321-01fdb.suto@ks-and-ks.ne.jp> <b0a6af8e.0312082308.6dffd9b5@posting.google.com> <87r7zev3ir.fsf@windlord.stanford.edu> <20031209-205607-01fdc.suto@ks-and-ks.ne.jp> <b0a6af8e.0312090749.2d053572@posting.google.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.20140818.mbox.gz!internal1.nntp.ash.giganews.com!border2.nntp.ash.giganews.com!border1.nntp.ash.giganews.com!firehose2!nntp4!intern1.nntp.aus1.giganews.com!border1.nntp.aus1.giganews.com!nntp.giganews.com!newsfeed.media.kyoto-u.ac.jp!news.ks-and-ks.ne.jp!omega.ks-and-ks.ne.jp!not-for-mail Newsgroups: news.software.nntp Organization: Kiyokazu SUTO's home Lines: 115 NNTP-Posting-Host: localhost Mime-Version: 1.0 (generated by SEMI 1.12.1 - "[JR] Nonoichi") Content-Type: multipart/mixed; boundary="Multipart_Wed_Dec_10_10:44:41_2003-1" X-Trace: omega.ks-and-ks.ne.jp 1071020711 22049 127.0.0.1 (10 Dec 2003 X-Complaints-To: usenet@omega.ks-and-ks.ne.jp NNTP-Posting-Date: Wed, 10 Dec 2003 01:45:11 +0000 (UTC) In-Reply-To: <b0a6af8e.0312090749.2d053572@posting.google.com> User-Agent: Semi-gnus/6.10.2 SEMI/1.12.1 ([JR] Nonoichi) FLIM/1.12.2 (Kujō) MULE/2.3 (SUETSUMUHANA) (based on Emacs 19.34)