NetBSD Problem Report #52887
From www@NetBSD.org Mon Jan 1 23:51:12 2018
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
(Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified))
by mollari.NetBSD.org (Postfix) with ESMTPS id B9CC67A195
for <gnats-bugs@gnats.NetBSD.org>; Mon, 1 Jan 2018 23:51:12 +0000 (UTC)
Message-Id: <20180101235111.8D7927A218@mollari.NetBSD.org>
Date: Mon, 1 Jan 2018 23:51:11 +0000 (UTC)
From: qfh02545@nifty.com
Reply-To: qfh02545@nifty.com
To: gnats-bugs@NetBSD.org
Subject: wbsio: Kernel build failed(undefined reference to `sysmon_wdog_{register,unregister})
X-Send-Pr-Version: www-1.0
>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: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Mon Jan 01 23:55:00 +0000 2018
>Closed-Date: Mon Feb 19 23:40:05 +0000 2018
>Last-Modified: Mon Feb 19 23:40:05 +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
>Release-Note:
>Audit-Trail:
From: "Christos Zoulas" <christos@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:
Subject: PR/52887 CVS commit: src/sys/dev/isa
Date: Mon, 1 Jan 2018 19:25:35 -0500
Module Name: src
Committed By: christos
Date: Tue Jan 2 00:25:35 UTC 2018
Modified Files:
src/sys/dev/isa: files.isa
Log Message:
PR/52887: HITOSHI Osada: wbsio needs sysmon_wdog.
To generate a diff of this commit:
cvs rdiff -u -r1.168 -r1.169 src/sys/dev/isa/files.isa
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
From: "Soren Jacobsen" <snj@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:
Subject: PR/52887 CVS commit: [netbsd-8] src
Date: Mon, 19 Feb 2018 18:50:36 +0000
Module Name: src
Committed By: snj
Date: Mon Feb 19 18:50:35 UTC 2018
Modified Files:
src/share/man/man4 [netbsd-8]: wbsio.4
src/sys/dev/isa [netbsd-8]: files.isa wbsio.c wbsioreg.h
Log Message:
Pull up following revision(s) (requested by yamaguchi in ticket #558):
share/man/man4/wbsio.4: 1.7-1.8
sys/dev/isa/files.isa: 1.168-1.169
sys/dev/isa/wbsio.c: 1.16-1.21
sys/dev/isa/wbsioreg.h: 1.6-1.7
Add wbsio(4) GPIO driver. Implemeted by s-yamaguchi@IIJ, reviewed by msaitoh@n.o.
I just commit by proxy.
--
Fix NCT6779 gpio pin configuration. Implemeted by s-yamaguchi@IIJ, reviewed by msaitoh@n.o.
I just commit by proxy.
--
Add Watchdog timer implementation to wbsio(4). Implemeted by s-yamaguchi@IIJ, reviewed by msaitoh@n.o.
I just commit by proxy.
--
Add an option to enable GPIO function of wbsio. Implemeted by s-yamaguchi@IIJ, reviewed by msaitoh@n.o.
I just commit by proxy.
--
Improve the error log message to use product name. Implemeted by s-yamaguchi@IIJ, reviewed by msaitoh@n.o.
I just commit by proxy.
--
Update the manual of wbsio(4). Implemeted by s-yamaguchi@IIJ, reviewed by msaitoh@n.o.
I just commit by proxy.
--
New sentence, new line. Fix xref. Sort SEE ALSO.
--
PR/52887: HITOSHI Osada: wbsio needs sysmon_wdog.
--
Now that watchdog support has been added, make sure that a modular driver
requires the sysmon_wdog module.
To generate a diff of this commit:
cvs rdiff -u -r1.3.18.1 -r1.3.18.2 src/share/man/man4/wbsio.4
cvs rdiff -u -r1.167 -r1.167.8.1 src/sys/dev/isa/files.isa
cvs rdiff -u -r1.10.10.1 -r1.10.10.2 src/sys/dev/isa/wbsio.c
cvs rdiff -u -r1.5.2.2 -r1.5.2.3 src/sys/dev/isa/wbsioreg.h
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
State-Changed-From-To: open->closed
State-Changed-By: snj@NetBSD.org
State-Changed-When: Mon, 19 Feb 2018 23:40:05 +0000
State-Changed-Why:
fixed. thanks!
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.43 2018/01/16 07:36:43 maya Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2017
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.