From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,70bd0de025e32459,start X-Google-Attributes: gidfee84,public X-Google-ArrivalTime: 1994-06-15 14:27:02 PST Path: nntp.gmd.de!xlink.net!howland.reston.ans.net!europa.eng.gtefsd.com!MathWorks.Com!news.kei.com!ddsw1!news.cic.net!locust.cic.net!pauls From: pauls@locust.cic.net (Paul Southworth) Newsgroups: comp.unix.osf.osf1 Subject: Errors building USC rdist 6.1.0 under OSF/1 2.0 Followup-To: poster Date: 15 Jun 1994 21:22:43 GMT Organization: CICNet, Inc. Message-ID: <2tnrf3$t63@spruce.cic.net> NNTP-Posting-Host: locust.cic.net Anyone had any luck building the latest USC rdist under OSF/1 2.0 on an Alpha? Seems to be compiling nicely until... GCC 2.5.8 says: gcc -DOS_H=\"os-osf1.h\" -I. -I../include -I../config -c common.c -o common.o common.c: In function `mysetlinebuf': common.c:936: void value not ignored as it ought to be make[2]: *** [common.o] Error 1 OSF/1 2.0's CC says: cc -DOS_H=\"os-osf1.h\" -I. -I../include -I../config -c common.c -o common.o /usr/lib/cmplrs/cc/cfe: Error: common.c, line 936: Type for returning expression is incompatible with function return type return(setlinebuf(fp)); ^ make[2]: *** [common.o] Error 1 common.c shows: /* * Set line buffering. */ extern int mysetlinebuf(fp) FILE *fp; { #if SETBUF_TYPE == SETBUF_SETLINEBUF return(setlinebuf(fp)); /* here is line 936 */ #endif /* SETBUF_SETLINEBUF */ #if SETBUF_TYPE == SETBUF_SETVBUF return(setvbuf(stdout, NULL, _IOLBF, BUFSIZ)); #endif /* SETBUF_SETVBUF */ #if !defined(SETBUF_TYPE) No SETBUF_TYPE is defined! #endif /* SETBUF_TYPE */ } -- Paul Southworth CICNet Systems Support pauls@cic.net