x11-base/xorg-server-1.5.0 fails to compile Reproducible: Always Steps to Reproduce: 1. emerge x11-base/xorg-server-1.5.0 2. 3. Actual Results: vm86.c: In function 'Vm86DoInterrupt': vm86.c:213: warning: too few arguments for format vm86.c:225: error: 'IF_MASK' undeclared (first use in this function) vm86.c:225: error: (Each undeclared identifier is reported only once vm86.c:225: error: for each function it appears in.) vm86.c:225: error: 'IOPL_MASK' undeclared (first use in this function) vm86.c: In function 'Vm86Debug': vm86.c:746: warning: format '%04lX' expects type 'long unsigned int', but argument 2 has type 'int' vm86.c:746: warning: format '%04lX' expects type 'long unsigned int', but argument 3 has type 'int' vm86.c:746: warning: format '%04lX' expects type 'long unsigned int', but argument 4 has type 'int' vm86.c:746: warning: format '%04lX' expects type 'long unsigned int', but argument 5 has type 'int' vm86.c:746: warning: format '%04lX' expects type 'long unsigned int', but argument 6 has type 'int' make[3]: *** [vm86.o] Error 1 make[3]: *** Waiting for unfinished jobs.... vbe.c: In function 'VbeSetPalette': vbe.c:439: warning: pointer targets in assignment differ in signedness vbe.c: In function 'VbeGetPalette': vbe.c:484: warning: pointer targets in assignment differ in signedness vbe.c: In function 'VbeDoInterrupt10': vbe.c:668: warning: format '%04X' expects type 'unsigned int', but argument 3 has type 'long int' vbe.c: In function 'VbeDoInterruptE6': vbe.c:704: warning: format '%04X' expects type 'unsigned int', but argument 3 has type 'long int' mv -f .deps/vbe.Tpo .deps/vbe.Po vesa.c: In function 'vesaReportMode': vesa.c:111: warning: too many arguments for format vesa.c: In function 'vesaComputeFramebufferMapping': vesa.c:916: warning: format '%x' expects type 'unsigned int', but argument 4 has type 'Pixel' vesa.c:916: warning: format '%x' expects type 'unsigned int', but argument 5 has type 'Pixel' vesa.c:916: warning: format '%x' expects type 'unsigned int', but argument 6 has type 'Pixel' mv -f .deps/vesa.Tpo .deps/vesa.Po make[3]: Leaving directory `/var/tmp/portage/x11-base/xorg-server-1.5.0/work/xorg-server-1.5.0/hw/kdrive/vesa' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/var/tmp/portage/x11-base/xorg-server-1.5.0/work/xorg-server-1.5.0/hw/kdrive' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/x11-base/xorg-server-1.5.0/work/xorg-server-1.5.0/hw' make: *** [all-recursive] Error 1 * * ERROR: x11-base/xorg-server-1.5.0 failed. * Call stack: * ebuild.sh, line 49: Called src_compile * environment, line 3114: Called x-modular_src_compile * environment, line 3912: Called x-modular_src_make * environment, line 3948: Called die * The specific snippet of code: * emake || die "emake failed" * The die message: * emake failed * * If you need support, post the topmost build error, and the call stack if relevant. * A complete build log is located at '/var/tmp/portage/x11-base/xorg-server-1.5.0/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/x11-base/xorg-server-1.5.0/temp/environment'. * Here is my emerge --info: Portage 2.2_rc8 (default-linux/x86/2007.0, gcc-4.3.1, glibc-2.8_p20080602-r0, 2.6.26-tuxonice i686) ================================================================= System uname: Linux-2.6.26-tuxonice-i686-Intel-R-_Core-TM-2_CPU_T5500_@_1.66GHz-with-glibc2.0 Timestamp of tree: Sat, 06 Sep 2008 22:36:23 +0000 distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled] ccache version 2.4 [enabled] app-shells/bash: 3.2_p39 dev-java/java-config: 1.3.7, 2.1.6-r1 dev-lang/python: 2.5.2-r7 dev-util/ccache: 2.4-r7 sys-apps/baselayout: 2.0.0 sys-apps/openrc: 0.2.5 sys-apps/sandbox: 1.2.18.1-r3 sys-devel/autoconf: 2.13, 2.62-r1 sys-devel/automake: 1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1-r1 sys-devel/binutils: 2.18-r3 sys-devel/gcc-config: 1.4.0-r4 sys-devel/libtool: 2.2.4 virtual/os-headers: 2.6.26 ACCEPT_KEYWORDS="x86" CBUILD="i686-pc-linux-gnu" CFLAGS="-O2 -march=i686 -pipe" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/4.0/env /usr/kde/4.0/share/config /usr/kde/4.0/shutdown /usr/kde/4.1/env /usr/kde/4.1/share/config /usr/kde/4.1/shutdown /usr/share/config /var/lib/hsqldb" CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d" CXXFLAGS="-O2 -march=i686 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="ccache distlocks parallel-fetch preserve-libs sandbox sfperms strict unmerge-orphans userfetch" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo" LDFLAGS="" LINGUAS="en pl uk be de" MAKEOPTS="-j3" PKGDIR="/usr/portage/packages" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="3dfx 3dnow 3dnowext 7zip X Xaw3d a52 aac aalib accessibility acl acpi adns alsa amarok amr amrnb amrr amrwb ao arts aspnet auto-completion autoipd automount avahi bash-completion bidi bluetooth branding bzip2 c++ cairo caps cddb cdparanoia cisco cli cpudetection cracklib crypt css cups curl cxx daap dbus dga directfb divx djvu docbook dot dri dts dv dvd dvdnav dvdr dvdread emovix enca encode exif fam fax fbcon ffmpeg firefox flac font-server fontconfig fortran ftp gd gdbm geoip ggi gif glib glitz gmail gmedia gpg2-experimental gphoto2 gpm gps gsm gtk hal html htmlhandbook http hyperestraier iconv icq idn imagemagick inotify ipod ipv6 ipw3945 isdnlog java javascript jpeg jpeg2k justify kde kdrive kerberos ladspa lame laptop latex libcaca libsamplerate libwww lilo live lm_sensors lzo mad matroska matrox mbrola md5sum mdnsresponder-compat midi mjpeg mmap mmx mmxext mng modplug monolithic-build moonlight motif mp2 mp3 mp4 mp4live mpeg mpeg2 mplayer msn mtp mudflap musepack musicbrainz mysql nas ncurses neXt net netbeans netboot network network-cron networking nfs nis nls nptl nptlonly nsplugin ntp nvidia nvram nvtv obex odbc ogg openal openct openexr opengl openmp openssh openvpn oss overlays pch pcmcia pcre pcsc-lite pda pdf perl picplayer plotutils plugins pmu png pppd pulseaudio python qt-static qt3 qt3support qt4 quicktime radio rar raw readline real realmedia reflection reiser4 reiserfs rss rtc rtf samba sasl scanner sdl session skey slang slp smartcard sndfile snmp socks5 speech speex spell spl sql sqlite sqlite3 srt sse sse2 ssl ssse3startup-notification svg svga tcpd tetex tga theora threads tiff timidity tk tools truetype unicode usb v4l v4l2 vcd vidix visualization vorbis wav wavpack wifi win32codecs wma wmf wmp wxwindows x264 x86 xanim xcb xcomposite xine xinerama xml xorg xpm xprint xulrunner xv xvid xvmc yv12 zeroconf zip zlib" ALSA_CARDS="hda-intel" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear metermulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CAMERAS="nikon" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en pl uk be de" USERLAND="GNU" VIDEO_CARDS="nvidia nv vesa" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Created attachment 164764 [details] complete build log
Created attachment 164765 [details] ebuild environment file
Isn't this the same problem as bug #235599 (linux-headers-2.6.26 and dev-libs/libx86)? I guess I will face the same problem in the afternoon as soon as my xorg-server-1.5 gets to be compiled :-)
And bug #235455 (read-edid & linux-headers) ...
This bug will only be hit when you build xorg-server with the kdrive-USE-flag enabled. When you don't need it you could try disabling it - then xorg-server should build (just did it on my computer ;-) ).
Thanks for the tip. xorg compiles fine without kdrive use-flag
I was surprised that I didn't have problem compiling xorg-server, but actually I don't use "kdrive". Now I'm surprised that my KDE environment is unusable, it starts with 1 desktop, window decoration for some windows is missing, and finally the computer freezes during the KDE startup (rebuilding qt and kdelibs didn't help, I have to probably rebuild all installed kde-base/). I use fvwm for now. But this is little bit off-topic. So I just confirm that the compilation works for me, I don't use "kdrive".
Thanks for confirming this. Updating summary
This here looks like bug 235575 which has been duped to bug 235789 which in turn mentions a fix from bug 235310 comment 6. That fix is for read-edid, though, and porting it to xorg-server will take a bit of work. According to Google Code Search, IF_MASK should have a value of 0x200 and IOPL_MASK of 0x3000. Both are present in some versions of a linux header file called vm86.h. The file hw/xfree86/int10/xf86int10.h in the xorg source tree seems to contain similar definitions called X86_IF_MASK and X86_IOPL_MASK. So I think we should get kdrive to include that file and use those constants.
*** This bug has been marked as a duplicate of bug 235789 ***