[news.software.anu-news] Solutions with News V5.9C

reggers@uwovax.uwo.ca (Reg Quinton) (03/03/90)

I've just spent the last few days putting up ANU/NEWS Version 5.9c, on VMS
5.2, with Multinet 2.1, and Digital Vax C V3.0-031. Thought I'd document my
problems/solutions for the next fellow who comes along.

-----
1. First, this has been a relatively painless exercise. Thanks Geoff!

-----
2. Multinet 2.1 has come out since the release of 5.9c so there are some
   changes to search paths, also the multinet library exists only as a
   shareable exe (ie. there is no .olb file!).

   a) To NewsBuild.com (to fix the search path and NOT define an extra
      lnk$library):

  .....
$ if f$search("multinet_root:[multinet.include]*.h") .eqs. "" then $goto nomultinet
$!
$! Include MULTINET/TCP support modules.....
$!
$ no_wintcp = 0
$ define vaxc$include	multinet_root:[multinet.include],-
			multinet_root:[multinet.include.sys],-
			multinet_root:[multinet.include.arpa],-
			multinet_root:[multinet.include.netinet], -
			multinet_root:[multinet.include.vms], -
			sys$library:
$ define lnk$library sys$library:vaxcrtl
$ cc :== "CC/DEFINE=MULTINET"
$nomultinet:
 .....

	[ Ps. if sys$share:vaxcrtl.exe is in options_c_link.opt then
	  sys$library:vaxcrtl shouldn't be necessary???]

	b) to OPTIONS_C_LINK.OPT (to use the shareable exe), file should
	   contain:

		MULTINET:MULTINET_SOCKET_LIBRARY.EXE/SHARE
		SYS$SHARE:VAXCRTL.EXE/SHARE
		SYS$SHARE:MAILSHR.EXE/SHARE

	I don't know of any nice way to automagically do this so I just
	editted the file.

	c) To nntp_tcpwinmultinet.c (you'll get a link error if you don't
	say noshare) h_errno should be defined as:

	extern noshare int h_errno;

------
3. Finally, I have a couple of problems with newsremclient.c that I've not
   been able to resolve (although life seems to continue even with them).

	a) off_t gets defined twice (as the same thing, so thats not really
	   a problem)

	b) dev_t gets defined as 
		"typedef short" in multinet/include/sys/types.h
		"typedef char *" in sys$library/stat.h

	   This is really worrisome, but she seems to hold together
	   in spite of it!

I hope these comments are helpful.

-- 
Telephone:	(519) 661 2151 x6026 (a real person and not a machine)
Canada:		reggers@uwo.ca (used to be UWO.CDN)
BITNET:		reggers@uwovax.BITNET (for the ethnocentric)
UUCP:		reggers@ria.UUCP (...!watmath!ria..)