Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 231443 - sys-fs/vhba-1.0.0 does not compile: macro "INIT_WORK" requires 3 arguments, but only 2 given
Summary: sys-fs/vhba-1.0.0 does not compile: macro "INIT_WORK" requires 3 arguments, b...
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Marcelo Goes (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-07-10 19:18 UTC by Albert Zeyer
Modified: 2009-01-22 05:33 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Albert Zeyer 2008-07-10 19:18:22 UTC
>>> Emerging (10 of 84) sys-fs/vhba-1.0.0 to /
 * Determining the location of the kernel source code
 *     /usr/src/linux
 * Found kernel object directory:
 *     /lib/modules/2.6.16.19/build
 * Found sources for kernel version:
 *     2.6.16.19
 * Checking for suitable kernel configuration options...
 * Please check to make sure these options are set correctly.
>>> Unpacking source...
rk
 * Applying vhba-1.0.0-makefile.patch ...                                 [ ok ]
>>> Compiling source in /var/tmp/portage/sys-fs/vhba-1.0.0/work/vhba-module-1.0.
 * Preparing vhba module
.0 clean
.0 modules
make[1]: Leaving directory `/usr/src/linux-2.6.16.19'
make[1]: Entering directory `/usr/src/linux-2.6.16.19'
  CC [M]  /var/tmp/portage/sys-fs/vhba-1.0.0/work/vhba-module-1.0.0/vhba.o
/var/tmp/portage/sys-fs/vhba-1.0.0/work/vhba-module-1.0.0/vhba.c: In function âv
hba_device_queueâ:
/var/tmp/portage/sys-fs/vhba-1.0.0/work/vhba-module-1.0.0/vhba.c:155: warning: i
mplicit declaration of function âlocal_bh_disableâ
/var/tmp/portage/sys-fs/vhba-1.0.0/work/vhba-module-1.0.0/vhba.c:157: warning: i
mplicit declaration of function âlocal_bh_enableâ
/var/tmp/portage/sys-fs/vhba-1.0.0/work/vhba-module-1.0.0/vhba.c:793:51: error:
macro "INIT_WORK" requires 3 arguments, but only 2 given
ch undeclared identifier is reported only once
/var/tmp/portage/sys-fs/vhba-1.0.0/work/vhba-module-1.0.0/vhba.c:793: error: for
make[2]: *** [/var/tmp/portage/sys-fs/vhba-1.0.0/work/vhba-module-1.0.0/vhba.o]
Error 1
 Error 2
make: *** [modules] Error 2
 * ERROR: sys-fs/vhba-1.0.0 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line 3144:  Called linux-mod_src_compile
 *             environment, line 2412:  Called die
 * The specific snippet of code:
 *               eval "emake HOSTCC=\"$(tc-getBUILD_CC)\"                      C
C=\"$(get-KERNEL_CC)\"                                          LDFLAGS=\"$(get_
abi_LDFLAGS)\"                                          ${BUILD_FIXES}         $
{BUILD_PARAMS}                                          ${BUILD_TARGETS} " || di
e "Unable to emake HOSTCC="$(tc-getBUILD_CC)" CC="$(get-KERNEL_CC)" LDFLAGS="$(g
et_abi_LDFLAGS)" ${BUILD_FIXES} ${BUILD_PARAMS} ${BUILD_TARGETS}";
 *  The die message:
 *   Unable to emake HOSTCC=i686-pc-linux-gnu-gcc CC=i686-pc-linux-gnu-gcc LDFLA
GS=  KDIR=/usr/src/linux clean modules
 *
 * If you need support, post the topmost build error, and the call stack if rele
vant.
 * A complete build log is located at '/var/tmp/portage/sys-fs/vhba-1.0.0/temp/b
uild.log'.
 * The ebuild environment file is located at '/var/tmp/portage/sys-fs/vhba-1.0.0
/temp/environment'.
 *
Comment 1 Albert Zeyer 2008-07-10 19:20:26 UTC
acomputer ~ # emerge --info
Portage 2.1.4.4 (default-linux/x86/2006.1/desktop, gcc-4.1.2, glibc-2.6.1-r0, 2.6.16.19 i686)
=================================================================
System uname: 2.6.16.19 i686 AMD Athlon(tm) XP 2000+
Timestamp of tree: Thu, 10 Jul 2008 15:31:01 +0000
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
app-shells/bash:     3.2_p33
dev-java/java-config: 1.3.7, 2.1.6
dev-lang/python:     2.4.4-r13
dev-python/pycrypto: 2.0.1-r6
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r2
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.1
sys-devel/binutils:  2.15.92.0.2-r10, 2.16.1-r3, 2.17-r1, 2.18-r3
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.23-r3
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=athlon-xp -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/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /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=athlon-xp -fomit-frame-pointer -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="candy distlocks metadata-transfer parallel-fetch sandbox sfperms unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="en_US.UTF-8"
LC_ALL="en_US.UTF-8"
LINGUAS="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"
PORTDIR_OVERLAY="/usr/portage/local/private"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext GAPING_SECURITY_HOLE X X509 a52 aac aalib acl acpi acpi4linux adns afs agg aiglx alsa amd amuled aqua_theme ares asf asm atm auctex avahi bash-completion bidi binary binary-drivers bindist bittorrent bl bonjour bookmarks bootsplash bzip2 bzlib cairo cdda cddb cdio cdparanoia cdr cdrom cgi clisp codecs corba cracklib crypt cups curl custreloc dbus dedicated dga dhcp divx4linux dlopen dmi dnd dri dts dv dvd dvdnav dvdr dvdread dxr3 eds encode exif faad fam fame ffmpeg firefox flac flash font-server fortran fpx freetype ftp galago gcj gcl gd gdbm ggi gif gimp gl glitz glslideshow glut gnome gprof graphviz gs gstreamer gtk gtk2 gzip h323 hal haskell howl howl-compat html httpd iconv imagemagick imap imlib2 insecure-drivers ithreads jack java jbig jikes jit jpeg jpeg2k lame lcms ldap libcaca libnotify linuxthreads-tls live lzo mad matroska mbox mdnsresponder-compat midi mikmod mjpeg mmx mmxext mng mod modplug mozbranding mozcalendar mozilla mp2 mp3 mp4 mp4live mpeg mpeg2 mpeg4 mplayer mppe-mppc mudflap multislot musepack musicbrainz mysql nautilus ncurses net network njb nls nntp nptl nptlonly nsplugin nvidia objc offensive ogg oggvorbis openal opengl openmp oss pam pascal pcre pdf php png pop posix ppds pthreads python qt quicktime rar readline real rogue rplay rtc rtsp ruby samba sasl screen sdl server session shorten shout silvercity silverxp skins slp sndfile sockets speedo speex spell sse sse-filters ssl stream subversion svg svga tagwriting tcltk teamarena tetex tga themes theora threads threadsafe thumbnail tiff transcode truetype type1 unicode urandom usb utf8 v4l v4l2 vcd vdr vidix visualization vlm vorbis win32codecs wma wmf wxwindows x264 x86 xanim xatrix xcomposite xext xface xforms xine xorg xosd xpm xprint xrandr xrender xscreensaver xsettings xterm xulrunner xv xvid xvmc zip zlib zvbi" ALSA_CARDS="emu10k1 bt87x" 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" 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" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de" USERLAND="GNU" VIDEO_CARDS="nvidia nv apm"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

Comment 2 Marcelo Goes (RETIRED) gentoo-dev 2008-07-12 19:17:33 UTC
Can you reproduce this with a more recent kernel? I suppose cdemu-1.0.0 might not work with older kernels, although =cdemu-0.8 could work for you. If that is the case, I could add a warning in the ebuild.
Comment 3 Marcelo Goes (RETIRED) gentoo-dev 2008-08-03 21:19:13 UTC
Please reopen if it doesn't work with a more recent kernel.
Comment 4 Mike 2009-01-22 05:33:52 UTC
for kernels <= 2.6.19, you need to change the INIT_WORK line from 


INIT_WORK(&vhost->scan_devices, vhba_scan_devices);

to

INIT_WORK(&vhost->scan_devices, vhba_scan_devices, &vhost->scan_devices);


(add 3rd argument to be same as first). On > 2.6.19 kernels, INIT_WORK only takes 2 arguments, whereas it used to take 3.