Bug 130508 - xorg-x11-6.9.0 compile error with linux-headers-2.6.16
Bug#: 130508 Product:  Gentoo Linux Version: unspecified Platform: x86
OS/Version: Linux Status: RESOLVED Severity: normal Priority: P2
Resolution: FIXED Assigned To: plasmaroo@gentoo.org Reported By: martin.k@wp.pl
Component: Server
URL: 
Summary: xorg-x11-6.9.0 compile error with linux-headers-2.6.16
Keywords:  
Status Whiteboard: 
Opened: 2006-04-19 12:06 0000
Description:   Opened: 2006-04-19 12:06 0000
While emerging xorg-x11-6.9.0 it crashes with:

DX_BYTE_ORDER=X_LITTLE_ENDIAN                          
-DXORG_VERSION_CURRENT="(((6) * 10000000) + ((9) * 100000) + ((0) * 1000) + 0)"
-DNDEBUG   -DFUNCPROTO=15 -DNARROWPROTO   -DHAS_MTRR_SUPPORT -DUSESTDRES 
-DDO_OS_FONTRESTORE -DCHECK_OS_VERSION=1 -DHAVE_SYSV_IPC   lnx_KbdMap.c 
In file included from /usr/include/linux/bitops.h:77, 
                 from /usr/include/asm/cpufeature.h:10, 
                 from /usr/include/asm/processor.h:18, 
                 from /usr/include/linux/prefetch.h:15, 
                 from /usr/include/linux/list.h:5, 
                 from /usr/include/linux/wait.h:21, 
                 from /usr/include/linux/keyboard.h:20, 
                 from lnx_KbdMap.c:111: 
/usr/include/asm/bitops.h:250: error: syntax error before "int" 
In file included from /usr/include/linux/wait.h:25, 
                 from /usr/include/linux/keyboard.h:20, 
                 from lnx_KbdMap.c:111: 
/usr/include/asm/current.h:8: error: syntax error before "struct" 
make[7]: *** [lnx_KbdMap.o] Błąd 1 
make[7]: Leaving directory
`/var/tmp/portage/xorg-x11-6.9.0/work/xc/programs/Xserver/hw/xfree86/os-support/linux' 
make[6]: *** [linux] Błąd 2 
make[6]: Leaving directory
`/var/tmp/portage/xorg-x11-6.9.0/work/xc/programs/Xserver/hw/xfree86/os-support' 
make[5]: *** [all] Błąd 2 
make[5]: Leaving directory
`/var/tmp/portage/xorg-x11-6.9.0/work/xc/programs/Xserver/hw/xfree86' 
make[4]: *** [hw/xfree86] Błąd 2 
make[4]: Leaving directory
`/var/tmp/portage/xorg-x11-6.9.0/work/xc/programs/Xserver' 
make[3]: *** [all] Błąd 2 
make[3]: Leaving directory `/var/tmp/portage/xorg-x11-6.9.0/work/xc/programs' 
make[2]: *** [all] Błąd 2 
make[2]: Leaving directory `/var/tmp/portage/xorg-x11-6.9.0/work/xc' 
make[1]: *** [World] Błąd 2 
make[1]: Leaving directory `/var/tmp/portage/xorg-x11-6.9.0/work/xc' 
make: *** [World] Błąd 2 

!!! ERROR: x11-base/xorg-x11-6.9.0 failed. 
Call stack: 
  ebuild.sh, line 1525:   Called dyn_compile 
  ebuild.sh, line 928:   Called src_compile 
  xorg-x11-6.9.0.ebuild, line 153:   Called build 
  xorg-x11-6.9.0.ebuild, line 933:   Called die

emerge --info goes here:

Portage 2.1_pre9-r1 (default-linux/x86/2005.1, gcc-3.4.5, glibc-2.3.6-r3,
2.6.16-ck6 i686)
=================================================================
System uname: 2.6.16-ck6 i686 AMD Athlon(tm) XP 2400+
Gentoo Base System version 1.12.0_pre17
ccache version 2.4 [enabled]
dev-lang/python:     2.3.5-r2, 2.4.2-r1
sys-apps/sandbox:    1.2.11
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.16.1-r1, 2.16.1-r2
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.16
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=athlon-xp -fomit-frame-pointer -pipe -msse -mmmx -m3dnow
-ftracer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.5/env
/usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/3/share/config
/usr/lib/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/eselect/compiler /etc/gconf /etc/revdep-rebuild
/etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -march=athlon-xp -pipe -msse -mmmx -m3dnow
-fvisibility-inlines-hidden"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache digest distlocks metadata-transfer parallel-fetch
sandbox sfperms strict userpriv usersandbox"
GENTOO_MIRRORS="http://distfiles.gentoo.org
http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="pl_PL"
LDFLAGS="-Wl,-O1 -Wl,--sort-common"
LINGUAS="pl en"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage /home/marcin/bmg-main"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 3dnow 3dnowext 7zip X a52 aac alsa apache2 apm arts artswrappersuid
asf avi berkdb bitmap-fonts bzip2 cairo cli crypt cups dga directfb dri dts dvd
eds emboss encode fbcon ffmpeg flac font-server foomaticdb fortran gd gdbm gif
glitz gpm graphviz gstreamer gtk gtk2 hal imagemagick imlib ipv6 isdnlog
javascript jpeg kde kdeenablefinal lcms libg++ libwww mad mikmod mmx motif mp3
mpeg musicbrainz mysql nas ncurses nls nptl nptlonly nvidia odbc ogg oggvorbis
opengl oss pam pcre pdf pdflib perl png postgres povray pppd python qt
quicktime readline reflection scaner sdl session spell spl sqlite sse ssl svg
svga sysfs tcpd theora threads tiff truetype truetype-fonts type1-fonts urandom
usb vcd vorbis win32codecs wmf xcomposite xine xml xml2 xprint xscreensaver xv
xvid xvmc zlib elibc_glibc kernel_linux linguas_pl linguas_en userland_GNU"
Unset:  ASFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL

------- Comment #1 From Tim Yamin (RETIRED) 2006-04-19 14:55:57 0000 -------
Created an attachment (id=84982) [details]
Patch

Please try this patch on /usr/include/linux, should fix.

------- Comment #2 From Marcin Kaczmarek 2006-04-20 10:01:13 0000 -------
The above patch fixes errors.
Marking this bug as fixed.

------- Comment #3 From Marcin Kaczmarek 2006-04-21 00:16:26 0000 -------
Reopening the bug untill the patch for linux-headers hits the portage

------- Comment #4 From Tim Yamin (RETIRED) 2006-05-26 08:01:37 0000 -------
Fixed in 2.6.16-3.