Subject: port-x68k/12829: changing poll(2) in tty breaks building kernel on x68k.
To: None <gnats-bugs@gnats.netbsd.org>
From: None <isaki@par.odn.ne.jp>
List: netbsd-bugs
Date: 05/04/2001 23:42:38
>Number: 12829
>Category: port-x68k
>Synopsis: changing poll(2) in tty breaks building kernel on x68k.
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: port-x68k-maintainer
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Fri May 04 07:42:01 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator: Tetsuya Isaki
>Release: NetBSD-current 2001/05/03 02:00 JST
>Organization:
>Environment:
NetBSD yuka.local 1.5V NetBSD 1.5V (YUKA-CURRENT) #1: Fri May 4 19:58:24 JST 2001 root@yuka.local:/export/2/current/sys/arch/x68k/compile/YUKA-CURRENT x68k
>Description:
Changing poll(2) by Steve Woodford at 05/02 breaks kernel compile on x68k.
>How-To-Repeat:
cvs update and make kernel on x68k, then I saw the message.
------------
cc -O2 -m68020-60 -Wa,-m68030 -Wa,-m68851 -Werror -Wstrict-prototypes -Wmissing
-prototypes -Wpointer-arith -Wno-uninitialized -Wno-main -msoft-float -I. -I../
../../../arch -I../../../.. -nostdinc -DMAXUSERS=8 -D_KERNEL -Dx68k -c ../../.
./../arch/x68k/dev/com.c
cc1: warnings being treated as errors
../../../../arch/x68k/dev/com.c:632: warning: function declaration isn't a proto
type
*** Error code 1
Stop.
------------
>Fix:
I don't know it is right, but I could compile with this patch.
--- com.c.ORIG Thu May 3 01:28:30 2001
+++ com.c Fri May 4 16:05:13 2001
@@ -156,6 +156,7 @@
int comclose __P((dev_t, int, int, struct proc *));
int comread __P((dev_t, struct uio *, int));
int comwrite __P((dev_t, struct uio *, int));
+int compoll __P((dev_t, int, struct proc *));
int comioctl __P((dev_t, u_long, caddr_t, int, struct proc *));
struct tty *comtty __P((dev_t));
void comstop __P((struct tty *, int));
>Release-Note:
>Audit-Trail:
>Unformatted: