Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!watmath!clyde!burl!ulysses!mhuxr!mhuxt!houxm!whuxl!whuxlm!akgua!gatech!seismo!rochester!bullwinkle!uw-beaver!tikal!teldata!transys!baron From: baron@transys.UUCP Newsgroups: net.micro Subject: Re: Help!!!!!!!!!!!!!!!!!!!!!!!!!!!! Message-ID: <186@transys.UUCP> Date: Thu, 27-Mar-86 17:53:29 EST Article-I.D.: transys.186 Posted: Thu Mar 27 17:53:29 1986 Date-Received: Tue, 1-Apr-86 04:43:23 EST References: <2056@brl-smoke.ARPA> Organization: TransSystems Inc. Bellevue, WA Lines: 65 > Does absolutely ANYONE know the answer to this?!??!?!?! > > We are running SCO Xenix on a PC AT. We are porting vnews to it. However, > when code for pathinit() exits (or just as it is about to) it loses a > return address or two and dies. We have tried more models than > most agensies. Help?!?! In my previous article, I forgot to mention that the getuser() routine also fails due to some un-initialized pointers. It apparenly checks the environment for some variables, and if not found tries to do a strcpy() into a null pointer. I beleive the variable is USERNAME or some such. I can't remember off hand ( there was a lot of code ). Basically, make the previously mentioned fixes to pathinit.c, then compile the program being tested. Here are the definitions used in the Makefile. I have found these to work very well. > # @(#)Makefile.usg 2.27 9/17/84 > # Makefile for System III, System V and other USG based systems > > # definitions > > NEWSUSR = news > NEWSGRP = news > # This is either usg or v7 > OSTYPE= usg > # HOME is the user name whose home dir has all the news stuff in it. > HOME = > # Use the -DHOME line if you want dynamic lookup in /etc/passwd > #HOMENAME= -DHOME=\"$(HOME)\" > HOMENAME= > SPOOLDIR = /news > BATCHDIR = /usr/spool/batch > LIBDIR = /usr/lib/news > BINDIR = /usr/bin > UUXFLAGS = -r > > DEBUG = > IBMFLAGS = -M2le -i -K -F 5000 -DDBM > > DEFS = -DRNEWS=\"$(BINDIR)/rnews\" -DSPOOLDIR=\"$(SPOOLDIR)\" \ > -DBATCHDIR=\"$(BATCHDIR)\" -DLIBDIR=\"$(LIBDIR)\" \ > -DBINDIR=\"$(BINDIR)\" -DNEWSUSR=\"$(NEWSUSR)\" \ > -DNEWSGRP=\"$(NEWSGRP)\" > CFLAGS = ${DEBUG} -O $(IBMFLAGS) -DUSG -Dindex=strchr -Drindex=strrchr ${DEFS} > LFLAGS = -s -i $(IBMFLAGS) > LIBS = -ldbm -lx Hope this information helps, -- **************************************************** * These are my own opinions, not those of * * my employer (self), or any one * * connected with the company (mine) * **************************************************** Joe Portman (SA) USPS: TransSystems Incorporated AT&T: 1-206-453-5560 1280 116th Avenue NE Bellevue WA 98009 /-- uw-beaver!\ /-- camco! \ ... ihnp4! --< >-tikal!< >-- transys!root \-- microsoft!/ \-- teldata!/