Home » Uncategorized » new xorg-server-1.13.0-r1 & evdev compile error

new xorg-server-1.13.0-r1 & evdev compile error

after update xorg, my mouse, keyboard doesn’t worked anymore on xorg.
so i have to re-compile input device like evdev, keyboard, mouse driver.

# emerge -av1 $(qlist -IC x11-drivers)

Calculating dependencies… done!
[ebuild R ] x11-drivers/xf86-input-evdev-2.7.3 0 kB
[ebuild R ] x11-drivers/xf86-input-keyboard-1.6.2 0 kB
[ebuild R ] x11-drivers/xf86-input-mouse-1.8.1 0 kB

xf86-input-evdev compile failed, i think it is caused by my newest kernel 3.7-rc6.

then, try to disable check macro, it will compile evdev properly.

# vim /usr/include/xorg/xf86str.h +365

/* Tolerate prior #include */
– #if defined(linux) && defined(_INPUT_H)
#undef BUS_NONE
#undef BUS_PCI
#undef BUS_SBUS
#undef BUS_last
– #endif

typedef enum {
BUS_last /* Keep last */
} BusType;


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s