Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 139973 - xorg-server-1.1.1 fails with error in linux/compat.h
Summary: xorg-server-1.1.1 fails with error in linux/compat.h
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Tim Yamin (RETIRED)
URL:
Whiteboard:
Keywords:
: 140679 (view as bug list)
Depends on:
Blocks:
 
Reported: 2006-07-11 02:44 UTC by Vincent Schut
Modified: 2006-08-25 04:22 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Vincent Schut 2006-07-11 02:44:46 UTC
trying to compile xorg-server-1.1.1, but fails with the following (apparently linux-headers related?) error when I enable kdrive in my use flags.

if 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/kdrive/src -I../../../miext/damage -I../../../miext/shadow -I../../../Xext -I../../../fb -I../../../mi -I../../../hw/kdrive/linux -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  -DHAVE_KDRIVE_CONFIG_H   -DHAVE_DIX_CONFIG_H -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  -march=k8 -O2 -pipe -fomit-frame-pointer -MT kmap.o -MD -MP -MF ".deps/kmap.Tpo" -c -o kmap.o kmap.c; \
then mv -f ".deps/kmap.Tpo" ".deps/kmap.Po"; else rm -f ".deps/kmap.Tpo"; exit 1; fi
In file included from /usr/include/asm-x86_64/mtrr.h:28,
                 from /usr/include/asm/mtrr.h:8,
                 from kmap.c:33:
/usr/include/linux/compat.h:165: error: expected ')' before '*' token
/usr/include/linux/compat.h:166: error: expected declaration specifiers or '...' before 'siginfo_t'
kmap.c: In function 'KdSetMappedMode':
kmap.c:139: warning: format '%x' expects type 'unsigned int', but argument 2 has type 'long unsigned int'
kmap.c:139: warning: format '%x' expects type 'unsigned int', but argument 3 has type 'long unsigned int'
kmap.c: In function 'KdResetMappedMode':
kmap.c:178: warning: format '%x' expects type 'unsigned int', but argument 2 has type 'long unsigned int'
kmap.c:178: warning: format '%x' expects type 'unsigned int', but argument 3 has type 'long unsigned int'
make[3]: *** [kmap.o] Error 1
make[3]: Leaving directory `/var/tmp/portage/xorg-server-1.1.1/work/xorg-server-1.1.1/hw/kdrive/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/xorg-server-1.1.1/work/xorg-server-1.1.1/hw/kdrive'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/xorg-server-1.1.1/work/xorg-server-1.1.1/hw'
make: *** [all-recursive] Error 1

!!! ERROR: x11-base/xorg-server-1.1.1 failed.
Call stack:
  ebuild.sh, line 1545:   Called dyn_compile
  ebuild.sh, line 940:   Called src_compile
  ebuild.sh, line 1254:   Called x-modular_src_compile
  x-modular.eclass, line 327:   Called x-modular_src_make
  x-modular.eclass, line 322:   Called die

Portage 2.1.1_pre2-r2 (default-linux/amd64/2006.0, gcc-4.1.1, glibc-2.3.6-r4, 2.6.17-gentoo-r1 x86_64)

platform: amd64
gcc: 4.1.1
linux-headers: 2.6.16
xorg-server emerge flags:
[ebuild     U ] x11-base/xorg-server-1.1.1 [1.1.0-r1] USE="dri ipv6 kdrive* nptl sdl xorg xprint* -debug -dmx -minimal" INPUT_DEVICES="keyboard mouse -acecad -aiptek -calcomp -citron -digitaledge -dmc -dynapro -elo2300 -elographics -evdev -fpit -hyperpen -jamstudio -joystick -magellan -microtouch -mutouch -palmax -penmount -spaceorb -summa -synaptics -tek4957 -ur98 -vmmouse -void -wacom" VIDEO_CARDS="radeon vga -apm -ark -chips -cirrus -cyrix -dummy -epson -fbdev -glint -i128 -i810 -mach64 -mga -neomagic -nv -r128 -rendition -s3 -s3virge -savage -siliconmotion -sis -sisusb -tdfx -tga -trident -tseng -v4l -vesa* -via -vmware -voodoo" 0 kB

videocard: ATI Radeon RV100 QY [Radeon 7000/VE]

I tried several versions of linux-headers (downgrading to stable, upgrading to -*), without success (I did recompile glibc each time afterwards, which makes this an anoying experiment because that takes pretty much time...). I played with the idea to unmerge linux-headers and symlink /usr/src/linux/include to /usr/include, but did not really dare to do so. Would that be a safe action? I have always thought it a bit strange for a distro like gentoo, where everyone compiles its own kernel so should have correct kernel headers in /usr/src/linux/include, to provide a separate linux-headers ebuild...
Comment 1 Donnie Berkholz (RETIRED) gentoo-dev 2006-07-11 11:15:02 UTC
Please supply your `emerge --info` output.
Comment 2 Patrick Fourniols 2006-07-11 16:20:11 UTC
idem but have linux-headers-2.6.17 perhaps the pb my info:

Portage 2.1.1_pre2-r7 (default-linux/amd64/2006.0, gcc-4.1.1/amd64-vanilla, glibc-2.4-r3, 2.6.17-gentoo-r2 x86_64)
=================================================================
                       System Settings
=================================================================
System uname: 2.6.17-gentoo-r2 x86_64 AMD Athlon(tm) 64 Processor 3000+
Gentoo Base System version 1.12.1
app-admin/eselect-compiler: 2.0.0_rc2-r1
dev-lang/python:     2.4.3-r1
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     [Not Present]
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.60
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.17
sys-devel/gcc-config: 2.0.0_rc1
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17
ACCEPT_KEYWORDS="amd64 ~amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-mtune=k8 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config /var/bind"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/eselect/compiler /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/texmf/web2c"
CXXFLAGS="-mtune=k8 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks fixpackages metadata-transfer parallel-fetch sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="fr_FR@euro"
LINGUAS="fr"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="amd64 X X509 a52 aac acpi alsa apache2 apm applet arts artworkextra asterisk async automount avi bash-completion batch bdf berkdb bidi bind-mysql bitmap-fonts bluetooth bonobo buffysize bzip2 cairo calendar cdparanoia cdr chroot clamav clamd cli cpudetection crypt cups curl dbase directfb dlloader dri dv dvd dvdr dvdread dynagraph eds emboss emul-linux-x86 encode esd evo exif fat fbcon fbsplash ffmpeg firefox flac font-server foomaticdb fortran fusion gb gif gimp glibc-compat20 glibc-omitfp glut gmp gnome gnome-print gnomecanvas gnomedb gpgme gphoto2 gpm graphviz gs gstreamer gtk gtk2 gtkhtml guile hal hfs hpn icq idn ieee1394 imagemagick imap imlib imlib2 innodb insecure-savers iodbc iproute2 ipv6 irmc isdnlog jack java javascript joystick jpeg kde kdeenablefinal lcms ldap libclamav libgda live lm_sensors logrotate lzw lzw-tiff mad maildir math mbrola mdb mime mng mozcalendar mozsvg mp3 mp4live mpeg mpeg2 mplayer msn msnextras mysql mysqli nas ncurses nfs nls nntp nocardbus nonfsv4 nptl nptlonly nsplugin ntfs ntlm numeric nvidia odbc ofx ogg opengl pam pcre pda pdf pdflib perl php png pop postfix ppds pppd python qt qt3 qt4 quicktime quotes readline reflection rhythmbox samba sasl scanner sdl seamonkey sensord server session sftplogging smime sms sndfile snmp speedo speex spell spl ssl subtitles svg swat symlink sysfs syslog tcltk tcpd thesaurus tiff toolbar tos truetype-fonts type1-fonts udev ups usb userlocales v4l v4l2 vcd videos virus-scan vorbis wifi wordperfect xbase xchat xfs xine xml2 xmms xorg xosd xpm xprint xscreensaver xv xvid xvmc zeo zlib elibc_glibc input_devices_keyboard input_devices_mouse kernel_linux linguas_fr userland_GNU video_cards_nv video_cards_fbdev video_cards_vesa"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LDFLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 3 Vincent Schut 2006-07-12 00:02:59 UTC
(In reply to comment #1)
> Please supply your `emerge --info` output.
> 

Yes, sorry about that. I had added it to my initial report, but then the page complained that the report text was too long, so I decided to skip the emerge --info part. Meant to add it later, but forgot. Anyway, here comes:

emerge --info
Portage 2.1.1_pre2-r6 (default-linux/amd64/2006.0, gcc-4.1.1, glibc-2.3.6-r4, 2.6.17-gentoo-r1 x86_64)
=================================================================
System uname: 2.6.17-gentoo-r1 x86_64 AMD Athlon(tm) 64 Processor 3200+
Gentoo Base System version 1.12.1
app-admin/eselect-compiler: [Not Present]
dev-lang/python:     2.3.4, 2.4.3-r1
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     [Not Present]
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.17
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-r2
sys-devel/binutils:  2.16.1-r3
sys-devel/gcc-config: 1.3.13-r3
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.16
ACCEPT_KEYWORDS="amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=k8 -O2 -pipe -fomit-frame-pointer"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /opt/openjms/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/lib64/mozilla/defaults/pref /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c"
CXXFLAGS="-march=k8 -O2 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer nostrip parallel-fetch sandbox sfperms strict"
GENTOO_MIRRORS="http://gentoo.intergenia.de http://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/ http://ftp.snt.utwente.nl/pub/os/linux/gentoo"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage /usr/portage/local/layman/science /usr/portage/local/layman/java-migration-packages /usr/portage/local/layman/java-experimental"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="amd64 X acpi alsa apache2 audiofile avi bash-completion berkdb bitmap-fonts blas bzip2 bzlib cairo cblas cdparanoia cdr cjk cli crypt cscope cups cvs dbase dbus dga directfb divx4linux djvu dlloader doc dri dv dvb dvd dvdr dvdread eds emacs emboss encode escreen etwin examples exif f2c f77 fame fbcon ffmpeg fftw firefox flac fontconfig foomaticdb fortran ftp gd gdal ggi gif gnome gnuplot gnutls gphoto2 gpm gps gs gtk gtk2 gtkhtml gvim hal howl icu imagemagick imap imlib ipv6 isdnlog jabber java javamail javascript jbig jms jmx jp2 jpeg jpeg2k kde kdeenablefinal kdrive lapack lcms libgda lm_sensors logitech-mouse lzw lzw-tiff mad maildir mbox mime mjpeg mng mono mozcalendar mozdevelop mozilla mozsvg mp3 mpeg mpi mysql ncurses netcdf nfs nls no-seamonkey nptl nsplugin odbc oggvorbis opengl openntpd pam pcre pdf pdflib perl php plotutils png postgres ppds pppd python qt qt3 qt4 quicktime rdesktop readline reflection rle ruby samba sasl scanner sdl sensord session slang sndfile source sox spell spl sql ssl subversion svg szip tcltk tcpd tetex theora threads tidy tiff truetype truetype-fonts type1-fonts unicode usb utf8 v4l wmf wxgtk1 wxwindows xbase xine xml xml2 xmms xorg xpm xprint xscreensaver xv xvid zeroconf zlib elibc_glibc input_devices_keyboard input_devices_mouse kernel_linux userland_GNU video_cards_radeon video_cards_vga"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, MAKEOPTS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 4 Renaud Lepage 2006-08-04 06:27:21 UTC
I got the same problem.

Portage 2.1.1_pre4 (default-linux/amd64/2006.0, gcc-3.4.4/amd64-vanilla, glibc-2.4-r3, 2.6.18-rc1 x86_64)
=================================================================
System uname: 2.6.18-rc1 x86_64 AMD Turion(tm) 64 Mobile ML-34
Gentoo Base System version 1.12.1
app-admin/eselect-compiler: 2.0.0_rc2-r1
dev-lang/python:     2.4.3-r1
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     [Not Present]
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.60
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.17
sys-devel/gcc-config: 2.0.0_rc1
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17
ACCEPT_KEYWORDS="amd64 ~amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=athlon64 -O2 -pipe -msse3"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/eselect/compiler /etc/gconf /etc/java-config/vms/ /etc/terminfo"
CXXFLAGS="-march=athlon64 -O2 -pipe -msse3"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="amd64 7zip X a52 aac aalib acpi aim aimextras akode alias allegro alsa amarok amd amr amuled ao apache2 apm aqua_theme arts artswrappersuid aserve asf automount avahi avalon avantgo avi bahamut bash-completion bashlogger batch beep berkdb binary-drivers bind-mysql bitmap-fonts bittorrent bluetooth bmpx bookmarks boost branding buttons c++ cairo calendar carbone_theme cdda cddb cdinstall cdio cdr cdrom cdsound cgi checkpath chm chroot cjk cli crypt ctrlmenu cups cvs cvsgraph cxx daap daemon datadir dbase dbcp dbus dhcp dlloader dnd dri dvd dvdr dvdread editor eds emacs emacs-w3 emboss emul-linux-x86 encode epiphany escreen evolution ext-png ext-zlib firefox flac flash foomaticdb fortran fortran95 ftp fuse gaim gd gdm gif gimp gimpprint glitz glut gmail gmailtimestamps gnome gnome-print gnuplot gpm gstreamer gtk gtk2 gvim gzip h323 hal i8x0 icons iconv icq id3 ieee1394 imagemagick imap imlib inifile innodb insecure-savers ipod ipv6 irc isdnlog j2ee jabber jack java java-external javacomm javamail javascript jboss jfs jingle john joystick jpeg jpeg2k justify kcal kde kdepim kdgraphics kdm kdrive kexi ldap libcaca libedit libnotify libsamplerate libsexy libwww lirc lzw lzw-tiff matroska migemo mikmod mjpeg mod_irc mod_lisp mod_muc mod_pubsub mod_python modperl modplug mono mozcalendar mozdevelop moznocompose moznoirc moznomail moznoroaming mozsha1 mozsvg mozxmlterm mp3 mp4 mp4live mpeg mpeg2 mplayer mschap msdav msdfs msn msnextras mssql musepack music mysql mysqlfriends nautilus ncurses net netclient nethack neural nfs nls nntp no-helpbrowser nodrm nptl nptlonly nsplugin ogg oggvorbis opengl openntpd openssh openssl oscar pam pcmcia pcre pda pdf pdflib perforce perl php png pop pop3d pppd python qt qt3 qt4 quicktime rcp rdesktop readline recode reflection rpm samba scp screen sdl sdl-sound sendmail session spell spl ssl subtitles subversion svg svgz tcpd tetex tiff timidity tk truetype-fonts type1-fonts usb v4l v4l2 verbose vim vim-with-x vnc web webdav webservices wifi wordperfect wxwindows xine xinerama xml xmldoclet xmlreader xmlrpc xmlwriter xmms xorg xpm xv zlib elibc_glibc input_devices_keyboard input_devices_mouse input_devices_synaptics kernel_linux userland_GNU video_cards_fglrx video_cards_radeon video_cards_vesa video_cards_vga video_cards_v4l video_cards_vmware"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 5 Hans-Christian Armingeon 2006-08-13 08:49:39 UTC
Same error here:

if 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/kdrive/src -I../../../miext/damage -I../../../miext/shadow -I../../../Xext -I../../../fb -I../../../mi -I../../../hw/kdrive/linux -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  -DHAVE_KDRIVE_CONFIG_H   -DHAVE_DIX_CONFIG_H -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 -MT kinput.o -MD -MP -MF ".deps/kinput.Tpo" -c -o kinput.o kinput.c; \
        then mv -f ".deps/kinput.Tpo" ".deps/kinput.Po"; else rm -f ".deps/kinput.Tpo"; exit 1; fi
kinput.c: In function `KdInitInput':
kinput.c:621: warning: unused variable `zero1'
kinput.c:621: warning: unused variable `zero2'
if 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/kdrive/src -I../../../miext/damage -I../../../miext/shadow -I../../../Xext -I../../../fb -I../../../mi -I../../../hw/kdrive/linux -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  -DHAVE_KDRIVE_CONFIG_H   -DHAVE_DIX_CONFIG_H -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 -MT kmap.o -MD -MP -MF ".deps/kmap.Tpo" -c -o kmap.o kmap.c; \
        then mv -f ".deps/kmap.Tpo" ".deps/kmap.Po"; else rm -f ".deps/kmap.Tpo"; exit 1; fi
In file included from /usr/include/asm-x86_64/mtrr.h:28,
                 from /usr/include/asm/mtrr.h:8,
                 from kmap.c:33:
/usr/include/linux/compat.h:165: error: syntax error before '*' token
/usr/include/linux/compat.h:166: error: syntax error before "siginfo_t"
kmap.c: In function `KdSetMappedMode':
kmap.c:139: warning: unsigned int format, different type arg (arg 2)
kmap.c:139: warning: unsigned int format, different type arg (arg 3)
kmap.c: In function `KdResetMappedMode':
kmap.c:178: warning: unsigned int format, different type arg (arg 2)
kmap.c:178: warning: unsigned int format, different type arg (arg 3)
make[3]: *** [kmap.o] Error 1
make[3]: Leaving directory `/var/tmp/portage/xorg-server-1.1.1/work/xorg-server-1.1.1/hw/kdrive/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/xorg-server-1.1.1/work/xorg-server-1.1.1/hw/kdrive'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/xorg-server-1.1.1/work/xorg-server-1.1.1/hw'
make: *** [all-recursive] Error 1

!!! ERROR: x11-base/xorg-server-1.1.1 failed.
Call stack:
  ebuild.sh, line 1543:   Called dyn_compile
  ebuild.sh, line 938:   Called src_compile
  ebuild.sh, line 1252:   Called x-modular_src_compile
  x-modular.eclass, line 330:   Called x-modular_src_make
  x-modular.eclass, line 325:   Called die

!!! emake failed
!!! If you need support, post the topmost build error, and the call stack if relevant.
Comment 6 Hans-Christian Armingeon 2006-08-13 08:50:35 UTC
And my emerge info:

Portage 2.1.1_pre5 (default-linux/amd64/2005.1, gcc-3.4.6/amd64-vanilla, glibc-2.4-r3, 2.6.16.16-20060515.3-nosmp-xen0 x86_64)
=================================================================
System uname: 2.6.16.16-20060515.3-nosmp-xen0 x86_64 AMD Athlon(tm) 64 Processor 3400+
Gentoo Base System version 1.12.4
Last Sync: Sun, 13 Aug 2006 15:30:06 +0000
ccache version 2.4 [disabled]
app-admin/eselect-compiler: 2.0.0_rc2-r1
dev-lang/python:     2.3.5-r2, 2.4.3-r1
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.4-r2
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.60
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.16.1-r2, 2.17
sys-devel/gcc-config: 2.0.0_rc1
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.16
ACCEPT_KEYWORDS="amd64 ~amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/eselect/compiler /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c"
CXXFLAGS="-O2"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="ftp://ftp.server.whnetz/pub/mirrors/gentoo"
LINGUAS=""
MAKEOPTS="-j1"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="amd64 X X509 Xaw3d a52 aac aalib accessibility acl acpi adns aim aio alsa amr amrr aotuv apache2 applet ares arts artswrappersuid asf asterisk async atm audiofile authdaemond automount avahi avi bash-completion bash-completition bcp berkdb bidi big-tables bigpatch bindist binfilter bitmap-fonts bjam bl bluetooth bonobo bootsplash boundschecking bri browserplugin bzip2 cairo calendar caps cdb cddb cdparanoia cdr chroot clamav cle266 cli cluster command-args cpudetection crypt cscope cups curl curlwrappers customlog dbm dbus devfs26 dga directfb divx4linux djbfft dmi dmx dovecot-sasl dri dts dv dvb dvd dvdr dvdread dxr3 dynagraph dynamic ecc edl eds elf elibc_glibc emacs embedded emboss encode erandom esd ethereal evo examples exif expat exscalibar extensions extraengine f77 fam fame fastcgi fbcon festival ffmpeg fftw flac flash floppyboot florz follow-xff font-server foomaticdb fortran fpx freetds ftp gb gcj gd gdbm geometry ggi gif gimpprint gitsendemail glibc-compat20 glitz glut gmp gnokii gnome gnome-print gnutls gphoto2 gpm gps graphviz gs gsm gstreamer gtk gtk2 gtkhtml guile hal hash hnlyforhoneypots howl hpn i8x0 ibm icq idea idn ieee1394 ifp imagemagic imagemagick imap imlib innodb input_devices_acecad input_devices_aiptek input_devices_calcomp input_devices_citron input_devices_digitaledge input_devices_dmc input_devices_dynapro input_devices_elo2300 input_devices_elographics input_devices_evdev input_devices_fpit input_devices_hyperpen input_devices_jamstudio input_devices_joystick input_devices_keyboard input_devices_magellan input_devices_magictouch input_devices_microtouch input_devices_mouse input_devices_mutouch input_devices_palmax input_devices_penmount input_devices_spaceorb input_devices_summa input_devices_synaptics input_devices_tek4957 input_devices_ur98 input_devices_vmmouse input_devices_void input_devices_wacom insecure-drivers insecure-savers ipod iproute2 ipv6 irda isdnlog ithreads jabber jack jack-tmpfs java javascript jbig jikes joystick jpeg jpeg2k jumpplay justify kde kdrive kerberos kernel_linux keyscrub kig-scripting kqemu krb4 ladcca ladspa large-domain lcd lcm lcms ldap ldapsam leim lesstif libcaca libclamav libg++ libgda libsamplerate libwww lighttpd linuxthreads-tls live lnbsharing logitech-mouse logrotate logwatch lzo lzw lzw-tiff mad maildir mailwrapper makecheck matroska max-idx-128 mbox mbrola mcal md5sum memlimit mfd-rewrites mgetty mikmod missingatgentoo-xen mjpeg mmap mng modperl modplug module mono motif mozcalendar mozdevelop mozilla mozsha1 mozsvg mp3 mpeg mpi mplayer mpm-worker msn mudflap mule multicall multislot musepack musicbrainz mysql mythtv nagios-dns nagios-game nagios-ntp nagios-ping nagios-ssh nas ncurses neXt netboot netcdf nethack netjack network neural new-login nhc98 nis njb nls nntp no-helper nptl nptlonly nsplugin numeric nvram oav objc odbc offensive ogg oggvorbis on-the-fly-crypt onoe openexr opengl openntpd oscar oss overlays pam pam_chroot pam_console pam_timestamp parse-clocks passwordsave pccts pcre pcsc-lite pda pdflib perl pg-hier pg-intdatetime pg-vacuumdelay php pic plotutils png pnp portaudio posix postgres povray ppds pppd prelude pri profile pwdb pyste python qt qt3 qt4 quicktime quotas radius rc5 rcu rdesktop readline reflection resperl rpm rrdtool rtc ruby ruby18 samba sametime sample sasl savedconfig scanner screen script sdk sdl session sftplogging shorten sid silverxp skey slang slp smartcard sms smux sndfile snmp sockets socks5 sourcecaps sox speex spell spl sqlite sqlite3 srp srvdir ssl streamzap svg swat sysfs syslog sysvipc szip tcltk tcpd termcap-compat test tetex tga theora threads tidy tiff toolbar transcode truetype truetype-fonts type1-fonts ucs2 underscores unicode ups urandom usb user-homedirs userland_GNU userlocales v4l v4l2 vcd vda vfat vhosts video_cards_apm video_cards_ark video_cards_ati video_cards_chips video_cards_cirrus video_cards_cyrix video_cards_dummy video_cards_epson video_cards_fbdev video_cards_fglrx video_cards_glint video_cards_i128 video_cards_i810 video_cards_mach64 video_cards_mga video_cards_neomagic video_cards_nv video_cards_r128 video_cards_radeon video_cards_rendition video_cards_s3 video_cards_s3virge video_cards_savage video_cards_siliconmotion video_cards_sis video_cards_sisusb video_cards_tdfx video_cards_tga video_cards_trident video_cards_tseng video_cards_v4l video_cards_vesa video_cards_vga video_cards_via video_cards_vmware video_cards_voodoo vim-pager vim-with-x virtual-users visualization vmdbmysql vmdbpostgres vorbis webdav wifi winbind wma wmf wxwindows x264 xanim xcomposite xface xforms xine xinerama xinetd xml xml2 xmldoclet xmms xorg xosd xpm xprint xscreensaver xsl xv xvid xvmc yahoo yaz zaptel zeo zero-penalty-hit zeroconf zip zlib"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY


Johnny
Comment 7 Tim Yamin (RETIRED) gentoo-dev 2006-08-13 12:20:56 UTC
*** Bug 140679 has been marked as a duplicate of this bug. ***
Comment 8 Tim Yamin (RETIRED) gentoo-dev 2006-08-13 12:23:00 UTC
Fixed, emerge sync and (re)merge 2.6.17 headers; please reopen bug if problems persist. Thanks!
Comment 9 Volker Hemmann 2006-08-16 16:41:21 UTC
Hi,

I synced some hours ago, still the same error. I re-emerged the 2.6.17 headers but it dies:
 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 -march=k8 -O2 -ftracer -fpeel-loops -ftree-vectorize -frename-registers -floop-optimize2 -msse3 -pipe -MT lnx_video.lo -MD -MP -MF .deps/lnx_video.Tpo -c lnx_video.c  -fPIC -DPIC -o .libs/lnx_video.o
In file included from /usr/include/asm/processor.h:9,
                 from /usr/include/asm-x86_64/timex.h:15,
                 from /usr/include/asm/timex.h:9,
                 from /usr/include/linux/timex.h:62,
                 from /usr/include/linux/sched.h:12,
                 from /usr/include/asm-x86_64/compat.h:9,
                 from /usr/include/asm/compat.h:5,
                 from /usr/include/linux/compat.h:22,
                 from /usr/include/asm-x86_64/mtrr.h:29,
                 from /usr/include/asm/mtrr.h:9,
                 from lnx_video.c:51:
/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:9,
                 from /usr/include/linux/sched.h:21,
                 from /usr/include/asm-x86_64/compat.h:9,
                 from /usr/include/asm/compat.h:5,
                 from /usr/include/linux/compat.h:22,
                 from /usr/include/asm-x86_64/mtrr.h:29,
                 from /usr/include/asm/mtrr.h:9,
                 from lnx_video.c:51:
/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:33,
                 from /usr/include/asm-x86_64/compat.h:9,
                 from /usr/include/asm/compat.h:5,
                 from /usr/include/linux/compat.h:22,
                 from /usr/include/asm-x86_64/mtrr.h:29,
                 from /usr/include/asm/mtrr.h:9,
                 from lnx_video.c:51:
/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] Fehler 1
make[5]: Leaving directory `/mnt/portvar/var/tmp/portage/xorg-server-1.1.1/work/xorg-server-1.1.1/hw/xfree86/os-support/linux'
make[4]: *** [all-recursive] Fehler 1
make[4]: Leaving directory `/mnt/portvar/var/tmp/portage/xorg-server-1.1.1/work/xorg-server-1.1.1/hw/xfree86/os-support'
make[3]: *** [all-recursive] Fehler 1
make[3]: Leaving directory `/mnt/portvar/var/tmp/portage/xorg-server-1.1.1/work/xorg-server-1.1.1/hw/xfree86'
make[2]: *** [all] Fehler 2
make[2]: Leaving directory `/mnt/portvar/var/tmp/portage/xorg-server-1.1.1/work/xorg-server-1.1.1/hw/xfree86'
make[1]: *** [all-recursive] Fehler 1
make[1]: Leaving directory `/mnt/portvar/var/tmp/portage/xorg-server-1.1.1/work/xorg-server-1.1.1/hw'
make: *** [all-recursive] Fehler 1


Portage 2.1.1_pre5-r1 (default-linux/amd64/2005.1, gcc-4.1.1/amd64-vanilla, glibc-2.4.90.20060716-r0, 2.6.17.5 x86_64)
=================================================================
System uname: 2.6.17.5 x86_64 AMD Athlon(tm) 64 Processor 3200+
Gentoo Base System version 1.12.4
Last Sync: Wed, 16 Aug 2006 21:00:01 +0000
ccache version 2.4 [enabled]
app-admin/eselect-compiler: 2.0.0_rc2-r1
dev-lang/python:     2.3.5, 2.4.3-r1
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.4-r2
dev-util/confcache:  0.4.2-r1
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.60
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.17
sys-devel/gcc-config: 2.0.0_rc1
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17
ACCEPT_KEYWORDS="amd64 ~amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=k8 -O2 -fweb -ftracer -fpeel-loops -ftree-vectorize -frename-registers -floop-optimize2 -msse3 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/eselect/compiler /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-march=k8 -O2 -fweb -ftracer -fpeel-loops -ftree-vectorize -frename-registers -floop-optimize2 -msse3 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig candy ccache distlocks metadata-transfer parallel-fetch sandbox sfperms strict"
GENTOO_MIRRORS="ftp://ftp.tu-clausthal.de/pub/linux/gentoo/"
LC_ALL="de_DE@euro"
LINGUAS="de"
MAKEOPTS="-j1"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage /usr/portage/local/layman/portage-xgl /usr/portage/local/layman/nxsty-glibc"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="amd64 7zip S3TC X aac acpi aio alsa aotuv asf audiofile avi bash-completion berkdb bitmap-fonts bluetooth bzip2 cairo cdparanoia cdr cegui cg clamav cli cpudetection crypt css curl dio dlloader dnd double-precision dpms dri dv dvd dvdr dvdread elibc_glibc emul-linux-x86 encode expat experimental exscalibar fame ffmpeg fftw flac fortran gif gimp glitz glut glx gnokii gpm gtk gtk2 icq id3 imagemagick imlib input_devices_evdev input_devices_joystick input_devices_keyboard input_devices_mouse irmc isdnlog jabber java javascript joystick jp2 jpeg jpeg2k kde kdeenablefinal kdehiddenvisibility kdepim kdm kernel_linux kexi kipi kqemu lame lcms lesstif libwww linguas_de lm_sensors lzo lzw lzw-tiff mad matroska mime mjpeg mmap mng mp3 mpeg mpeg2 mplayer ncurses nls no-old-linux nocd nosendmail nowin nptl nptlonly nvidia offensive ogg opengl oscar pam pcre pdf pdflib perl pertty physfs player png pppd python qt3 qt4 quicktime rar readline reflection reiserfs rtc scanner sdl sendfile session sharedmem sms sndfile spell spl sqlite sse-filters ssl stencil-buffer subtitles svg sysfs szip tcpd tga theora threads tiff toolbar tools transcode truetype truetype-fonts type1 type1-fonts udev unicode usb userland_GNU userlocales v4l v4l2 vcd video_cards_none video_cards_nv video_cards_nvidia video_cards_v4l videos visualization vorbis webdav wmf xanim xcomposite xine xml2 xorg xpm xrandr xscreensaver xv xvid xvmc yv12 zlib zvbi"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LDFLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 10 Tim Yamin (RETIRED) gentoo-dev 2006-08-16 17:04:18 UTC
(In reply to comment #9)
> Hi,
> 
> I synced some hours ago, still the same error. I re-emerged the 2.6.17 headers
> but it dies:

Looks like the remerge didn't work -- check that linux-headers-2.6.17.ebuild has "PATCHES_V='3'" and that /usr/include/asm-x86_64/compat.h does *not* have a "#include <linux/sched.h>"...
Comment 11 Hans-Christian Armingeon 2006-08-20 13:07:05 UTC
please mark ~amd64 to fix this issue on amd64, too.

Johnny
Comment 12 Volker Hemmann 2006-08-25 04:22:08 UTC
Hi,

well it has PATCHES_V=3

and it does have #include <linux/sched.h>

both is true.... sync is a few days old. linux headers freshly reemerged. 
rsync and re-emerge again?