Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 21 Sep 2014 17:42:36 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-bugs@FreeBSD.org
Subject:   [Bug 193817] New: ATKBD_DFLT_KEYMAP causes buildkernel failure
Message-ID:  <bug-193817-8@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-193817-8>