From owner-freebsd-bugs@FreeBSD.ORG Sun Sep 21 17:42:36 2014 Return-Path: Delivered-To: freebsd-bugs@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 8BC6E45B for ; Sun, 21 Sep 2014 17:42:36 +0000 (UTC) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 72AE22EA for ; Sun, 21 Sep 2014 17:42:36 +0000 (UTC) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.14.9/8.14.9) with ESMTP id s8LHgalC040595 for ; Sun, 21 Sep 2014 17:42:36 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-bugs@FreeBSD.org Subject: [Bug 193817] New: ATKBD_DFLT_KEYMAP causes buildkernel failure Date: Sun, 21 Sep 2014 17:42:36 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 10.1-BETA1 X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: thierry@FreeBSD.org X-Bugzilla-Status: Needs Triage X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-bugs@FreeBSD.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 21 Sep 2014 17:42:36 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=193817 Bug ID: 193817 Summary: ATKBD_DFLT_KEYMAP causes buildkernel failure Product: Base System Version: 10.1-BETA1 Hardware: Any OS: Any Status: Needs Triage Severity: Affects Only Me Priority: --- Component: kern Assignee: freebsd-bugs@FreeBSD.org Reporter: thierry@FreeBSD.org My Kernel contains the following lines: device atkbdc # AT keyboard controller device atkbd # AT keyboard device psm # PS/2 mouse options ATKBD_DFLT_KEYMAP # specify the built-in keymap makeoptions ATKBD_DFLT_KEYMAP=fr.acc With them, `make buildkernel' fails with these messages: /usr/local/libexec/ccache/world/cc --sysroot=/usr/obj/usr/src/tmp -B/usr/obj/usr/src/tmp/usr/bin -c -O2 -pipe -fno-strict-aliasing -march=corei7 -std=c99 -gdwarf-2 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -fformat-extensions -Wmissing-include-dirs -fdiagnostics-show-option -Wno-error-tautological-compare -Wno-error-empty-body -Wno-error-parentheses-equality -Wno-error-unused-function -nostdinc -I. -I/usr/src/sys -I/usr/src/sys/contrib/altq -I/usr/src/sys/contrib/libfdt -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -mno-aes -mno-avx -mcmodel=kernel -mno-red-zone -mno-mmx -mno-sse -msoft-float -fno-asynchronous-unwind-tables -ffreestanding -fstack-protector -Werror /usr/src/sys/dev/atkbdc/atkbd.c /usr/src/sys/dev/atkbdc/atkbd.c:372:26: error: use of undeclared identifier 'key_map'; did you mean 'keymap'? keymap = malloc(sizeof(key_map), M_DEVBUF, M_NOWAIT); ^~~~~~~ keymap /usr/src/sys/dev/atkbdc/atkbd.c:348:12: note: 'keymap' declared here keymap_t *keymap; ^ /usr/src/sys/dev/atkbdc/atkbd.c:373:26: error: use of undeclared identifier 'accent_map'; did you mean 'accentmap_t'? accmap = malloc(sizeof(accent_map), M_DEVBUF, M_NOWAIT); ^ /usr/src/sys/sys/kbio.h:210:26: note: 'accentmap_t' declared here typedef struct accentmap accentmap_t; ^ /usr/src/sys/dev/atkbdc/atkbd.c:403:10: error: use of undeclared identifier 'key_map'; did you mean 'keymap'? bcopy(&key_map, keymap, sizeof(key_map)); ^~~~~~~ keymap /usr/src/sys/dev/atkbdc/atkbd.c:348:12: note: 'keymap' declared here keymap_t *keymap; ^ /usr/src/sys/dev/atkbdc/atkbd.c:403:34: error: use of undeclared identifier 'key_map'; did you mean 'keymap'? bcopy(&key_map, keymap, sizeof(key_map)); ^~~~~~~ keymap /usr/src/sys/dev/atkbdc/atkbd.c:348:12: note: 'keymap' declared here keymap_t *keymap; ^ /usr/src/sys/dev/atkbdc/atkbd.c:404:10: error: use of undeclared identifier 'accent_map' bcopy(&accent_map, accmap, sizeof(accent_map)); ^ 5 errors generated. *** Error code 1 If I comment out #options ATKBD_DFLT_KEYMAP # specify the built-in keymap #makeoptions ATKBD_DFLT_KEYMAP=fr.acc then it compiles fine. -- You are receiving this mail because: You are the assignee for the bug.