🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.readers
5 messages
5 total messages Started by Andrew Patrick Tue, 31 Dec 1991 17:12
Problem with TRN running via NNTP and remote thread database
#949
Author: Andrew Patrick
Date: Tue, 31 Dec 1991 17:12
164 lines
4505 bytes
I am trying to build trn to run via NNTP and I am running into a
problem.  (Server and Client machines are SPARCstations running SunOS
4.1.1B.)  Trn builds and runs fine on the news server (rick).  Mthreads
has been run and the .threads files are in the news spool directory
(rick:/rgd/news/spool).

My problems comes when I try to configure and build trn on a client
(calvin).  I am trying to get trn to use NNTP for reading/sending news,
but to share the thread database via NFS.  The problem is I am not sure
what the configuration should be for this.  When I build and run trn it
works fine except that there is no threading.  I can build the threads
dynamically, but can't seem to get access to the database on the
server.

Any ideas?  Should I give up on this coniguration and patch the NNTP
source to support threading?

Here is my config.sh file.  The news spool directory is mounted as
"/am/rgd/news/spool", and the news lib directory is mounted as
"/am/rgd/news/lib".

#!/bin/sh
# config.sh
# This file was produced by running the Configure script.

n='-n'
c=''
libc='/lib/libc.a'
sharedclib=''
eunicefix=':'
eunice='undef'
cpp='cc -E'
shsharp='true'
startsh='#!/bin/sh'
spitshell='cat'
test='/bin/test'
expr='expr'
sed='sed'
echo='echo'
cat='cat'
rm='rm'
mv='mv'
cp='cp'
tail='tail'
tr='tr'
mkdir='mkdir'
sort='sort'
uniq='uniq'
inews='/usr/local/bin/inews'
grep='grep'
egrep='/bin/egrep'
nidump=''
ypmatch=''
contains='grep'
lib='/am/rgd/news/lib'
libexp='/am/rgd/news/lib'
nametype='bsd'
cc='cc'
cflags='-O'
iandd=''
rrninclude=''
termlib='-ltermlib'
jobslib=''
socketlib=''
getcwd='undef'
getwd='define'
setbuffer='define'
setvbuf='undef'
dirtype='dirent'
dirinc='<dirent.h>'
ndirlib=''
libndir='undef'
usendir='undef'
ndirc=''
ndiro=''
posix=''
pager='/usr/ucb/more'
mailer='/usr/lib/sendmail'
internet='define'
rnbin='/usr/local/bin'
filexp='/usr/local/lib/trn/filexp'
distlist=''
Log='$Log'
Id='$Id'
sitename='calvin.dgbt.doc.ca'
hostfile=''
domain='dgbt.doc.ca'
orgname="Communications Research Centre, Ottawa, Canada"
isadmin='define'
newsadmin='news'
rnlib='/usr/local/lib/trn'
mtlib='/usr/local/lib/trn'
mansrc='/usr/man/manl'
manext='l'
maildir='/usr/spool/mail/%L'
spool='/tmp'
serverspool=''
active='/usr/lib/news/active'
myactive='.falseactive'
activetimes='nntp'
mininact='define'
pref='/bin/csh'
defeditor='/usr/ucb/vi'
rootid='0'
mboxchar='F'
locpref='dbr'
orgpref='marvin'
citypref='ott'
statepref='ont'
cntrypref='can'
contpref='na'
strchr='undef'
memcpy='undef'
rename='define'
ftruncate='define'
usleep='define'
uselect='undef'
strftime='define'
xnxlib=''
chsize='undef'
tzset='undef'
threaddef='TRUE'
selectdef='TRUE'
threaddir='/am/rgd/news/lib/trn'
syslog=''
novoid='undef'
novfork='undef'
sunos4='define'
portable='define'
passnam='define'
berknam='define'
usgnam='undef'
whoami='undef'
termio='undef'
termios='undef'
fcntl='define'
ioctl='define'
ptem='undef'
normsig='define'
sigblock='define'
sigret='void'
sighold='undef'
getuidgid='define'
havetlib='define'
getpwent='define'
gethostname='define'
douname='undef'
phostname='undef'
hostcmd='hostname'
norelay='define'
rdchk='undef'
isrrn='define'
xthread='undef'
serverfile='/usr/local/lib/rn/server'
ignoreorg='undef'
NNTPSRC='/am/bg/util/news/nntp'
CONFIG=true

-- 
Andrew Patrick, Ph.D.       Communications Research Centre, Ottawa, CANADA
andrew@calvin.dgbt.doc.CA
            "Making computers do the things they do on television."
            "Making television do the things that computers do."
Re: Problem with TRN running via NNTP and remote thread database
#1001
Author: Stephen R. van den Berg
Date: Thu, 09 Jan 1992 11:34
44 lines
2554 bytes
Andrew Patrick writes:
>I am trying to build trn to run via NNTP and I am running into a
>problem.  (Server and Client machines are SPARCstations running SunOS
>4.1.1B.)  Trn builds and runs fine on the news server (rick).  Mthreads
>has been run and the .threads files are in the news spool directory
>(rick:/rgd/news/spool).

>My problems comes when I try to configure and build trn on a client
>(calvin).  I am trying to get trn to use NNTP for reading/sending news,
>but to share the thread database via NFS.  The problem is I am not sure
>what the configuration should be for this.  When I build and run trn it
>works fine except that there is no threading.  I can build the threads
>dynamically, but can't seem to get access to the database on the
>server.

I had the same problem here, it seems that trn can not be configured for
this standardly.

What did the trick for me was:
Configure for NNTP operation with a local threads database (I configured the
threads database on a separate path from the news/spool directory).

	make install

Then Configure for complete NNTP operation with nntp-patches (XTHREADS command
or so).

	make mthreads

Now the compilation will halt somewhere in the middle because of an error in
server.h; this error is due to a check if nntp has been patched, remove
the offending test and try again:

	make mthreads

Now copy (by hand) the two files named mt.check and mthreads into the proper
installation directory.
You now have a trn which works over NNTP, which gets its threads database by
NFS, and an mthreads that works over NFS.

Hope this helps, if you are still having trouble getting it running, drop
me a note.
-- 
Re: Problem with TRN running via NNTP and remote thread database
#1027
Author: Wayne Davison
Date: Mon, 13 Jan 1992 07:23
25 lines
1993 bytes
Stephen R. van den Berg (berg@physik.tu-muenchen.de) wrote:
> Andrew Patrick writes:
> >I am trying to build trn to run via NNTP and I am running into a
> >problem.
> I had the same problem here, it seems that trn can not be configured for
> this standardly.

Actually, you two are talking about two different things.  I already helped
Andrew out via mail long before I saw these postings.  He was running mthreads
on the server and putting the thread files in the spool directory and then
sharing the spool directory via NFS.  However, the NNTP version of trn (which
was being run on the clients) expects to see the thread files in a directory
separate from the spool (which is slightly different in naming convetion in
order to save space).  The work-around for this is quite easy (one define
in config.h to change the SUFFIX for the thread files to be "/.thread").

Your problem was that you wanted to run an NNTP trn with a non-NNTP mthreads --
as you discovered, it involves two Configuration passes.  I assumed that you
would put a set of source on the server to configure a local trn/mthreads and
a set of source on the client(s) to configure NNTP trn(s) in this situation.
-- 
 \  /| / /|\/ /| /(_)    Wayne Davison
(_)/ |/ /\|/ / |/  \     davison@borland.com
   (W   A  Y   N   e)
Re: Problem with TRN running via NNTP and remote thread database
#1044
Author: Greg Earle - Sun JPL on-site Sof...
Date: Thu, 16 Jan 1992 08:04
35 lines
2549 bytes
This is related to the thread of the Subject:, but a slightly different
circumstance:

I'm trying to build trn 2.2 as an NNTP client, but using XTHREAD to access
the NNTP server's own threads database instead of using a local mthreads.

Two things of note:

(1) The "xthread.patch" file is for the NNTP server.  I don't run an NNTP
    server, I just need the necessary bits of NNTP 1.5.11 to compile trn as
    an NNTP client.  I think that's only common/clientlib.c and common/nntp.h.
    patch gets rather upset with all these other files to patch being present
    in "xthread.patch" but there's nobody home.  I suggest an
    "xthread.patch.client" patch file for those who only want NNTP client
    support.  Also, my clientlib.c doesn't reference any "clientlib.h" (which
    a patch for exists in the "xthreads.patch" file)?  I *thought* I had a
    1.5.11 "clientlib.c" ...

(2) At the tail end of server.h, you'll get bitten by 

# if defined(XTHREAD) && !defined(OK_BIN)
     ??????  /* This version of NNTP doesn't have XTHREAD support */
# endif

    if you haven't figured out that you need to apply a subset of the
    "xthread.patch" file.  You also get bitten by the unresolved references
    to "rawcheck_server()" and "rawget_server()", which sets you off on this
    goosechase to begin with (-:

-- 
	- Greg Earle			| Disclaimer: I would be just as
	  Sun Los Angeles		| mortified if Sun thought I was
	  JPL on-site Software Support	| speaking for the company as Sun is at
	  earle@poseur.JPL.NASA.GOV	| the thought of me speaking for it.
Re: Problem with TRN running via NNTP and remote thread database
#1050
Author: Wayne Davison
Date: Thu, 16 Jan 1992 23:32
39 lines
2543 bytes
Greg Earle (earle@poseur.jpl.nasa.gov) wrote:
> (1) The "xthread.patch" file is for the NNTP server.

No, it's for all of NNTP -- both the server and common directories are
affected, and the client code is in the common directory.  If you wish
to only install the client portion of the patches in the case where you
have deleted the server source code, you could sit through the patch
session pressing <return> for every "File to patch: " prompt and 'y'
for each "skip this patch?" prompt and you will end up patching what is
needed.

>     I just need the necessary bits of NNTP 1.5.11 to compile trn as
>     an NNTP client.  I think that's only common/clientlib.c and common/nntp.h.

Yup.  That's them.  If you edit out the patches for just these two files,
you could apply them separately, if you like.  Having a separate client
and server patch was considered, but I thought it wasn't needed.  Perhaps
I was wrong.

>     Also, my clientlib.c doesn't reference any "clientlib.h" (which
>     a patch for exists in the "xthreads.patch" file)?

It is interesting that no one appears to use the clientlib.h file.  It was,
however, updated with the latest clientlib.c changes to keep it current.

> (2) At the tail end of server.h, you'll get bitten by 
> # if defined(XTHREAD) && !defined(OK_BIN)
>      ??????  /* This version of NNTP doesn't have XTHREAD support */
> # endif
>     if you haven't figured out that you need to apply a subset of the
>     "xthread.patch" file.

That's what it's there for.  Trn-xthreads can't compile without the XTHREAD
changes to the clientlib, and what better way to fail than to tell you that
you need to add the XTHREAD support to your NNTP?
-- 
 \  /| / /|\/ /| /(_)    Wayne Davison
(_)/ |/ /\|/ / |/  \     davison@borland.com
   (W   A  Y   N   e)
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