Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 29 Dec 2017 14:15:16 -0500
From:      Shawn Webb <shawn.webb@hardenedbsd.org>
To:        freebsd-current@freebsd.org
Subject:   evdev broken
Message-ID:  <20171229191516.a4aooetcwrwqndxe@mutt-hbsd>

next in thread | raw e-mail | index | archive | help

--qjw2hjlnagpw6f6f
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

Hey All,

It looks like evdev support in the kernel is broken.
sys/dev/kbdmux/kbdmux.c contains various unresolved symbols to
different evdev-related symbols.

I have the following options in my kernel config:

options         EVDEV_SUPPORT
options         EVDEV_DEBUG
options         UINPUT_DEBUG

Here's the build failure log:

linking kernel.full                                                        =
                                                                           =
                                    =20
ld: error: undefined symbol: evdev_rcpt_mask                               =
                                                                           =
                                    =20
>>> referenced by kbdmux.c:1190 (/usr/src/sys/dev/kbdmux/kbdmux.c:1190)    =
                                                                           =
                                    =20
>>>               kbdmux.o:(kbdmux_init)                                   =
                                                                           =
                                    =20
                                                                           =
                                                                           =
                                    =20
ld: error: undefined symbol: evdev_push_leds                               =
                                                                           =
                                    =20
>>> referenced by kbdmux.c:1191 (/usr/src/sys/dev/kbdmux/kbdmux.c:1191)    =
                                                                           =
                                    =20
>>>               kbdmux.o:(kbdmux_init)                                   =
                                                                           =
                                    =20
                                                                           =
                                                                           =
                                    =20
ld: error: undefined symbol: evdev_alloc                                   =
                                                                           =
                                    =20
>>> referenced by kbdmux.c:492 (/usr/src/sys/dev/kbdmux/kbdmux.c:492)      =
                                                                           =
                                    =20
>>>               kbdmux.o:(kbdmux_init)

ld: error: undefined symbol: evdev_set_name=20
>>> referenced by kbdmux.c:493 (/usr/src/sys/dev/kbdmux/kbdmux.c:493)
>>>               kbdmux.o:(kbdmux_init)    =20

ld: error: undefined symbol: evdev_set_phys   =20
>>> referenced by kbdmux.c:495 (/usr/src/sys/dev/kbdmux/kbdmux.c:495)
>>>               kbdmux.o:(kbdmux_init)    =20

ld: error: undefined symbol: evdev_set_id                                  =
           =20
>>> referenced by kbdmux.c:496 (/usr/src/sys/dev/kbdmux/kbdmux.c:496)
>>>               kbdmux.o:(kbdmux_init)

ld: error: undefined symbol: evdev_set_methods              =20
>>> referenced by kbdmux.c:497 (/usr/src/sys/dev/kbdmux/kbdmux.c:497)
>>>               kbdmux.o:(kbdmux_init)
                                                            =20
ld: error: undefined symbol: evdev_support_event
>>> referenced by kbdmux.c:498 (/usr/src/sys/dev/kbdmux/kbdmux.c:498)
>>>               kbdmux.o:(kbdmux_init)
                           =20
ld: error: undefined symbol: evdev_support_event
>>> referenced by kbdmux.c:499 (/usr/src/sys/dev/kbdmux/kbdmux.c:499)
>>>               kbdmux.o:(kbdmux_init)
                  =20
ld: error: undefined symbol: evdev_support_event
>>> referenced by kbdmux.c:500 (/usr/src/sys/dev/kbdmux/kbdmux.c:500)
>>>               kbdmux.o:(kbdmux_init)
      =20
ld: error: undefined symbol: evdev_support_event
>>> referenced by kbdmux.c:501 (/usr/src/sys/dev/kbdmux/kbdmux.c:501)
>>>               kbdmux.o:(kbdmux_init)                                   =
                                                                           =
                                   =20
                                                                           =
                                                                    =20
ld: error: undefined symbol: evdev_support_all_known_keys
>>> referenced by kbdmux.c:502 (/usr/src/sys/dev/kbdmux/kbdmux.c:502)
>>>               kbdmux.o:(kbdmux_init)                            =20
                                                             =20
ld: error: undefined symbol: evdev_support_led
>>> referenced by kbdmux.c:503 (/usr/src/sys/dev/kbdmux/kbdmux.c:503)
>>>               kbdmux.o:(kbdmux_init)
                                                             =20
ld: error: undefined symbol: evdev_support_led
>>> referenced by kbdmux.c:504 (/usr/src/sys/dev/kbdmux/kbdmux.c:504)
>>>               kbdmux.o:(kbdmux_init)                                   =
                                                                           =
                                    =20
                                                                           =
                                                                           =
                                    =20
ld: error: undefined symbol: evdev_support_led
>>> referenced by kbdmux.c:505 (/usr/src/sys/dev/kbdmux/kbdmux.c:505)
>>>               kbdmux.o:(kbdmux_init)             =20

ld: error: undefined symbol: evdev_register                  =20
>>> referenced by kbdmux.c:507 (/usr/src/sys/dev/kbdmux/kbdmux.c:507)
>>>               kbdmux.o:(kbdmux_init)                     =20
                                                                           =
                                                                           =
                                    =20
ld: error: undefined symbol: evdev_free                                    =
                                                                           =
                                    =20
>>> referenced by kbdmux.c:508 (/usr/src/sys/dev/kbdmux/kbdmux.c:508)      =
                                                                           =
                                    =20
>>>               kbdmux.o:(kbdmux_init)                =20
                                            =20
ld: error: undefined symbol: evdev_free                                    =
                     =20
>>> referenced by kbdmux.c:583 (/usr/src/sys/dev/kbdmux/kbdmux.c:583)
>>>               kbdmux.o:(kbdmux_term)                     =20
                                 =20
ld: error: undefined symbol: evdev_rcpt_mask                 =20
>>> referenced by kbdmux.c:750 (/usr/src/sys/dev/kbdmux/kbdmux.c:750)      =
                                                                           =
                                    =20
>>>               kbdmux.o:(kbdmux_read_char)                              =
                                                                           =
                                    =20
                                                                           =
                                                                           =
                                    =20
ld: error: undefined symbol: evdev_scancode2key                            =
                                                                           =
                                    =20
>>> referenced by kbdmux.c:751 (/usr/src/sys/dev/kbdmux/kbdmux.c:751)      =
                                                                           =
                                    =20
>>>               kbdmux.o:(kbdmux_read_char)

Thanks,

--=20
Shawn Webb
Cofounder and Security Engineer
HardenedBSD

Tor-ified Signal:    +1 443-546-8752
GPG Key ID:          0x6A84658F52456EEE
GPG Key Fingerprint: 2ABA B6BD EF6A F486 BE89  3D9E 6A84 658F 5245 6EEE

--qjw2hjlnagpw6f6f
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----

iQIzBAEBCAAdFiEEKrq2ve9q9Ia+iT2eaoRlj1JFbu4FAlpGlEAACgkQaoRlj1JF
bu4T3A//caLqvj3mhJ2WijGdOYHs378wv3VCYD0z3eWXCrqNTdlQ6ueTwaDwpOnX
TKoPbYEyAyuvaaexJd0ZD3SRyvuvVwdU0cAu41LaYB3DfHedAWzR2vJLOrJoa9DD
fn3JY9N+0aAZeh4BO56geqickccBj7rR9p8g3ceEE7y63dHInvcZul8aqPNmef+2
4Il4ouEmuDJI5MsBVuwwWOQ4SjGMd1Aho7HYt2TAqMhCn60ZzC1DZPnWd7AY956S
arFtxJD7H8Xq9CpOCyHD7lBSbPEWB995xNn0S60qRCzSt9bVi7xheNit8lzGpxLm
/yKK9SIfNbSw3+L0J7n6nLd/kkyzQk+33+d+VKT3sdJeujN08l5Ox3eUxijAHJ3/
z7fD27RX+FSd9PnPGa9WwPcw37ev7WQ07N7UMzC5ur1Oo14KPKdiHrwYQeHhfOKq
dgEjnMQzqKaXByvv+4IrLxuBj7dRkXfjC+WAGhKu7USMyxxifFTUawel6pMvLXtw
877aQutpda3qRZ9EKLNSxrmHUCkaDoFJunEkXIXN/6akxm9yqez95qbb+KNLehZ6
jUDEdvMVyu0Wbjfqi+fT2lcnDrbjRzOelLRrDc9qLWg+RUok6zlhck+lEYXNfmz6
7yh+djCrqEM0STdI/PSyB2kktFJq7bjg/LI9NA8v58t3LeujalI=
=USCn
-----END PGP SIGNATURE-----

--qjw2hjlnagpw6f6f--



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