Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 115316 - svgalib fails with linux-2.6.15: too few arguments to function `class_device_create'
Summary: svgalib fails with linux-2.6.15: too few arguments to function `class_device_...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: SpanKY
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-12-12 08:45 UTC by Martin Mokrejš
Modified: 2006-01-04 08:13 UTC (History)
2 users (show)

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


Attachments
Updated ebuild (svgalib-1.9.21-r1.ebuild,4.47 KB, text/plain)
2006-01-03 01:31 UTC, Aquila
Details
Patch to fix compilation for 2.6.15 (svgalib-1.9.21-kernel2.6.15.patch,3.02 KB, patch)
2006-01-03 01:33 UTC, Aquila
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Mokrejš 2005-12-12 08:45:00 UTC
make[1]: Leaving directory
`/var/tmp/portage/svgalib-1.9.23/work/svgalib-1.9.23/threeDKit'
 * Preparing svgalib_helper module
make -C /usr/src/linux
SUBDIRS=/var/tmp/portage/svgalib-1.9.23/work/svgalib-1.9.23/kernel/svgalib_helper
CLASS_CFLAGS= modules
make[1]: Entering directory `/usr/src/linux-2.6.15-rc3'
  CC [M] 
/var/tmp/portage/svgalib-1.9.23/work/svgalib-1.9.23/kernel/svgalib_helper/main.o
/var/tmp/portage/svgalib-1.9.23/work/svgalib-1.9.23/kernel/svgalib_helper/main.c:
In function `init_module':
/var/tmp/portage/svgalib-1.9.23/work/svgalib-1.9.23/kernel/svgalib_helper/main.c:607:
warning: passing arg 2 of `class_device_create' makes pointer from integer
without a cast
/var/tmp/portage/svgalib-1.9.23/work/svgalib-1.9.23/kernel/svgalib_helper/main.c:607:
warning: passing arg 3 of `class_device_create' makes integer from pointer
without a cast
/var/tmp/portage/svgalib-1.9.23/work/svgalib-1.9.23/kernel/svgalib_helper/main.c:607:
warning: passing arg 4 of `class_device_create' from incompatible pointer type
/var/tmp/portage/svgalib-1.9.23/work/svgalib-1.9.23/kernel/svgalib_helper/main.c:607:
error: too few arguments to function `class_device_create'
/var/tmp/portage/svgalib-1.9.23/work/svgalib-1.9.23/kernel/svgalib_helper/main.c:655:
warning: passing arg 2 of `class_device_create' makes pointer from integer
without a cast
/var/tmp/portage/svgalib-1.9.23/work/svgalib-1.9.23/kernel/svgalib_helper/main.c:655:
warning: passing arg 3 of `class_device_create' makes integer from pointer
without a cast
/var/tmp/portage/svgalib-1.9.23/work/svgalib-1.9.23/kernel/svgalib_helper/main.c:655:
warning: passing arg 4 of `class_device_create' from incompatible pointer type
/var/tmp/portage/svgalib-1.9.23/work/svgalib-1.9.23/kernel/svgalib_helper/main.c:655:
error: too few arguments to function `class_device_create'
make[2]: ***
[/var/tmp/portage/svgalib-1.9.23/work/svgalib-1.9.23/kernel/svgalib_helper/main.o]
Error 1
make[1]: ***
[_module_/var/tmp/portage/svgalib-1.9.23/work/svgalib-1.9.23/kernel/svgalib_helper]
Error 2
make[1]: Leaving directory `/usr/src/linux-2.6.15-rc3'
make: *** [default] Error 2

!!! ERROR: media-libs/svgalib-1.9.23 failed.
!!! Function linux-mod_src_compile, Line 505, Exitcode 2
!!! Unable to make                                  KDIR=/usr/src/linux default.
!!! If you need support, post the topmost build error, NOT this status message.

# emerge info
Portage 2.0.53 (default-linux/x86/2005.0, gcc-3.4.4, glibc-2.3.5-r3, 2.6.15-rc5
i686)
=================================================================
System uname: 2.6.15-rc5 i686 Mobile Intel(R) Pentium(R) 4 - M CPU 1.80GHz
Gentoo Base System version 1.12.0_pre11
ccache version 2.4 [disabled]
dev-lang/python:     2.3.4-r1, 2.4.2
sys-apps/sandbox:    1.2.14
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.20-r1
virtual/os-headers:  2.6.11-r3
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=pentium4 -mmmx -msse -msse2 -fomit-frame-pointer -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /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/kde/3/share/config
/usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config /usr/spool/PBS
/var/bind /var/qmail/alias /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/texmf/web2c /etc/env.d"
CXXFLAGS="-O2 -mcpu=i686 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org
http://distro.ibiblio.org/pub/linux/distributions/gentoo"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 FFmpeg X Xaw3d aalib acl acpi alsa apache2 apm arts ati audiofile avi
bidi bitmap-fonts bonobo bzip2 caca cdparanoia cdr crypt cscope cups curl dba
dga directfb divx divx4 divx4linux divx5 divx5linux dvb dvd dvdr dvdread eds
emacs emacs-w3 emboss encode esd ethereal evo exif expat f77 faad faad2 fam fame
fbcon ffmpeg flac flash foomaticdb fortran fvwm fvwm2 gb gd gdbm ggi gif glut
gphoto2 gpm gstreamer gtk gtk2 gtkhtml i8x0 icc idn ifc imagemagick imlib imlib2
innodb ipv6 ithreads java jpeg junit lcms leim libg++ libwww live lzo mad mcal
mesa mhash mikmod ming mmx mmx2 mng motif mozilla mp3 mpeg mule mysql ncurses
network nls nptl ogg oggvorbis opengl oss pam pcre pda pdflib perl plotutils
plugin png ppds pthread pthreads python qt qtx quicktime readline recode rtc
samba scanner sdl slang slp spell sse sse2 ssl stroke svg svga tcltk tcpd tetex
theora thread threads tiff truetype truetype-fonts type1-fonts udev unicode usb
v4l v4l2 vorbis win32 winvidix wmf xine xml xml2 xmms xosd xv xvid xvmc zeo zlib
video_cards_radeon userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS, MAKEOPTS

#
Comment 1 Ulrich Plate (RETIRED) gentoo-dev 2005-12-20 03:32:26 UTC
Same error here, popped up during a `module-rebuild` after kernel upgrade to vanilla 2.6.15-rc5, emerge info follows:

Portage 2.1_pre1 (default-linux/x86/2005.1, gcc-3.4.4, glibc-2.3.5-r3, 2.6.15-rc5-ronin i686)
=================================================================
System uname: 2.6.15-rc5-ronin i686 Pentium III (Coppermine)
Gentoo Base System version 1.12.0_pre11
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled]
dev-lang/python:     2.2.3-r5, 2.3.5, 2.4.2
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.20-r1
virtual/os-headers:  2.6.11-r3
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=pentium3 -O3 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.2/share/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/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/texmf/web2c /etc/env.d"
CXXFLAGS="-march=pentium3 -O3 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distcc distlocks fixpackages sandbox sfperms strict userpriv"
GENTOO_MIRRORS="http://mirrors.sec.informatik.tu-darmstadt.de/gentoo/ http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ http://gentoo.inode.at/"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.de.gentoo.org/gentoo-portage"
USE="x86 X aalib acl alsa apm audiofile avi berkdb bitmap-fonts bzip2 canna cdr cjk crypt cscope cups curl eds emboss encode esd exif expat faad fam fbcon ffmpeg flac foomaticdb foreign-package fortran gd gdbm gif gimpprint glut gmp gnome gpm gstreamer gtk gtk2 guile i8x0 iconv idn imagemagick imlib immqt-bc ipv6 java jpeg junit kde kdeenablefinal lcms libcaca libg++ libwww lua mad matroska mikmod mng motif mozilla moznocompose moznoirc moznomail mozsvg mp3 mpeg ncurses network nls nsplugin ogg oggvorbis opengl operanom2 oss pam pcmcia pcre pdflib perl png python qt quicktime readline samba sdl slang smime speex spell ssl svg svga tcpd tetex tidy tiff truetype truetype-fonts type1-fonts udev unicode usb userlocales utf8 vorbis wifi win32codecs wmf wxwindows xface xim xine xml xml2 xmms xv xvid xvmc zeroconf elibc_glibc kernel_linux userland_GNU video_cards_i810"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS
Comment 2 SpanKY gentoo-dev 2005-12-20 06:21:45 UTC
i'll worry about it when 2.6.15 is released :P

in the meantime, feel free to post a patch
Comment 3 Aquila 2006-01-03 01:31:33 UTC
Created attachment 76056 [details]
Updated ebuild

Ebuild for patch
Comment 4 Aquila 2006-01-03 01:33:46 UTC
Created attachment 76057 [details, diff]
Patch to fix compilation for 2.6.15

Patch for 2.6.15. Disables the rendition support, so it's not very safe. This should probably be fixed later on.
Comment 5 Aquila 2006-01-03 01:34:43 UTC
The above patches work for me. I'll be following the discussion...
Comment 6 SpanKY gentoo-dev 2006-01-03 17:49:34 UTC
thanks for the patch, ive cleaned it up and integrated it into the current version
Comment 7 Patrizio Bassi 2006-01-04 07:46:41 UTC
probably works for you on .21, not for me on .23
Comment 8 Patrizio Bassi 2006-01-04 08:13:07 UTC
sorry, had a trouble patching, seems ok after a manual patch.