Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 157713 - sys-kernel/suspend2-sources-2.6.19 fails to compile due keyboard.c error
Summary: sys-kernel/suspend2-sources-2.6.19 fails to compile due keyboard.c error
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Alon Bar-Lev (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-12-10 04:06 UTC by Pacho Ramos
Modified: 2006-12-23 10:42 UTC (History)
0 users

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


Attachments
kernel config (.config,41.70 KB, text/plain)
2006-12-10 04:07 UTC, Pacho Ramos
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Pacho Ramos gentoo-dev 2006-12-10 04:06:36 UTC
I get the following error:
  CC      drivers/char/keyboard.o
drivers/char/keyboard.c: In function 'kbd_keycode':
drivers/char/keyboard.c:1262: error: too few arguments to function 'speakup_key'
drivers/char/keyboard.c:1288: error: too few arguments to function 'speakup_key'
make[2]: *** [drivers/char/keyboard.o] Error 1
make[1]: *** [drivers/char] Error 2
make: *** [drivers] Error 2

My emerge --info:
Portage 2.1.1-r2 (default-linux/x86/2006.1, gcc-4.1.1, glibc-2.4-r4, 2.6.18-suspend24 i686)
=================================================================
System uname: 2.6.18-suspend24 i686 Genuine Intel(R) CPU           T2300  @ 1.66GHz
Gentoo Base System version 1.12.6
Last Sync: Sat, 09 Dec 2006 22:50:01 +0000
ccache version 2.3 [enabled]
app-admin/eselect-compiler: [Not Present]
dev-java/java-config: 1.3.7, 2.0.30
dev-lang/python:     2.4.3-r4
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.3
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.17
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.16.1-r3
sys-devel/gcc-config: 1.3.13-r4
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=pentium-m -pipe -fomit-frame-pointer -mfpmath=sse -msse3"
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/splash /etc/terminfo /etc/texmf/web2c"
CXXFLAGS="-O2 -march=pentium-m -pipe -fomit-frame-pointer -mfpmath=sse -msse3"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache distlocks metadata-transfer parallel-fetch sandbox sfperms strict"
GENTOO_MIRRORS="http://mirror.ovh.net/gentoo-distfiles/ "
LC_ALL="es_ES.UTF-8"
LINGUAS="es en_US"
MAKEOPTS="-j3"
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.europe.gentoo.org/gentoo-portage"
USE="X a52 aac aalib acl acpi aim alsa ansi arts asf audiofile avi bash-completion bcmath beagle bidi bitmap-fonts bonobo bzip2 bzlib cairo caps cdb cddb cdparanoia cdr cdrparanoia cli cpdflib cracklib cross crypt cscope css ctype cups curl curlwrappers dbus dga dio directfb divx4linux dlloader dri dts dv dvb dvd dvdr dvdread elibc_glibc encode escreen esd evo exif fam fbcon ffmpeg fftw firefox flac foomaticdb fortran ftp gb gcj gd ggi gif gimp gimpprint glitz glut glx gmp gnome gphoto2 gpm gstreamer gtk gtk2 gtkhtml guile hal howl iconv imagemagick imlib input_devices_keyboard input_devices_mouse input_devices_synaptics ipv6 isdnlog jabber jack java jikes jpeg kde kdeenablefinal kdehiddenvisibility kernel_linux latex lcms ldap lesstif libg++ libnotify linguas_en_US linguas_es logrotate mad mbox mikmod mime ming mmap mmx mmxext mng mono motif mp3 mpeg mpi mplayer musepack nas ncurses nethack nls nocd nptl nptlonly nsplugin ntfs nvidia ogg oggvorbis openal opengl opnegl oss pam pcmcia pcre pdf pdflib perl pic png pnp posix ppds pppd python qt qt3 qt4 quicktime readline real reflection reiserfs rpm rtc ruby scanner sdl seamonkey session slang slp smp sndfile sockets socks5 speex spell spl sse sse2 sse3 ssl svg syslog tcltk tcpd tetex tga theora threads tiff timidity tk truetype truetype-fonts trusted type1-fonts udev unicode usb userland_GNU userlocales v4l v4l2 vcd video_cards_fbdev video_cards_nv video_cards_nvidia video_cards_vesa videos vim vorbis wifi win32codecs wma wmf wmp wxwindows x86 xine xml xml2 xorg xpm xv xvid zlib"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LDFLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Pacho Ramos gentoo-dev 2006-12-10 04:07:45 UTC
Created attachment 103737 [details]
kernel config
Comment 2 Phil 2006-12-10 06:25:41 UTC
(In reply to comment #1)
> Created an attachment (id=103737) [edit]
> kernel config
> 

Same error for me and when looking at the code, speakup_key is defined in keyboard.c by:

#define speakup_key_call(__vc, __shift, __keycode, __key, __down)       \
        speakup_key(__vc, __shift, __keycode, __key, __down)


where speakup_key is defined in linux/speakup.h by :

extern int speakup_key(struct vc_data*, int, int, u_short, int, struct pt_regs *
);


And quite surprisingly, the code is the same as in the suspend2-2.6.18 sources but it compiled without error (in 2.6.18).
Comment 3 Phil 2006-12-12 07:59:46 UTC
According to gentoo-sources ChangeLog, this bug is not specific to the suspend2-sources and was corrected in release 2.6.19-r1 of the gentoo-sources. I expect that the same patches will be applied in an upcoming release of the suspend2 sources.
Comment 4 Alon Bar-Lev (RETIRED) gentoo-dev 2006-12-17 12:08:44 UTC
Please check with suspend2-sources-2.6.19-r1, reopen if does not work.
Comment 5 Phil 2006-12-23 10:42:32 UTC
(In reply to comment #4)
> Please check with suspend2-sources-2.6.19-r1, reopen if does not work.
> 

Problem solved for me, everything compiles well. Thanks!