From owner-freebsd-bugs@freebsd.org Tue Feb 21 03:31:57 2017 Return-Path: Delivered-To: freebsd-bugs@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 3E583CE60A9 for ; Tue, 21 Feb 2017 03:31:57 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 15B0C137C for ; Tue, 21 Feb 2017 03:31:57 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id v1L3Vu7X022524 for ; Tue, 21 Feb 2017 03:31:56 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-bugs@FreeBSD.org Subject: [Bug 217260] [kbdmux] fails to compile with LINT on ^/stable/10 Date: Tue, 21 Feb 2017 03:31:57 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 10.3-STABLE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: lwhsu@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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.23 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 21 Feb 2017 03:31:57 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D217260 Li-Wen Hsu changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |bdrewery@FreeBSD.org --- Comment #1 from Li-Wen Hsu --- We had discussed this earlier, I cut off a section and paste here: > /workspace/src/sys/modules/kbdmux/../../dev/kbdmux/kbdmux.c:411:26: error= : use of undeclared identifier 'key_map'; did you mean 'keymap'? > keymap =3D malloc(sizeof(key_map), M_KBDMUX, M_NOWAIT); > ^~~~~~~ > keymap The error here is what happens when the header, kbdmuxmap.h, is empty. Note the error was not "no such file", but rather missing structures. I hit this issue when I added options KBDMUX_DFLT_KEYMAP to my kernel config but did not set a value for it. I see this was added by Ed in r297685. I'm guessing somehow the LINT build is not specifying a default value for KBDMUX_DFLT_KEYMAP... When I go into sys/amd64/conf and run 'make LINT' I do get KBDMUX_DFLT_KEYMAP=3Dit.iso in the LINT file. > kbdmuxmap.h: > kbdcontrol -P ${S:S/sys$/share/}/vt/keymaps -P ${S:S/sys$/share/}= /syscons/keymaps -L ${KBDMUX_DFLT_KEYMAP} | sed -e 's/^static keymap_t.* = =3D /static keymap_t key_map =3D /' -e 's/^static accentmap_t.* =3D /static= accentmap_t accent_map =3D /' > kbdmuxmap.h Perhaps this is failing and not creating a proper header file. > I have some new discovery, originally I built -CURRENT LINT on 10.3-R, > it failed no matter what parallelism or not. Then I change environment to > 11.0-BETA1 and it builds successfully, with or without parallelism: Does the 10.0 kbdcontrol support the -P/-L flags to generate this header? It may just need to be added as a build tool. --=20 You are receiving this mail because: You are the assignee for the bug.=