Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 233342 - sys-fs/vhba-1.0.0 + kernel 2.6.26-rc5 - error: 'const struct scsi_cmnd' has no member named 'request_bufflen'
Summary: sys-fs/vhba-1.0.0 + kernel 2.6.26-rc5 - error: 'const struct scsi_cmnd' has n...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Marcelo Goes (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-07-30 01:27 UTC by Michael Brown
Modified: 2010-02-25 12:00 UTC (History)
1 user (show)

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


Attachments
vhba-1.0.0-ebuild-2.6.26.patch (vhba-1.0.0-ebuild-2.6.26.patch,466 bytes, patch)
2008-08-02 09:05 UTC, Krzysztof Nowicki
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Brown 2008-07-30 01:27:30 UTC
When compiling sys-fs/vhba, emerge would quit with errors:

>>> Emerging (1 of 1) sys-fs/vhba-1.0.0 to /
 * vhba-module-1.0.0.tar.bz2 RMD160 SHA1 SHA256 size ;-) ...              [ ok ]
 * checking ebuild checksums ;-) ...                                      [ ok ]
 * checking auxfile checksums ;-) ...                                     [ ok ]
 * checking miscfile checksums ;-) ...                                    [ ok ]
 * checking vhba-module-1.0.0.tar.bz2 ;-) ...                             [ ok ]
 * Determining the location of the kernel source code
 * Found kernel source directory:
 *     /usr/src/linux
 * Found kernel object directory:
 *     /lib/modules/2.6.26-rc5/build
 * Found sources for kernel version:
 *     2.6.26-rc5
 * Checking for suitable kernel configuration options...                  [ ok ]
>>> Unpacking source...
>>> Unpacking vhba-module-1.0.0.tar.bz2 to /var/tmp/portage/sys-fs/vhba-1.0.0/work
 * Patching Makefile
 * Applying vhba-1.0.0-makefile.patch ...                                 [ ok ]
>>> Source unpacked.
>>> Compiling source in /var/tmp/portage/sys-fs/vhba-1.0.0/work/vhba-module-1.0.0 ...
 * Preparing vhba module
make -C /usr/src/linux M=/var/tmp/portage/sys-fs/vhba-1.0.0/work/vhba-module-1.0.0 clean
make -C /usr/src/linux M=/var/tmp/portage/sys-fs/vhba-1.0.0/work/vhba-module-1.0.0 modules
make[1]: Entering directory `/usr/src/linux-2.6.26-rc5'
make[1]: Leaving directory `/usr/src/linux-2.6.26-rc5'
rm -fr vhba-module-1.0.0    
make[1]: Entering directory `/usr/src/linux-2.6.26-rc5'
  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 'do_request':
/var/tmp/portage/sys-fs/vhba-1.0.0/work/vhba-module-1.0.0/vhba.c:427: error: 'const struct scsi_cmnd' has no member named 'request_bufflen'
/var/tmp/portage/sys-fs/vhba-1.0.0/work/vhba-module-1.0.0/vhba.c:427: error: 'const struct scsi_cmnd' has no member named 'use_sg'
/var/tmp/portage/sys-fs/vhba-1.0.0/work/vhba-module-1.0.0/vhba.c:432: error: 'const struct scsi_cmnd' has no member named 'request_bufflen'
/var/tmp/portage/sys-fs/vhba-1.0.0/work/vhba-module-1.0.0/vhba.c:445: error: 'const struct scsi_cmnd' has no member named 'request_bufflen'
/var/tmp/portage/sys-fs/vhba-1.0.0/work/vhba-module-1.0.0/vhba.c:455: error: 'const struct scsi_cmnd' has no member named 'request_buffer'
/var/tmp/portage/sys-fs/vhba-1.0.0/work/vhba-module-1.0.0/vhba.c: In function 'do_response':
/var/tmp/portage/sys-fs/vhba-1.0.0/work/vhba-module-1.0.0/vhba.c:466: error: 'struct scsi_cmnd' has no member named 'use_sg'
/var/tmp/portage/sys-fs/vhba-1.0.0/work/vhba-module-1.0.0/vhba.c:484: error: 'struct scsi_cmnd' has no member named 'request_bufflen'
/var/tmp/portage/sys-fs/vhba-1.0.0/work/vhba-module-1.0.0/vhba.c:488: error: 'struct scsi_cmnd' has no member named 'request_bufflen'
/var/tmp/portage/sys-fs/vhba-1.0.0/work/vhba-module-1.0.0/vhba.c:490: error: 'struct scsi_cmnd' has no member named 'request_bufflen'
/var/tmp/portage/sys-fs/vhba-1.0.0/work/vhba-module-1.0.0/vhba.c:491: error: 'struct scsi_cmnd' has no member named 'request_bufflen'
/var/tmp/portage/sys-fs/vhba-1.0.0/work/vhba-module-1.0.0/vhba.c:496: error: 'struct scsi_cmnd' has no member named 'use_sg'
/var/tmp/portage/sys-fs/vhba-1.0.0/work/vhba-module-1.0.0/vhba.c:500: error: 'struct scsi_cmnd' has no member named 'request_buffer'
/var/tmp/portage/sys-fs/vhba-1.0.0/work/vhba-module-1.0.0/vhba.c:510: error: 'struct scsi_cmnd' has no member named 'use_sg'
/var/tmp/portage/sys-fs/vhba-1.0.0/work/vhba-module-1.0.0/vhba.c:523: error: 'struct scatterlist' has no member named 'page'
/var/tmp/portage/sys-fs/vhba-1.0.0/work/vhba-module-1.0.0/vhba.c:537: error: 'struct scsi_cmnd' has no member named 'request_buffer'
/var/tmp/portage/sys-fs/vhba-1.0.0/work/vhba-module-1.0.0/vhba.c:543: error: 'struct scsi_cmnd' has no member named 'resid'
make[2]: *** [/var/tmp/portage/sys-fs/vhba-1.0.0/work/vhba-module-1.0.0/vhba.o] Error 1
make[1]: *** [_module_/var/tmp/portage/sys-fs/vhba-1.0.0/work/vhba-module-1.0.0] Error 2
make[1]: Leaving directory `/usr/src/linux-2.6.26-rc5'
make: *** [modules] Error 2
* 
 * ERROR: sys-fs/vhba-1.0.0 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line 3132:  Called linux-mod_src_compile
 *             environment, line 2400:  Called die
 * The specific snippet of code:
 *               eval "emake HOSTCC=\"$(tc-getBUILD_CC)\"               CC=\"$(get-KERNEL_CC)\"                                                 LDFLAGS=\"$(get_abi_LDFLAGS)\"                                          ${BUILD_FIXES}  ${BUILD_PARAMS}                                                 ${BUILD_TARGETS} " || die "Unable to emake HOSTCC="$(tc-getBUILD_CC)" CC="$(get-KERNEL_CC)" LDFLAGS="$(get_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 LDFLAGS=  KDIR=/usr/src/linux clean modules
 * 
 * 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-fs/vhba-1.0.0/temp/build.log'.

In looking at /usr/src/linux/include/scsi/scsi_cmnd.h I do not see any mention of those structure components.  Have they been replaced with something else that we can just modify the vhba.c files to recognize the new structure components?


Reproducible: Always

Steps to Reproduce:
1. emerge sys-fs/vhba-1.0.0 using the 2.6.26-rc5 kernel.
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2008-07-30 15:38:15 UTC
Please post your `emerge --info' too.
Comment 2 Michael Brown 2008-07-31 00:24:31 UTC
emerge --info

Portage 2.1.4.4 (default-linux/x86/2007.0, gcc-4.1.2, glibc-2.6.1-r0, 2.6.26-rc5 i686)
=================================================================
System uname: 2.6.26-rc5 i686 Intel(R) Core(TM)2 Duo CPU T8100 @ 2.10GHz
Timestamp of tree: Sun, 27 Jul 2008 11:00:02 +0000
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
sys-devel/automake:  1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1
sys-devel/binutils:  2.18-r1
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=prescott -pipe -fomit-frame-pointer"
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/udev/rules.d"
CXXFLAGS="-O2 -march=prescott -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks metadata-transfer sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
MAKEOPTS="-j2"
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"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi alsa apache2 bash-completion bzip2 calendar cddb cdinstall cli cracklib crypt cups dbus divx dri dvd dvdr dvdread encode ffmpeg flac foomaticdb fortran gdbm gif gimp gimpprint gpm gtk hddtemp hou iconv id3 imlib imlib2 isdnlog java joystick jpeg jpeg2k lame lm_sensors lzo mad midi mikmod mjpeg mmx mng mp2 mp3 mp4 mpeg mudflap mysql ncurses nls nptl nptlonly nsplugin ogg openal opengl openmp oss pcre pdf perl php png ppds pppd python qt3 qt4 quicktime readline real realmedia reflection samba sdl sensord session sou spell spl sse sse2 ssl ssse3 svg tcl tcpd teamarena theora threads tiff timidity tk truetype unicode vcd videos vidix vorbis win32codecs wma wmf wmp x264 x86 xcomposite xorg xvid zlib" ALSA_CARDS="hda-intel intel8x0 intel8x0m" 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 auth_digest authn_anon authn_dbd 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 dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="evdev mouse keyboard joystick" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="vesa nvidia"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY

Comment 3 Krzysztof Nowicki 2008-08-02 09:05:07 UTC
Created attachment 161974 [details, diff]
vhba-1.0.0-ebuild-2.6.26.patch

The patch for the compile errors is there, but it's applied for 2.6.25 kernels only.

This patch for the ebuild solved the problem for me, although I'm not sure if assuming all future kernels will need it is safe.
Comment 4 Marcelo Goes (RETIRED) gentoo-dev 2008-08-03 20:47:09 UTC
Thanks, patch applied in cvs. If it breaks in the future, we'll add another restriction... :-)

Cheers
Comment 5 Vlad 2010-02-25 12:00:24 UTC
I'm getting almost exactly the same error with kernel 2.6.33 (vhba-1.2.1). With the previous kernel 2.6.32.x everything was fine.