Notes on building popular add-on utilities (xntpd, wu-ftpd) with UnixWare 2.00. Joe D. -------------- X-News: cc.usu.edu comp.unix.unixware:23537 From: jrd@cc.usu.edu (Joe Doupnik) Subject:system include .h reacts to -DDEBUG Date: 4 Apr 95 10:08:45 MDT Message-ID:<1995Apr4.100845.46464@cc.usu.edu> Be aware that UW 2.00 has problems with at least one include file containing symbol DEBUG. That's file /usr/include/netinet/in_systm_f.h. The symptom is the compiler yields a syntax error on line 66 of that .h file. The workaround is to not define DEBUG in your Makefile. Yikes. Hopefully the 2.01 release will have cleaned up this problem. Joe D. ---------------- X-News: cc.usu.edu comp.unix.unixware:23552 From: jrd@cc.usu.edu (Joe Doupnik) Subject:Re: where is ptf222.tar? Date: 4 Apr 95 15:24:58 MDT Message-ID:<1995Apr4.152458.46499@cc.usu.edu> In article <3lqvub$7jm@canton.charm.net>, cnordin@charm.net (Craig Nordin) writes: > > > > I believe this will let me run ntp on our UW 1.1.2 AS boxes and > I'd really like to. ftp.novell.{com,de} both did not have it... > > > I see it listed in the *.rpt file found in pinfo.tar in the patches > directories on both servers.... --------- Not to worry. Build xntpd from the latest release, 3.4n, days old. Here are hints on achieving that goal, based on UW 2.00. As written the Unixware1 Makefile defines the machine as having Streams i/o, which of course it does. Alas, the streams i/o in xntpd seems to be broken and has been broken for a long time, and I've given up hope of it being fixed. If built with the above makefile the daemon installs but does not converse across the net (and does not hook UDP port 113). Also, the cc command line has -DDEBUG, as noted in my earlier message today, and that's fatal for UW 2.00. Soooo, several trivial changes let you progress nicely. Do make OS=unixware1. Then modify the Config file as shown below. The mods are to: a. point to /etc/inet/ntd.conf for ntd.conf b. store programs in /opt/bin (create by hand if needed) c. remove -DDEBUG and -DSTREAMS_TLI d. use cc rather than gcc (your choice) e. add library -lgen (/usr/ccs/lib/libgen.a) for UW 2.00 That will cascade down to the Makefiles. Say make and watch it build. Once done with that you need to construct an /etc/inet/ntd.conf file if you don't have one. Below is a sample cutout since the docs are terrible. To activate say xntpd to the shell prompt; and you can run the automatic startup process by editing /etc/inet/rc.inet. This will give you the latest, Version 3, ntp support. Note that tickadj doesn't work, but what the heck. This build is for no radio clock; just the Internet plus the motherboard crummy crystal oscillator. That's termed "greenhorn" in the xntpd world. Louie.udel.edu is the place for all xntpd goodies, including a list of high confidence (small valued stratum) time servers. Joe D. -------------- File Config snippets - SHELL= /bin/sh RANLIB= ls # ar does the work of ranlib under System V ###DEFS= -DSYS_UNIXWARE1 -DSTREAMS_TLI -DHAVE_TERMIOS -DCONFIG_FILE=\\"/usr/local/etc/ntp.conf\\" DEFS= -DSYS_UNIXWARE1 -DHAVE_TERMIOS -DCONFIG_FILE=\\"/etc/inet/ntp.conf\\" AUTHDEFS= -DDES -DMD5 CLOCKDEFS= DAEMONLIBS= -lgen -lnsl -lsocket -lelf RESLIB= -lgen -lnsl -lsocket -lelf INSTALL=$(TOP)scripts/install.sh SHELL= /bin/sh RANLIB= ls # ar does the work of ranlib under System V ##COMPILER= gcc COMPILER= cc LIBDEFS= -DXNTP_LITTLE_ENDIAN DEFS_INCLUDE= -DNTP_SYSCALLS_LIBC # This is the local configure file (distribution version). # You must modify it to fit your particular configuration # and name it Config.local # The following configuratiions can be auto-generated: # # make Config.local.green # make a Config.local that supports a local clock # (i.e. allow fallback to use of the CPU's own clock) # make Config.local.NO.clock # make a Config.local that supports no clocks # # # NOTE TO GREENHORNS # Usually these defines are already set correctly. # DEFS_OPT= ###-DDEBUG # ###BINDIR= /usr/local/bin BINDIR= /opt/bin ---------------------------- File /etc/inet/ntd.conf snippets (do NOT use these IP addresses!) - # # UofT stratum 2 peer configuration # # peers server 129.123.1.x server 129.123.1.y server 129.123.1.z server 198.64.6.199 # time.neosoft.com # enable monitoring feature monitor yes # # Drift file. Put this in a directory which the daemon can write to. # No symbolic links allowed, either, since the daemon updates the file # by creating a temporary in the same directory and then rename()'ing # it to the file. # driftfile /etc/inet/ntp.drift --------------- For sendmail 8.6.x hints please see file senmail.UW200.tar.Z in this directory. ---------------------------------------------------------- X-NEWS: cc.usu.edu comp.unix.unixware: 23816 Path: cc.usu.edu!jrd From: jrd@cc.usu.edu (Joe Doupnik) Newsgroups: comp.unix.unixware Subject: Re: Software trouble after 2.0 upgrade. Message-ID: <1995Apr7.143311.46848@cc.usu.edu> Date: 7 Apr 95 14:33:11 MDT References: Organization: Utah State University Lines: 64 In article , howardl@wb3ffv.ampr.org (Howard D. Leadmon) writes: > > Well in my continuing saga of getting my system back to 100% operational > status after my 1.1.2 to 2.0 upgrade is now continuing. Apparently some > software that ran fine under 1.1.2 now won't operate correctly after my > upgrade to 2.0. After operating for a short while I started receiving > messages from users telling me that Anonymous FTP no longer worked (we use > the WU-FTPD package), also the Identd server no longer works, and other > various interesting things related to the upgrade. > > Anyway here is a little of the information I have been able to compile > on some of the problems that plague us. First the wu-ftpd-2.4 package > that was compiled under 1.1.2 now errors when accessed, a user can login > to the server, but any attempt to retreive a file and here is what is > receives: > ------------------------------------------------------------------------------- > Internet : howardl@wb3ffv.ampr.org | Howard D. Leadmon > UUCP : wb3ffv!howardl | Advanced Business Solutions > PHONE : (410)-661-0447 | 4107 Martin Avenue > FAX : (410)-661-0644 | Baltimore, MD 21236 > PACKET : WB3FFV @ WB3FFV.MD.USA.NA | > WWW : http://wb3ffv1.sed.csc.com/ | Home of the WB3FFV Amateur Radio > GOPHER : wb3ffv1.sed.csc.com | INTERNET Bulletin Board System -------------------- Stop, remove all -DDEBUG clauses from your CC lines in building apps. As I've mentioned several times, UW 2.00 (double-zero) has some #ifdef DEBUG clauses in their usr/include/* files. Wu-ftpd-2.4 built smoothly here, as shown in the frag below. But... the timezone stuff is crunched in UW 2.00 for some items running as daemons or via inetd. See ftpd.c snippet below below (/* JRD */ part) to work around that too. Joe D. ------------- File Makefile - CC = cc IFLAGS = -I.. -I../support LFLAGS = -L../support ####CFLAGS = -g -DDEBUG ${IFLAGS} ${LFLAGS} CFLAGS = -g -O ${IFLAGS} ${LFLAGS} LIBES = -lsupport -lsocket -lnsl -lgen -lc -L/usr/ucblib -lucb LIBC = LINTFLAGS= LKERB = -lauth -lckrb -lkrb -ldes MKDEP = ../util/mkdep etc ------------------ File ftpd.c ... main(int argc, char **argv, char **envp) { int addrlen, on = 1; #ifdef IPTOS_LOWDELAY int tos; #endif char *cp; /* JRD */ putenv("TZ=MST7MDT"); /* JRD */ etc