[news.software.b] RN Problems

wrl@wdl51.wdl.loral.com (Bill Lewandowski) (12/01/90)

Hi,
I applied patches 48,49,and 50 the other day.
No errors on the patches.

I did a make and RN compiled with no problems.
The make install worked too.

RN at patch level 50 works..

NOW:

We just changed our domain name from
wdl.fac.com to wdl.loral.com. We did a
"make realclean" and then a "Configure".
We did the Configure the same as original
(except for domain name).

When we do a make now we get :

make
cc -c -O  addng.c
"/usr/include/stdio.h", line 6: syntax error at or near word "extern"
"/usr/include/stdio.h", line 6: unknown size
"/usr/include/stdio.h", line 13: syntax error at or near symbol }
*** Error code 1
make: Fatal error: Command failed for target `addng.o'

Any advise pls ????????????

-- 
Bill Lewandowski		LORAL Western Development Labs
(408) 473-4362			Internet: wrl@wdl1.wdl.fac.com
FAX: (408) 473-7926		UUCP: wdl1!wrl

wrl@wdl1.wdl.loral.com (Bill Lewandowski) (12/18/90)

I have started to get problems with rn compiling.
I get the following:

cc -c -O  addng.c
"/usr/include/stdio.h", line 6: syntax error at or near word "extern"
"/usr/include/stdio.h", line 6: unknown size
"/usr/include/stdio.h", line 13: syntax error at or near symbol }
*** Error code 1
make: Fatal error: Command failed for target `addng.o'


The "/usr/include/stdio.h" is the one from sun and it is the same
on all our systems. the "/usr/include/stdio.h" follows.
Can anyone tell me what went wrong ?????
Thanks,
Bill
=====================================================================

/*	@(#)stdio.h 1.12 88/02/07 SMI; from UCB 1.4 06/30/83	*/

# ifndef FILE
#define	BUFSIZ	1024
#define _SBFSIZ	8
extern	struct	_iobuf {
	int	_cnt;
	unsigned char *_ptr;
	unsigned char *_base;
	int	_bufsiz;
	short	_flag;
	char	_file;		/* should be short */
} _iob[];

#define _IOFBF	0
#define	_IOREAD	01
#define	_IOWRT	02
#define	_IONBF	04
#define	_IOMYBUF	010
#define	_IOEOF	020
#define	_IOERR	040
#define	_IOSTRG	0100
#define	_IOLBF	0200
#define	_IORW	0400
#define	NULL	0
#define	FILE	struct _iobuf
#define	EOF	(-1)

#define	stdin	(&_iob[0])
#define	stdout	(&_iob[1])
#define	stderr	(&_iob[2])

#ifdef lint	/* so that lint likes (void)putc(a,b) */
extern int putc();
extern int getc();
#else
#define	getc(p)		(--(p)->_cnt>=0? ((int)*(p)->_ptr++):_filbuf(p))
#define putc(x, p)	(--(p)->_cnt >= 0 ?\
	(int)(*(p)->_ptr++ = (unsigned char)(x)) :\
	(((p)->_flag & _IOLBF) && -(p)->_cnt < (p)->_bufsiz ?\
		((*(p)->_ptr = (unsigned char)(x)) != '\n' ?\
			(int)(*(p)->_ptr++) :\
			_flsbuf(*(unsigned char *)(p)->_ptr, p)) :\
		_flsbuf((unsigned char)(x), p)))
#endif
#define	getchar()	getc(stdin)
#define	putchar(x)	putc((x),stdout)
#define	feof(p)		(((p)->_flag&_IOEOF)!=0)
#define	ferror(p)	(((p)->_flag&_IOERR)!=0)
#define	fileno(p)	((p)->_file)
#define	clearerr(p)	(void) ((p)->_flag &= ~(_IOERR|_IOEOF))

extern FILE	*fopen();
extern FILE	*fdopen();
extern FILE	*freopen();
extern FILE	*popen();
extern FILE	*tmpfile();
extern long	ftell();
extern char	*fgets();
extern char	*gets();
#ifdef vax
char	*sprintf();		/* too painful to do right */
#endif
extern char	*ctermid();
extern char	*cuserid();
extern char	*tempnam();
extern char	*tmpnam();

#define L_ctermid	9
#define L_cuserid	9
#define P_tmpdir	"/usr/tmp/"
#define L_tmpnam	(sizeof(P_tmpdir) + 15)
# endif
-- 
Bill Lewandowski		LORAL Western Development Labs
(408) 473-4362			Internet: wrl@wdl1.wdl.loral.com
FAX: (408) 473-7926		UUCP: wdl1!wrl