Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 253695 - sys-block/iscsitarget-0.4.17 / kernel 2.6.28 - iscsitarget-0.4.17/kernel/block-io.c:348: error: implicit declaration of function 'close_bdev_excl'
Summary: sys-block/iscsitarget-0.4.17 / kernel 2.6.28 - iscsitarget-0.4.17/kernel/bloc...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-01-04 12:16 UTC by Vladimir Berezhnoy
Modified: 2009-02-20 12:54 UTC (History)
2 users (show)

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 Vladimir Berezhnoy 2009-01-04 12:16:47 UTC
sys-block/iscsitarget-0.4.17 fails to build on 2.6.28 

Reproducible: Always

Steps to Reproduce:

  CC [M]  /var/tmp/portage/sys-block/iscsitarget-0.4.17/work/iscsitarget-0.4.17/kernel/param.o
  CC [M]  /var/tmp/portage/sys-block/iscsitarget-0.4.17/work/iscsitarget-0.4.17/kernel/block-io.o
/var/tmp/portage/sys-block/iscsitarget-0.4.17/work/iscsitarget-0.4.17/kernel/block-io.c:21:5: warning: "LINUX_VERSION_CODE" is not defined
/var/tmp/portage/sys-block/iscsitarget-0.4.17/work/iscsitarget-0.4.17/kernel/block-io.c:21:27: warning: "KERNEL_VERSION" is not defined
/var/tmp/portage/sys-block/iscsitarget-0.4.17/work/iscsitarget-0.4.17/kernel/block-io.c:21:41: error: missing binary operator before token "("
/var/tmp/portage/sys-block/iscsitarget-0.4.17/work/iscsitarget-0.4.17/kernel/block-io.c: In function 'blockio_open_path':
/var/tmp/portage/sys-block/iscsitarget-0.4.17/work/iscsitarget-0.4.17/kernel/block-io.c:177: error: implicit declaration of function 'open_bdev_excl'
/var/tmp/portage/sys-block/iscsitarget-0.4.17/work/iscsitarget-0.4.17/kernel/block-io.c:177: warning: assignment makes pointer from integer without a cast
/var/tmp/portage/sys-block/iscsitarget-0.4.17/work/iscsitarget-0.4.17/kernel/block-io.c: In function 'blockio_detach':
/var/tmp/portage/sys-block/iscsitarget-0.4.17/work/iscsitarget-0.4.17/kernel/block-io.c:348: error: implicit declaration of function 'close_bdev_excl'
make[2]: *** [/var/tmp/portage/sys-block/iscsitarget-0.4.17/work/iscsitarget-0.4.17/kernel/block-io.o] Error 1
make[1]: *** [_module_/var/tmp/portage/sys-block/iscsitarget-0.4.17/work/iscsitarget-0.4.17/kernel] Error 2
make[1]: Leaving directory `/usr/src/linux-2.6.28-gentoo'
make: *** [kernel] Error 2




# emerge --info
Portage 2.2_rc20 (default/linux/x86/2008.0/desktop, gcc-4.3.2, glibc-2.9_p20081201-r1, 2.6.28-gentoo-n7 i686)
=================================================================
System uname: Linux-2.6.28-gentoo-n7-i686-Intel-R-_Atom-TM-_CPU_330_@_1.60GHz-with-glibc2.0
Timestamp of tree: Sun, 04 Jan 2009 11:30:01 +0000
distcc 3.1 i686-pc-linux-gnu [enabled]
ccache version 2.4 [enabled]
app-shells/bash:     3.2_p48
dev-java/java-config: 1.3.7-r1, 2.1.6-r1
dev-lang/python:     2.5.2-r8
dev-util/ccache:     2.4-r8
dev-util/cmake:      2.6.2
sys-apps/baselayout: 2.0.0
sys-apps/openrc:     0.4.1
sys-apps/sandbox:    1.3.2
sys-devel/autoconf:  2.13, 2.63
sys-devel/automake:  1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2
sys-devel/binutils:  2.19
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.28-r1
ACCEPT_KEYWORDS="x86 ~x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=prescott -pipe -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/kde/4.1/env /usr/kde/4.1/share/config /usr/kde/4.1/shutdown /usr/share/config"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-O2 -march=prescott -pipe -msse3"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache distcc distlocks fixpackages parallel-fetch preserve-libs protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://mirror.yandex.ru/gentoo-distfiles/"
LANG="ru_RU.UTF-8"
LC_ALL=""
LDFLAGS="-Wl,-O1"
LINGUAS="ru"
MAKEOPTS="-j4"
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/local/portage/layman/arcon /usr/local/portage/layman/thelinux /usr/local/overlays/testing"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dfx 3dnow 3dnowext 7zip X a52 aac acpi addbookmarks additions aften aim akode alias alsa amarok amazon amr amrwb ansi apache2 archive artswrappersuid ass atm autoreplace avahi bash-completion bashlogger binary-drivers bittorrent bluetooth branding bzip2 cairo captury cdr cgi chm cisco connectionstatus contactnotes cracklib crypt css curl dbus dhcp disk-partition djvu dmi dri dts dvd dvdr dvdread eds emboss emovix enca encode evo exif expat extensions extras fam fat fbcondecor ffmpeg flac fortran ftp gammu gd gdbm geoip gif git glib glitz gnokii gphoto2 gpm gstreamer gtk gzip hal hddtemp highlight history httpd iconv id3 ieee1394 imagemagick imlib inifile insecure-patches isdnlog ithreads jabber javascript jfs jpeg json kde kde4 kdeenablefinal kdeprefix lame ldap libass libextractor libnotify lm_sensors logrotate logwatch mad matroska midi mikmod mktemp mmx mmxext mng mouse mozdevelop mozilla mp3 mp4 mpeg mplayer mudflap musicbrainz mysql mysqli nas ncurses network nls nowlistening nptl nptlonly nsplugin ntfs ntlm nvidia obex ogg opengl openmp openntpd oscar pam passwordsave pch pcre pdo perl php plugins png ppds pppd python qt3 qt3support qt4 quicktime rdesktop readline reflection samba sasl screen sdl semantic-desktop session simplexml slang sndfile spell spl sqlite sqlite3 srt srv sse sse2 ssl startup-notification statistics subtitles subversion suhosin svg svnserve swat sysfs syslog taglib tcpd theora threads threadsafe tiff tordns tos translator trayicon truetype type1 unicode upnp urandom usb utempter vim-syntax visualization vnc vorbis wavpack web win32codecs winbind wxwindows x264 x86 xcb xcomposite xfs xhtml xine xinetd xml xmlreader xmlrpc xmlwriter xorg xosd xpm xsl xulrunner xv xvid zip zlib" ALSA_CARDS="hda-intel" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul 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" APACHE2_MPMS="prefork" ELIBC="glibc" INPUT_DEVICES="keyboard mouse ps2mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="ru" USERLAND="GNU" VIDEO_CARDS="intel vesa"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 CGretski 2009-01-06 13:48:10 UTC
I get "KERNEL_VERSION" is not defined and "LINUX_VERSION_CODE" is not defined but don't past error: missing binary operator before token "("
Have tried with different kernel versions 2.6.24-r2, 2.6.27-r7 and 2.6.28
Comment 2 Vladimir Berezhnoy 2009-01-07 00:27:54 UTC
I've changed the patch iscsitarget-0.4.17+linux-2.6.28.patch and removed all IF statements. After that iscsitarget-0.4.17 compiled fine. Thanks to CGretski.
May be it'll be better to check the kernel version inside the ebuild and apply patch only for 2.6.28 kernel.
Comment 3 Vladimir Berezhnoy 2009-02-20 12:54:42 UTC
Looks like this is fixed now.