attempted to compile s3switch for my new laptop and ended in a bunch of missing header includes. Reproducible: Always Steps to Reproduce: 1.emerge s3switch 2. 3. Actual Results: emerge s3switch Calculating dependencies... done! >>> Emerging (1 of 1) sys-apps/s3switch-19990826 to / * s3ssrc.zip MD5 ;-) ... [ ok ] * s3ssrc.zip RMD160 ;-) ... [ ok ] * s3ssrc.zip SHA1 ;-) ... [ ok ] * s3ssrc.zip SHA256 ;-) ... [ ok ] * s3ssrc.zip size ;-) ... [ ok ] * checking ebuild checksums ;-) ... [ ok ] * checking auxfile checksums ;-) ... [ ok ] * checking miscfile checksums ;-) ... [ ok ] * checking s3ssrc.zip ;-) ... [ ok ] >>> Unpacking source... >>> Unpacking s3ssrc.zip to /var/tmp/portage/sys-apps/s3switch-19990826/work >>> Source unpacked. >>> Compiling source in /var/tmp/portage/sys-apps/s3switch-19990826/work ... gcc -g -O2 -march=pentium3 -fomit-frame-pointer -pipe -c -o s3switch.o s3switch.c gcc -g -O2 -march=pentium3 -fomit-frame-pointer -pipe -c -o lrmi.o lrmi.c distcc[6593] ERROR: compile (null) on localhost failed s3switch.c:8:20: error: asm/io.h: No such file or directory s3switch.c: In function 'fetch_bios_data': s3switch.c:155: warning: incompatible implicit declaration of built-in function 'exit' s3switch.c: In function 'set_active_device': s3switch.c:218: warning: incompatible implicit declaration of built-in function 'memset' s3switch.c: In function 'set_tv_state': s3switch.c:257: warning: incompatible implicit declaration of built-in function 'memset' s3switch.c: In function 'set_new_state': s3switch.c:334: warning: incompatible implicit declaration of built-in function 'exit' s3switch.c: In function 'main': s3switch.c:400: warning: incompatible implicit declaration of built-in function 'exit' s3switch.c:428: warning: incompatible implicit declaration of built-in function 'exit' s3switch.c:434: warning: incompatible implicit declaration of built-in function 'exit' distcc[6591] ERROR: compile s3switch.c on localhost failed make: *** [s3switch.o] Error 1 make: *** Waiting for unfinished jobs.... !!! ERROR: sys-apps/s3switch-19990826 failed. Call stack: ebuild.sh, line 1614: Called dyn_compile ebuild.sh, line 971: Called qa_call 'src_compile' environment, line 1212: Called src_compile ebuild.sh, line 645: Called die !!! 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/sys-apps/s3switch-19990826/temp/build.log'. Expected Results: compile I did some research and found that one header was in a different place and two other necessary ones have changed since this was written. I will include a patch. emerge --info Portage 2.1.2-r9 (!/usr/portage/profiles/default-linux/x86/2006.1/desktop/, gcc-4.1.1, glibc-2.5-r0, 2.6.20-gentoo i686) ================================================================= System uname: 2.6.20-gentoo i686 Intel(R) Celeron(R) CPU 2.93GHz Gentoo Base System release 1.12.9 Timestamp of tree: Fri, 16 Feb 2007 08:50:01 +0000 distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled] ccache version 2.4 [enabled] dev-java/java-config: 1.3.7, 2.0.31-r3 dev-lang/python: 2.4.4 dev-python/pycrypto: 2.0.1-r5 dev-util/ccache: 2.4-r6 sys-apps/sandbox: 1.2.18.1 sys-devel/autoconf: 2.13, 2.61 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10 sys-devel/binutils: 2.17 sys-devel/gcc-config: 1.3.14 sys-devel/libtool: 1.5.22 virtual/os-headers: 2.6.20 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-O2 -march=pentium3 -fomit-frame-pointer -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/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" CXXFLAGS="-O2 -march=pentium3 -fomit-frame-pointer -pipe" DISTDIR="/mnt/nfs_portage/distfiles" FEATURES="autoconfig ccache distcc distlocks metadata-transfer sandbox sfperms strict" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo" MAKEOPTS="-j15" PKGDIR="/mnt/nfs_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="/mnt/nfs_portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://192.168.1.1/gentoo-portage" USE="X aac aalib acpi alsa audiofile berkdb bitmap-fonts bzip2 cairo cdparanoia cdr cli cracklib crypt cups dbus dlloader dri dvd dvdr dvdread eds emboss encode esd fam ffmpeg firefox fortran frontendonly gdbm gif gpm gstreamer hal iconv imagemagick isdnlog java jpeg kde ldap libg++ mad midi mikmod mmx mmx2 mmxext mp3 mpeg mplayer mysql mythtv ncurses nls nptl nptlonly nsplugin ogg openal opengl oss pam pcre pdf pdflib perl png ppds pppd python qt3 quicktime readline real reflection samba sdl session sockets spell spl sse ssl szip tcpd truetype truetype-fonts type1-fonts udev unicode usb vcd vorbis wifi win32codecs x x86 xine xml xorg xosd xv xvid zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="savage vesa" Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_RSYNC_EXTRA_OPTS
Created attachment 110443 [details, diff] patch to update s3switch.patch to compile with recent headers
Thanks a lot. Added this patch to my local overlay, since the package is already hardmasked and scheduled for removal. Dustin
WONTFIX, keep this in your overlay please.