Bug 140679 - x11-base/xorg-server-1.1.1 fails w/ linux-headers-2.6.17
Bug#: 140679 Product:  Gentoo Linux Version: unspecified Platform: AMD64
OS/Version: Linux Status: RESOLVED Severity: normal Priority: P2
Resolution: DUPLICATE Assigned To: plasmaroo@gentoo.org Reported By: Patrick.Fourniols@wanadoo.fr
Component: Core system
URL: 
Summary: x11-base/xorg-server-1.1.1 fails w/ linux-headers-2.6.17
Keywords:  
Status Whiteboard: 
Opened: 2006-07-16 12:00 0000
Description:   Opened: 2006-07-16 12:00 0000
emerge xorg-server -pv

These are the packages that would be merged, in order:

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

Total size of downloads: 0 kB

during configure:

---snip---
checking asm/mtrr.h presence... yes
configure: WARNING: asm/mtrr.h: present but cannot be compiled
configure: WARNING: asm/mtrr.h:     check for missing prerequisite headers?
configure: WARNING: asm/mtrr.h: see the Autoconf documentation
configure: WARNING: asm/mtrr.h:     section Present But Cannot Be Compiled
configure: WARNING: asm/mtrr.h: proceeding with the preprocessor's result
configure: WARNING: asm/mtrr.h: in the future, the compiler will take
precedence
configure: WARNING:     ##
---------------------------------------------------------------------- ##
configure: WARNING:     ## Report this to
https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
configure: WARNING:     ##
---------------------------------------------------------------------- ##
---snip---

and the last error....

 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 -mtune=k8 -O2 -pipe -MT lnx_init.lo -MD
-MP -MF .deps/lnx_init.Tpo -c lnx_init.c  -fPIC -DPIC -o .libs/lnx_init.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'
In file included from /usr/include/linux/sched.h:38,
                 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/futex.h: At top level:
/usr/include/linux/futex.h:97: error: expected ')' before '*' token
make[5]: *** [lnx_video.lo] Erreur 1
make[5]: *** Attente des t

------- Comment #1 From Patrick Fourniols 2006-07-16 12:00:50 0000 -------
emerge xorg-server -pv

These are the packages that would be merged, in order:

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

Total size of downloads: 0 kB

during configure:

---snip---
checking asm/mtrr.h presence... yes
configure: WARNING: asm/mtrr.h: present but cannot be compiled
configure: WARNING: asm/mtrr.h:     check for missing prerequisite headers?
configure: WARNING: asm/mtrr.h: see the Autoconf documentation
configure: WARNING: asm/mtrr.h:     section Present But Cannot Be Compiled
configure: WARNING: asm/mtrr.h: proceeding with the preprocessor's result
configure: WARNING: asm/mtrr.h: in the future, the compiler will take
precedence
configure: WARNING:     ##
---------------------------------------------------------------------- ##
configure: WARNING:     ## Report this to
https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
configure: WARNING:     ##
---------------------------------------------------------------------- ##
---snip---

and the last error....

 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 -mtune=k8 -O2 -pipe -MT lnx_init.lo -MD
-MP -MF .deps/lnx_init.Tpo -c lnx_init.c  -fPIC -DPIC -o .libs/lnx_init.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'
In file included from /usr/include/linux/sched.h:38,
                 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/futex.h: At top level:
/usr/include/linux/futex.h:97: error: expected ')' before '*' token
make[5]: *** [lnx_video.lo] Erreur 1
make[5]: *** Attente des tâches non terminées....
make[5]: quittant le répertoire «
/var/tmp/portage/xorg-server-1.1.1/work/xorg-server-1.1.1/hw/xfree86/os-support/linux
»
make[4]: *** [all-recursive] Erreur 1
make[4]: quittant le répertoire «
/var/tmp/portage/xorg-server-1.1.1/work/xorg-server-1.1.1/hw/xfree86/os-support
»
make[3]: *** [all-recursive] Erreur 1
make[3]: quittant le répertoire «
/var/tmp/portage/xorg-server-1.1.1/work/xorg-server-1.1.1/hw/xfree86 »
make[2]: *** [all] Erreur 2
make[2]: quittant le répertoire «
/var/tmp/portage/xorg-server-1.1.1/work/xorg-server-1.1.1/hw/xfree86 »
make[1]: *** [all-recursive] Erreur 1
make[1]: quittant le répertoire «
/var/tmp/portage/xorg-server-1.1.1/work/xorg-server-1.1.1/hw »
make: *** [all-recursive] Erreur 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

!!! emake failed
!!! If you need support, post the topmost build error, and the call stack if
relevant.

if i want to rebuild old version (1.1.0-r1) same error occur ;)

------- Comment #2 From Patrick Fourniols 2006-07-16 12:01:57 0000 -------
because comments too long ;) part II
my --info 

Portage 2.1.1_pre3 (default-linux/amd64/2006.0, gcc-4.1.1/amd64-vanilla,
glibc-2.4-r3, 2.6.17-gentoo-r3 x86_64)
=================================================================
System uname: 2.6.17-gentoo-r3 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 mikmod 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 tk toolbar tos truetype-fonts type1-fonts udev ups usb
userlocales v4l v4l2 vcd videos virus-scan vorbis wifi wordperfect xbase xchat
xfs xine xmms xorg xosd xpm xprint xscreensaver xv xvid xvmc zeo zlib
elibc_glibc input_devices_keyboard input_devices_mouse input_devices_evdev
input_devices_joystick 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 From Tim Yamin (RETIRED) 2006-08-13 12:20:56 0000 -------

*** This bug has been marked as a duplicate of 139973 ***