Subject: port-mac68k/12931: undefined reference to itepoll compiling mac68k kernel
To: None <gnats-bugs@gnats.netbsd.org>
From: Dave Huang <khym@azeotrope.org>
List: netbsd-bugs
Date: 05/14/2001 01:49:01
>Number:         12931
>Category:       port-mac68k
>Synopsis:       undefined reference to itepoll compiling mac68k kernel
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    port-mac68k-maintainer
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun May 13 23:48:00 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     Dave Huang
>Release:        NetBSD-1.5V as of May 13, 2001
>Organization:
Name: Dave Huang     |   Mammal, mammal / their names are called /
INet: khym@bga.com   |   they raise a paw / the bat, the cat /
FurryMUCK: Dahan     |   dolphin and dog / koala bear and hog -- TMBG
Dahan: Hani G Y+C 25 Y++ L+++ W- C++ T++ A+ E+ S++ V++ F- Q+++ P+ B+ PA+ PL++
>Environment:
	
Architecture: m68k
Machine: mac68k
>Description:
	Linking a -current kernel with "pseudo-device ite 1" in the
config file fails with:

m68k-netbsd-ld -n -Ttext 0 -e start -X -o netbsd ${SYSTEM_OBJ} vers.o
conf.o(.data+0x440):/usr/src.local/sys/arch/mac68k/compile/GEDD/../../../../arch/mac68k/mac68k/conf.c: undefined reference to `itepoll'
	
>How-To-Repeat:
	Attempt to compile a kernel with the ite device.
>Fix:
Disclaimer: I don't know what I'm doing :)

--- /usr/src/sys/arch/mac68k/dev/ite_compat.c	Tue Jan 23 20:49:34 2001
+++ ite_compat.c	Mon May 14 01:30:23 2001
@@ -190,3 +190,14 @@
 
 	return (ENOTTY);
 }
+
+/*ARGSUSED*/
+int
+itepoll(dev, events, p)
+	dev_t dev;
+	int events;
+	struct proc *p;
+{
+	return ite_initted ?
+	    wsdisplaypoll(cn_tab->cn_dev, events, p) : (ENXIO);
+}

>Release-Note:
>Audit-Trail:
>Unformatted: