🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #1043

Re: NNTP 1.5.11 under hp-ux...?

#1043
From: Mahesh Neelakanta
Date: Sat, 09 Mar 1991 04:27
35 lines
2479 bytes
In article <1991Mar05.235630.25240@cs.fau.edu> mahesh@cs.fau.edu (Mahesh Neelakanta) writes:
>in server/misc.c : fsp->fs_spec is undefined.  I looked in fstab.h but it
>                   has a #ifdef __hp9000s800 around the fstab structure 
>                   decl and I am on a s300 :-(. Is there a way around this?
>
 hpux uses checklist.h instead of fstab.h for the s300's. The getfsent(3X) is
also replaced by getmtent(3X). Many thanks to hakanson@cse.ogi.edu [Marion
Hakanson] for helping me find this. Also, I had BSD_43 defined in conf.h
(I'm still confused about hpux being more bsd or sysv, sometimes :-) which 
made the code in misc.c and nntpxmit.c go the wrong way during cpp.
 
>in server/timer.c : line 123: "timeoutp" is undefined. The code has a variable
>                    called "timeout" under SYSV and "timeoutp" is under bsd.
>                    This is part of the select() call.
>
 hull@ibmb0.cs.uiuc.edu [David Hull] posted a fix for this a few messages back.
I applied the patches and the code compiled fine.  Something to point out
here is that hpux has fd_set (in sys/types.h) so I had modified the original
timer.c to work with it (as well as using "struct timeval timeout" instead of
"long timeout"). Seems like wherever I saw a "#ifdef USG" in timer.c, I had
to replace it with "#if defined(USG) && !defined(hpux)" kinda deal :-). This
fix seemed to work too and is smaller (but will not work for other USG systems).

>in xmit/nntpxmit.c: getrusage() is missing from the libs. resource.h has the
>                    rusage structure defined but where is getrusage? 
>
 My error...I had defined BSD_43 (in common/conf.h)...dumb, dumb, dumb.

ld gave a warning that bcopy was defined more than once. Hopefully, this can be
ignored. 

Thanks again for all who helped out!

mahesh
Technical Details
Message-ID: <1991Mar09.042745.14046@cs.fau.edu>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp!utzoo!news-server.csri.toronto.edu!cs.utexas.edu!wuarchive!rex!uflorida!cs.fau.edu!mahesh
References: <1991Mar05.235630.25240@cs.fau.edu>

Show Full Headers
Complete Article Headers
Message-ID: <1991Mar09.042745.14046@cs.fau.edu>
Subject: Re: NNTP 1.5.11 under hp-ux...?
Date: Sat, 09 Mar 1991 04:27:45 +0000
From: mahesh@cs.fau.edu (Mahesh Neelakanta)
References: <1991Mar05.235630.25240@cs.fau.edu>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp!utzoo!news-server.csri.toronto.edu!cs.utexas.edu!wuarchive!rex!uflorida!cs.fau.edu!mahesh
Newsgroups: comp.sys.hp,news.software.nntp
Organization: Florida Atlantic University, Boca Raton
Lines: 34