NetBSD-Bugs archive

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

kern/52887: wbsio: Kernel build failed(undefined reference to `sysmon_wdog_{register,unregister})



>Number:         52887
>Category:       kern
>Synopsis:       wbsio: Kernel build failed(undefined reference to `sysmon_wdog_{register,unregister})
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Jan 01 23:55:00 +0000 2018
>Originator:     HITOSHI Osada
>Release:        NetBSD-current
>Organization:
>Environment:
NetBSD athlon5350 8.99.9 NetBSD 8.99.9 (ATHLON5350KMS) #0: Sun Dec 31 21:15:42 JST 2017  that@athlon5350:/tmp/obj/sys/arch/amd64/compile/ATHLON5350KMS amd64

>Description:
The kernel build failed when wbsio in kernel config.
-----------------------
/tmp/obj/tooldir.NetBSD-8.99.7-amd64/bin/x86_64--netbsd-ld -Map netbsd.map --cref -T netbsd.ldscript -Ttext 0xffffffff80200000 -e start -z max-page-size=0x200000 -X -o netbsd ${SYSTEM_OBJ:[@]:Nswapnetbsd.o} ${EXTRA_OBJ} vers.o swapnetbsd.o
wbsio.o: In function `wbsio_wdog_detach':
/Sources/src/sys/dev/isa/wbsio.c:868: undefined reference to `sysmon_wdog_wwunregister'
wbsio.o: In function `wbsio_wdog_attach':
/Sources/src/sys/dev/isa/wbsio.c:849: undefined reference to `sysmon_wdog_register'
*** [netbsd] Error code 1

nbmake: stopped in /tmp/obj/sys/arch/amd64/compile/ATHLON5350KMS
1 error

nbmake: stopped in /tmp/obj/sys/arch/amd64/compile/ATHLON5350KMS

ERROR: Failed to make all in "/tmp/obj/sys/arch/amd64/compile/ATHLON5350KMS"
-----------------------
>How-To-Repeat:
Build a kernel with wbsio.
>Fix:
diff --git a/sys/dev/isa/files.isa b/sys/dev/isa/files.isa
index 255dcfae7d..e16962edb8 100644
--- a/sys/dev/isa/files.isa
+++ b/sys/dev/isa/files.isa
@@ -454,7 +454,7 @@ attach      smsc at isa with smsc
 file   dev/isa/smsc.c                  smsc                    needs-flag

 # Winbond LPC Super I/O
-device wbsio { }: gpiobus
+device wbsio { }: gpiobus, sysmon_wdog
 attach wbsio at isa
 file   dev/isa/wbsio.c                 wbsio



Home | Main Index | Thread Index | Old Index