Xref: utzoo comp.sys.hp:7940 news.software.nntp:1178 Path: utzoo!news-server.csri.toronto.edu!cs.utexas.edu!wuarchive!rex!uflorida!cs.fau.edu!mahesh From: mahesh@cs.fau.edu (Mahesh Neelakanta) Newsgroups: comp.sys.hp,news.software.nntp Subject: Re: NNTP 1.5.11 under hp-ux...? Message-ID: <1991Mar09.042745.14046@cs.fau.edu> Date: 9 Mar 91 04:27:45 GMT References: <1991Mar05.235630.25240@cs.fau.edu> Organization: Florida Atlantic University, Boca Raton Lines: 34 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