Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 191591 - sys-cluster/gnbd-kernel-1.04.00 fails to compile with 2.6.22+ kernel
Summary: sys-cluster/gnbd-kernel-1.04.00 fails to compile with 2.6.22+ kernel
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Cluster Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: kernel-2.6.22
  Show dependency tree
 
Reported: 2007-09-07 13:45 UTC by BigBug
Modified: 2010-09-10 18:51 UTC (History)
0 users

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


Attachments
Fix the ebuild file (ebuild.patch,503 bytes, patch)
2007-09-07 13:52 UTC, BigBug
Details | Diff
Actual fix (gnbd-kernel-1.04.00-compile-fix-kernel-post-2.6.21.patch,439 bytes, patch)
2007-09-07 14:00 UTC, BigBug
Details | Diff
Actual fix (gnbd-kernel-1.04.00-compile-fix-kernel-post-2.6.21.patch,357 bytes, patch)
2007-09-07 14:16 UTC, BigBug
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description BigBug 2007-09-07 13:45:38 UTC
Impossible to build gnbd-kernel 1.04.00 against kernels 2.6.22 or later

Trivial fix.

There is also packages affected by this kernel api change, like cdemu or cloop

Reproducible: Always

Steps to Reproduce:
Update kernel to 2.6.22 or later

try to emerge gnbd-kernel
Actual Results:  
build fails with:

/var/tmp/portage/sys-cluster/gnbd-kernel-1.04.00/work/cluster-1.04.00/gnbd-kernel/src/gnbd.c: In function 'gnbd_ctl_ioctl':
/var/tmp/portage/sys-cluster/gnbd-kernel-1.04.00/work/cluster-1.04.00/gnbd-kernel/src/gnbd.c:720: error: too many arguments to function 'invalidate_bdev'



Expected Results:  
Build ok

Portage 2.1.2.12 (default-linux/amd64/2007.0, gcc-4.1.2, glibc-2.5-r4, 2.6.22-gentoo-r5-inet x86_64)
=================================================================
System uname: 2.6.22-gentoo-r5-inet x86_64 Intel(R) Xeon(TM) CPU 3.20GHz
Gentoo Base System release 1.12.9
Timestamp of tree: Fri, 07 Sep 2007 08:50:01 +0000
app-shells/bash:     3.2_p17
dev-java/java-config: 1.3.7, 2.0.33-r1
dev-lang/python:     2.4.4-r4
dev-python/pycrypto: 2.0.1-r6
sys-apps/baselayout: 1.12.9-r2
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.61
sys-devel/automake:  1.6.3, 1.7.9-r1, 1.9.6-r2, 1.10
sys-devel/binutils:  2.17
sys-devel/gcc-config: 1.3.16
sys-devel/libtool:   1.5.24
virtual/os-headers:  2.6.21
ACCEPT_KEYWORDS="amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -fomit-frame-pointer -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/init.d /etc/php/apache2-php4/ext-active/ /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php4/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php4/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/udev"
CXXFLAGS="-O2 -fomit-frame-pointer -pipe"
DISTDIR="/var/shared/distfiles"
EMERGE_DEFAULT_OPTS="-bk"
FEATURES="distlocks fixpackages metadata-transfer parallel-fetch sandbox sfperms strict"
GENTOO_MIRRORS="http://trumpetti.atm.tut.fi/gentoo/ ftp://ftp.linux.ee/pub/gentoo/distfiles/ http://ds.thn.htu.se/linux/gentoo http://mirror.gentoo.no/ http://ftp.linux.ee/pub/gentoo/distfiles/"
LDFLAGS="-Wl,-O1 -Wl,-z,now"
LINGUAS="en lv ru"
MAKEOPTS="-j3"
PKGDIR="/var/shared/packages-x86_64"
PORTAGE_RSYNC_EXTRA_OPTS="--exclude-from=/etc/portage/rsync_excludes"
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 --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/var/shared/portage"
PORTDIR_OVERLAY="/var/shared/overlay"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="7zip acpi aio amd64 apache2 async authdaemond bash-completion berkdb bzip2 cgi clamav concurrentmodphp cracklib crypt ctype curl device-mapper discard-path disk-partition dlz exif expat fam fastbuild fastcgi fontconfig force-cgi-redirect fortran ftp gd gdbm gmp gnutls gs hal idea idn imagemagick imap inode iproute2 java jbig jpeg jpeg2k kerberos krb4 lcms ldap logrotate math memlimit mpeg mysql ncurses net network-cron nls nptl nptlonly nss pam passwordsave pcntl perl php pic png posix python rc5 readline restrict samba sasl shaper sharedext sharedmem sitemisc slang sockets socks5 softquota ssl swat symlink syslog sysvipc tcl tcpd tiff truetype unicode urandom vda vim-syntax vroot wmf xinetd xml zlib" ELIBC="glibc" KERNEL="linux" LCD_DEVICES="ncurses text" LINGUAS="en lv ru" USERLAND="GNU"
Unset:  CTARGET, INSTALL_MASK, LANG, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS
Comment 1 BigBug 2007-09-07 13:52:48 UTC
Created attachment 130265 [details, diff]
Fix the ebuild file

If the kernel is greather or equal to 2.6.22 then make a patch
Comment 2 BigBug 2007-09-07 14:00:37 UTC
Created attachment 130267 [details, diff]
Actual fix

Trivial fix
Comment 3 BigBug 2007-09-07 14:16:41 UTC
Created attachment 130270 [details, diff]
Actual fix

Actual trivial fix, sorry about previus file
Comment 4 Christian Zoffoli (RETIRED) gentoo-dev 2008-03-17 23:01:08 UTC
fixed in 2.02.00, 1.0x.00 is scheduled to be removed, please try the new clustering infrastructure