[785] in Zephyr_Bugs
Problems compiling zephyr on SGI
daemon@ATHENA.MIT.EDU (Tim)
Thu Jun 6 05:01:07 1996
Date: Thu, 6 Jun 1996 04:01:34 -0500 (CDT)
From: Tim <timster@metronet.com>
To: zephyr-bugs@MIT.EDU
uname -a on my SGI machine (non-athena) says:
IRIX coggs 5.3 12200159 IP22 mips
I followed the instructions in the INSTALL file, i.e.:
./configure --prefix=/some/private/directory
make
First it barfs on a malloc redeclaration:
cc -O -I. -I../../h -I../../h -I. -c y.tab.c
cfe: Error: /usr/include/malloc.h, line 120: redeclaration of 'malloc';
previous
declaration at line 10 in file 'ct.y'
extern void * malloc(size_t);
------------- ^
cfe: Error: /usr/include/malloc.h, line 120: Incompatible function return
type for this function.
extern void * malloc(size_t);
------------- ------^
I edited the ct.y file cuz it had char *malloc(size_t) rather than
extern void* malloc(size_t);
That cleared THAT problem.
Then it broke again:
make: file `Makefile' line 55: Syntax error
*** Error code 1 (bu21)
*** Error code 1 (bu21)
It appears that lib/zephyr/Makefile was the one in question. But
line 55 thru 57 didn't look wrong:
$(OBJS): $(top_srcdir)/h/internal.h $(top_srcdir)/h/sysdep.h
$(OBJS): $(BUILDTOP)/h/config.h $(BUILDTOP)/h/zephyr/zephyr.h
$(OBJS): $(BUILDTOP)/h/zephyr/zephyr_err.h
I even tried removing these 3 lines, and make would proceed fine for a
while until yet another error, something about can't open
zephyr/zephyr_err.h in line 10.
Any help or suggestions would be appreciated.
-Tim