x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I../../../../include -I../../../../include -I../../../../include -I../../../../include -I../../../../include -I../../../../include -I../../../../include -I../../../../include -I../../../../hw/xfree86 -I../../../../hw/xfree86/include -I../../../../hw/xfree86/common -I../../../../hw/xfree86/os-support -I../../../../hw/xfree86/os-support/bus -I../../../../os -I/usr/include/drm -DUSESTDRES -DHAVE_SYSV_IPC -DHAVE_XORG_CONFIG_H -DXF86PM -DHAVE_ACPI -DHAVE_APM -DXFree86Server -DXFree86LOADER -Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -fno-strict-aliasing -D_BSD_SOURCE -DHAS_FCHOWN -DHAS_STICKY_DIR_BIT -I../../../../include -I../../../../include -I../../../../Xext -I../../../../composite -I../../../../damageext -I../../../../xfixes -I../../../../Xi -I../../../../mi -I../../../../miext/shadow -I../../../../miext/damage -I../../../../render -I../../../../randr -I../../../../fb -O2 -march=k8 -pipe -g -c lnx_init.c -fPIC -DPIC -o .libs/lnx_init.o x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I../../../../include -I../../../../include -I../../../../include -I../../../../include -I../../../../include -I../../../../include -I../../../../include -I../../../../include -I../../../../hw/xfree86 -I../../../../hw/xfree86/include -I../../../../hw/xfree86/common -I../../../../hw/xfree86/os-support -I../../../../hw/xfree86/os-support/bus -I../../../../os -I/usr/include/drm -DUSESTDRES -DHAVE_SYSV_IPC -DHAVE_XORG_CONFIG_H -DXF86PM -DHAVE_ACPI -DHAVE_APM -DXFree86Server -DXFree86LOADER -Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -fno-strict-aliasing -D_BSD_SOURCE -DHAS_FCHOWN -DHAS_STICKY_DIR_BIT -I../../../../include -I../../../../include -I../../../../Xext -I../../../../composite -I../../../../damageext -I../../../../xfixes -I../../../../Xi -I../../../../mi -I../../../../miext/shadow -I../../../../miext/damage -I../../../../render -I../../../../randr -I../../../../fb -O2 -march=k8 -pipe -g -c lnx_video.c -fPIC -DPIC -o .libs/lnx_video.o /bin/sh ../../../../libtool --tag=CC --mode=compile x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I../../../../include -I../../../../include -I../../../../include -I../../../../include -I../../../../include -I../../../../include -I../../../../include -I../../../../include -I../../../../hw/xfree86 -I../../../../hw/xfree86/include -I../../../../hw/xfree86/common -I../../../../hw/xfree86/os-support -I../../../../hw/xfree86/os-support/bus -I../../../../os -I/usr/include/drm -DUSESTDRES -DHAVE_SYSV_IPC -DHAVE_XORG_CONFIG_H -DXF86PM -DHAVE_ACPI -DHAVE_APM -DXFree86Server -DXFree86LOADER -Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -fno-strict-aliasing -D_BSD_SOURCE -DHAS_FCHOWN -DHAS_STICKY_DIR_BIT -I../../../../include -I../../../../include -I../../../../Xext -I../../../../composite -I../../../../damageext -I../../../../xfixes -I../../../../Xi -I../../../../mi -I../../../../miext/shadow -I../../../../miext/damage -I../../../../render -I../../../../randr -I../../../../fb -O2 -march=k8 -pipe -g -c -o lnx_io.lo lnx_io.c x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I../../../../include -I../../../../include -I../../../../include -I../../../../include -I../../../../include -I../../../../include -I../../../../include -I../../../../include -I../../../../hw/xfree86 -I../../../../hw/xfree86/include -I../../../../hw/xfree86/common -I../../../../hw/xfree86/os-support -I../../../../hw/xfree86/os-support/bus -I../../../../os -I/usr/include/drm -DUSESTDRES -DHAVE_SYSV_IPC -DHAVE_XORG_CONFIG_H -DXF86PM -DHAVE_ACPI -DHAVE_APM -DXFree86Server -DXFree86LOADER -Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -fno-strict-aliasing -D_BSD_SOURCE -DHAS_FCHOWN -DHAS_STICKY_DIR_BIT -I../../../../include -I../../../../include -I../../../../Xext -I../../../../composite -I../../../../damageext -I../../../../xfixes -I../../../../Xi -I../../../../mi -I../../../../miext/shadow -I../../../../miext/damage -I../../../../render -I../../../../randr -I../../../../fb -O2 -march=k8 -pipe -g -c lnx_io.c -fPIC -DPIC -o .libs/lnx_io.o /bin/sh ../../../../libtool --tag=CC --mode=compile x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I../../../../include -I../../../../include -I../../../../include -I../../../../include -I../../../../include -I../../../../include -I../../../../include -I../../../../include -I../../../../hw/xfree86 -I../../../../hw/xfree86/include -I../../../../hw/xfree86/common -I../../../../hw/xfree86/os-support -I../../../../hw/xfree86/os-support/bus -I../../../../os -I/usr/include/drm -DUSESTDRES -DHAVE_SYSV_IPC -DHAVE_XORG_CONFIG_H -DXF86PM -DHAVE_ACPI -DHAVE_APM -DXFree86Server -DXFree86LOADER -Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -fno-strict-aliasing -D_BSD_SOURCE -DHAS_FCHOWN -DHAS_STICKY_DIR_BIT -I../../../../include -I../../../../include -I../../../../Xext -I../../../../composite -I../../../../damageext -I../../../../xfixes -I../../../../Xi -I../../../../mi -I../../../../miext/shadow -I../../../../miext/damage -I../../../../render -I../../../../randr -I../../../../fb -O2 -march=k8 -pipe -g -c -o lnx_kbd.lo lnx_kbd.c x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I../../../../include -I../../../../include -I../../../../include -I../../../../include -I../../../../include -I../../../../include -I../../../../include -I../../../../include -I../../../../hw/xfree86 -I../../../../hw/xfree86/include -I../../../../hw/xfree86/common -I../../../../hw/xfree86/os-support -I../../../../hw/xfree86/os-support/bus -I../../../../os -I/usr/include/drm -DUSESTDRES -DHAVE_SYSV_IPC -DHAVE_XORG_CONFIG_H -DXF86PM -DHAVE_ACPI -DHAVE_APM -DXFree86Server -DXFree86LOADER -Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -fno-strict-aliasing -D_BSD_SOURCE -DHAS_FCHOWN -DHAS_STICKY_DIR_BIT -I../../../../include -I../../../../include -I../../../../Xext -I../../../../composite -I../../../../damageext -I../../../../xfixes -I../../../../Xi -I../../../../mi -I../../../../miext/shadow -I../../../../miext/damage -I../../../../render -I../../../../randr -I../../../../fb -O2 -march=k8 -pipe -g -c lnx_kbd.c -fPIC -DPIC -o .libs/lnx_kbd.o In file included from /usr/include/asm/processor.h:8, from /usr/include/asm-x86_64/timex.h:14, from /usr/include/asm/timex.h:8, from /usr/include/linux/timex.h:61, from /usr/include/linux/sched.h:11, from /usr/include/asm-x86_64/compat.h:8, from /usr/include/asm/compat.h:4, from /usr/include/linux/compat.h:21, from /usr/include/asm-x86_64/mtrr.h:28, from /usr/include/asm/mtrr.h:8, from lnx_video.c:50: /usr/include/asm-x86_64/processor.h:70: error: expected specifier-qualifier-list before 'cpumask_t' In file included from /usr/include/asm/semaphore.h:8, from /usr/include/linux/sched.h:20, from /usr/include/asm-x86_64/compat.h:8, from /usr/include/asm/compat.h:4, from /usr/include/linux/compat.h:21, from /usr/include/asm-x86_64/mtrr.h:28, from /usr/include/asm/mtrr.h:8, from lnx_video.c:50: /usr/include/asm-x86_64/semaphore.h:47: error: expected specifier-qualifier-list before 'wait_queue_head_t' /usr/include/asm-x86_64/semaphore.h: In function 'sema_init': /usr/include/asm-x86_64/semaphore.h:73: error: 'struct semaphore' has no member named 'wait' In file included from /usr/include/linux/sched.h:32, from /usr/include/asm-x86_64/compat.h:8, from /usr/include/asm/compat.h:4, from /usr/include/linux/compat.h:21, from /usr/include/asm-x86_64/mtrr.h:28, from /usr/include/asm/mtrr.h:8, from lnx_video.c:50: /usr/include/linux/completion.h: At top level: /usr/include/linux/completion.h:15: error: expected specifier-qualifier-list before 'wait_queue_head_t' /usr/include/linux/completion.h: In function 'init_completion': /usr/include/linux/completion.h:27: error: 'struct completion' has no member named 'wait' make[5]: *** [lnx_video.lo] Error 1 make[5]: *** Waiting for unfinished jobs.... lnx_kbd.c: In function 'SetKbdRepeat': lnx_kbd.c:214: warning: unused variable 'valid_delays' lnx_kbd.c:208: warning: unused variable 'valid_rates' lnx_kbd.c:198: warning: unused variable 'value' lnx_kbd.c:197: warning: unused variable 'timeout' lnx_kbd.c:196: warning: unused variable 'i' make[5]: Leaving directory `/var/tmp/portage/vnc-4.1.2/work/vnc-4_1_2-unixsrc/unix/xorg-server-1.1.1/hw/xfree86/os-support/linux' make[4]: *** [all-recursive] Error 1 make[4]: Leaving directory `/var/tmp/portage/vnc-4.1.2/work/vnc-4_1_2-unixsrc/unix/xorg-server-1.1.1/hw/xfree86/os-support' make[3]: *** [all-recursive] Error 1 make[3]: Leaving directory `/var/tmp/portage/vnc-4.1.2/work/vnc-4_1_2-unixsrc/unix/xorg-server-1.1.1/hw/xfree86' make[2]: *** [all] Error 2 make[2]: Leaving directory `/var/tmp/portage/vnc-4.1.2/work/vnc-4_1_2-unixsrc/unix/xorg-server-1.1.1/hw/xfree86' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/vnc-4.1.2/work/vnc-4_1_2-unixsrc/unix/xorg-server-1.1.1/hw' make: *** [all-recursive] Error 1 !!! ERROR: net-misc/vnc-4.1.2 failed. Call stack: ebuild.sh, line 1543: Called dyn_compile ebuild.sh, line 938: Called src_compile vnc-4.1.2.ebuild, line 143: Called die