From: pauls@locust.cic.net (Paul Southworth)
Subject: Errors building USC rdist 6.1.0 under OSF/1 2.0
Date: 15 Jun 1994 21:22:43 GMT [thread overview]
Message-ID: <2tnrf3$t63@spruce.cic.net> (raw)
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
reply other threads:[~1994-06-15 21:22 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox