In file included from emuMB.c:37: evdev.h:37:25: error: xorg-server.h: No such file or directory evdev.h:38:24: error: xf86Xinput.h: No such file or directory evdev.h:39:25: error: xf86_OSproc.h: No such file or directory evdev.h:40:20: error: xkbstr.h: No such file or directory evdev.h:75:18: error: missing binary operator before token "(" evdev.h:84:18: error: missing binary operator before token "(" In file included from emuMB.c:37: evdev.h:122: warning: implicit declaration of function ‘max’ evdev.h:122: error: variably modified ‘axis_map’ at file scope evdev.h:129: error: expected specifier-qualifier-list before ‘BOOL’ evdev.h:137:18: error: missing binary operator before token "(" Most or even all packages from x11-drivers/ are missing a lot build depends, which are some of: x11-proto/trapproto-3.4.3 x11-proto/bigreqsproto-1.1.1 x11-proto/dri2proto-2.3 x11-proto/xf86driproto-2.1.0 x11-proto/xf86rushproto-1.1.2 x11-proto/glproto-1.4.12 x11-proto/xcmiscproto-1.2.1 After 'emerge -1vb --onlydeps xorg-server' packages build fine. Most likely it should be fixed in xorg-2.eclass.
With x11-base/xorg-proto it is not possible for this to occur anymore.