[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

libcompat problem



>From make build.  Looks like gcc can't handle the K&R C.

Evan

===> lib/libcompat
cc -O2 -pipe  -DLIBC_SCCS -DSYSLIBC_SCCS -mcpu=pentium -mcpu=pentium  -c
/usr/sr
c/lib/libcompat/4.1/gtty.c -o gtty.o
In file included from /usr/include/sys/ioctl.h:88,
                 from /usr/include/sgtty.h:42,
                 from /usr/src/lib/libcompat/4.1/gtty.c:35:
/usr/include/sys/ioctl_compat.h:36: warning: `__warn_references' redefined
/usr/include/machine/cdefs.h:26: warning: this is the location of the
previous d
efinition
In file included from /usr/src/lib/libcompat/4.1/gtty.c:35:
/usr/include/sgtty.h:46: warning: `struct sgttyb' declared inside parameter
list
/usr/include/sgtty.h:46: warning: its scope is only this definition or
declarati
on, which is probably not what you want.
/usr/include/sgtty.h:47: warning: `struct sgttyb' declared inside parameter
list
/usr/src/lib/libcompat/4.1/gtty.c: In function `gtty':
/usr/src/lib/libcompat/4.1/gtty.c:46: argument `tty' doesn't match prototype
/usr/include/sgtty.h:46: prototype declaration
/usr/src/lib/libcompat/4.1/gtty.c:48: `TIOCGETP' undeclared (first use in
this f
unction)
/usr/src/lib/libcompat/4.1/gtty.c:48: (Each undeclared identifier is
reported on
ly once
/usr/src/lib/libcompat/4.1/gtty.c:48: for each function it appears in.)
*** Error code 1