Bug 122565 - svgalib 1.9.24 fails to emerge on 2.4 kernel
Bug#: 122565 Product:  Gentoo Linux Version: 2005.1 Platform: x86
OS/Version: Linux Status: RESOLVED Severity: normal Priority: P2
Resolution: FIXED Assigned To: vapier@gentoo.org Reported By: andre@terpstra.nu
Component: Ebuilds
URL: 
Summary: svgalib 1.9.24 fails to emerge on 2.4 kernel
Keywords:  
Status Whiteboard: 
Opened: 2006-02-12 08:22 0000
Description:   Opened: 2006-02-12 08:22 0000
AthenaGentoo ~ # emerge info
Portage 2.1_pre4-r1 (default-linux/x86/no-nptl/2.4, gcc-3.4.5, glibc-2.3.6-r2,
2.4.32-gentoo-r2 i686)
=================================================================
System uname: 2.4.32-gentoo-r2 i686 AMD Athlon(TM) XP 1800+
Gentoo Base System version 1.12.0_pre15
ccache version 2.4 [enabled]
dev-lang/python:     2.3.5-r2, 2.4.2-r1
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-r1
sys-devel/binutils:  2.16.1-r1
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.4.26-r1
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O3 -march=athlon-xp -mtune=athlon-xp -fforce-addr
-momit-leaf-frame-pointer -fomit-frame-pointer -ftracer -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config
/usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config
/var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O3 -march=athlon-xp -mtune=athlon-xp -fforce-addr
-momit-leaf-frame-pointer -fomit-frame-pointer -ftracer -pipe
-fvisibility-inlines-hidden"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig candy ccache distlocks sandbox sfperms strict"
GENTOO_MIRRORS="ftp://localhost/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://localhost/gentoo-portage"
USE="x86 3dnow 3dnowext X alsa apm artworkextra avi berkdb bitmap-fonts
browserplugin bzip2 cairo cdr crypt cups curl directfb doc dvd dvdr eds emboss
encode esd fbcon font-server foomaticdb fortran gdbm gif gnome gpm gstreamer
gtk gtk2 gtkhtml howl idn imlib insecure-savers ipv6 java javascript jpeg lcms
libg++ libwww mad mikmod mmx motif mozilla moznocompose moznoirc moznomail
moznoxft mozsvg mp3 mpeg ncurses nls nntp nsplugin offensive ogg opengl oss pam
pdflib perl png python quicktime readline samba sdl slp spell sse ssl svg svga
sysfs tcpd tiff truetype truetype-fonts type1-fonts usb userlocales vorbis xml
xml2 xmms xv zlib elibc_glibc kernel_linux userland_GNU video_cards_nvidia"
Unset:  ASFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, LANG, LC_ALL, LDFLAGS, LINGUAS

------- Comment #1 From André Terpstra 2006-02-12 08:23:59 0000 -------
Partial output of emerge command:

wrapdemo.c: In function `main':
wrapdemo.c:629: warning: `return' with no value, in function returning non-void
# chown root wrapdemo
# chmod u+s wrapdemo
make[1]: Leaving directory
`/var/tmp/portage/svgalib-1.9.24/work/svgalib-1.9.24/threeDKit'
 * Preparing svgalib_helper module
grep: /usr/src/linux/include/linux/device.h: No such file or directory
make -C /usr/src/linux
SUBDIRS=/var/tmp/portage/svgalib-1.9.24/work/svgalib-1.9.24/kernel/svgalib_helper
CLASS_CFLAGS= modules
make[1]: Entering directory `/usr/src/linux-2.4.32-gentoo-r2'
make -C 
/var/tmp/portage/svgalib-1.9.24/work/svgalib-1.9.24/kernel/svgalib_helper
CFLAGS="-D__KERNEL__ -I/usr/src/linux-2.4.32-gentoo-r2/include -Wall
-Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common
-fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=athlon-xp
-fno-unit-at-a-time -DMODULE -DMODVERSIONS -include
/usr/src/linux-2.4.32-gentoo-r2/include/linux/modversions.h" MAKING_MODULES=1
modules
grep: /usr/src/linux/include/linux/device.h: No such file or directory
make[2]: Entering directory
`/var/tmp/portage/svgalib-1.9.24/work/svgalib-1.9.24/kernel/svgalib_helper'
gcc -D__KERNEL__ -I/usr/src/linux-2.4.32-gentoo-r2/include -Wall
-Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common
-fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=athlon-xp
-fno-unit-at-a-time -DMODULE -DMODVERSIONS -include
/usr/src/linux-2.4.32-gentoo-r2/include/linux/modversions.h
-DSVGALIB_HELPER_MAJOR=209  -nostdinc -iwithprefix include
-DKBUILD_BASENAME=main  -c -o main.o main.c
gcc -D__KERNEL__ -I/usr/src/linux-2.4.32-gentoo-r2/include -Wall
-Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common
-fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=athlon-xp
-fno-unit-at-a-time -DMODULE -DMODVERSIONS -include
/usr/src/linux-2.4.32-gentoo-r2/include/linux/modversions.h
-DSVGALIB_HELPER_MAJOR=209  -nostdinc -iwithprefix include
-DKBUILD_BASENAME=i810  -c -o i810.o i810.c
gcc -D__KERNEL__ -I/usr/src/linux-2.4.32-gentoo-r2/include -Wall
-Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common
-fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=athlon-xp
-fno-unit-at-a-time -DMODULE -DMODVERSIONS -include
/usr/src/linux-2.4.32-gentoo-r2/include/linux/modversions.h
-DSVGALIB_HELPER_MAJOR=209  -nostdinc -iwithprefix include
-DKBUILD_BASENAME=interrupt  -c -o interrupt.o interrupt.c
gcc -D__KERNEL__ -I/usr/src/linux-2.4.32-gentoo-r2/include -Wall
-Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common
-fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=athlon-xp
-fno-unit-at-a-time -DMODULE -DMODVERSIONS -include
/usr/src/linux-2.4.32-gentoo-r2/include/linux/modversions.h
-DSVGALIB_HELPER_MAJOR=209  -nostdinc -iwithprefix include
-DKBUILD_BASENAME=virtual  -c -o virtual.o virtual.c
main.c:22:31: linux/thread_info.h: No such file or directory
main.c:28:28: linux/syscalls.h: No such file or directory
main.c: In function `init_module':
main.c:638: warning: implicit declaration of function `DEVFS_MK_SYMLINK'
gcc -D__KERNEL__ -I/usr/src/linux-2.4.32-gentoo-r2/include -Wall
-Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common
-fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=athlon-xp
-fno-unit-at-a-time -DMODULE -DMODVERSIONS -include
/usr/src/linux-2.4.32-gentoo-r2/include/linux/modversions.h
-DSVGALIB_HELPER_MAJOR=209  -nostdinc -iwithprefix include
-DKBUILD_BASENAME=displaystart  -c -o displaystart.o displaystart.c
make[2]: *** [main.o] Error 1
make[2]: *** Waiting for unfinished jobs....
displaystart.c: In function `set_displaystart':
displaystart.c:9: warning: unused variable `id'
make[2]: Leaving directory
`/var/tmp/portage/svgalib-1.9.24/work/svgalib-1.9.24/kernel/svgalib_helper'
make[1]: ***
[_mod_/var/tmp/portage/svgalib-1.9.24/work/svgalib-1.9.24/kernel/svgalib_helper]
Error 2
make[1]: Leaving directory `/usr/src/linux-2.4.32-gentoo-r2'
make: *** [default] Error 2

!!! ERROR: media-libs/svgalib-1.9.24 failed.
Call stack:
  ebuild.sh, line 1894:   Called dyn_compile
  ebuild.sh, line 941:   Called src_compile
  svgalib-1.9.24.ebuild, line 81:   Called linux-mod_src_compile

!!! Unable to make                                  KDIR=/usr/src/linux
default.
!!! If you need support, post the topmost build error, and the call stack if
relevant.

------- Comment #2 From SpanKY 2006-02-12 14:35:09 0000 -------
fixed in cvs