Trying to recompile cloop-2.05 against gentoo-sources-2.6.24 fails: [...] make modules -C /usr/src/linux-2.6.24-gentoo M=/Gentoo/Portage/build/portage/sys-fs/cloop-2.05/work/cloop-2.05~20060 829 make[1]: Entering directory `/usr/src/linux-2.6.24-gentoo' i686-pc-linux-gnu-gcc -o extract_compressed_fs extract_compressed_fs.o -lz checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... CC [M] /Gentoo/Portage/build/portage/sys-fs/cloop-2.05/work/cloop-2.05~20060829/compressed_loop.o /Gentoo/Portage/build/portage/sys-fs/cloop-2.05/work/cloop-2.05~20060829/compressed_loop.c: In function 'make_clo_request': /Gentoo/Portage/build/portage/sys-fs/cloop-2.05/work/cloop-2.05~20060829/compressed_loop.c:353: error: too many arguments to function 'bio_endio' make[3]: *** [/Gentoo/Portage/build/portage/sys-fs/cloop-2.05/work/cloop-2.05~20060829/compressed_loop.o] Fehler 1 make[2]: *** [_module_/Gentoo/Portage/build/portage/sys-fs/cloop-2.05/work/cloop-2.05~20060829] Fehler 2 make[1]: *** [sub-make] Fehler 2 make[1]: Leaving directory `/usr/src/linux-2.6.24-gentoo' make: *** [module] Fehler 2 make: *** Warte auf noch nicht beendete Prozesse... yes checking for gawk... gawk [...] * * ERROR: sys-fs/cloop-2.05 failed. * Call stack: * ebuild.sh, line 46: Called src_compile * environment, line 3128: Called linux-mod_src_compile * environment, line 2403: Called die * The specific snippet of code: * emake HOSTCC="$(tc-getBUILD_CC)" CC="$(get-KERNEL_CC)" LDFLAGS="$(get_abi_LDFLAGS)" ${BUILD_FIXES} ${BUILD_PARAMS} ${BUILD_TARGETS} || diefunc "$FUNCNAME" "$LINENO" "$?" "Unable to make ${BUILD_FIXES} ${BUILD_PARAMS} ${BUILD_TARGETS}."; * The die message: * Unable to make KVERSION=2.6.24-gentoo.r08.mit-ide-mod_2 KERNEL_DIR=/usr/src/linux-2.6.24-gentoo all. * * If you need support, post the topmost build error, and the call stack if relevant. * A complete build log is located at '/Gentoo/Portage/logs/sys-fs:cloop-2.05:20080129-071538.log'. * The ebuild environment file is located at '/Gentoo/Portage/build/portage/sys-fs/cloop-2.05/temp/environment'. * --($:~)-- emerge --info Portage 2.1.4 (default-linux/x86/2007.0/desktop, gcc-4.2.2, glibc-2.7-r1, 2.6.23-gentoo-r6.r08.mit-ide-mod_2 i686) ================================================================= System uname: 2.6.23-gentoo-r6.r08.mit-ide-mod_2 i686 Genuine Intel(R) CPU T2400 @ 1.83GHz Timestamp of tree: Mon, 28 Jan 2008 05:46:01 +0000 distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled] ccache version 2.4 [enabled] app-shells/bash: 3.2_p33 dev-java/java-config: 1.3.7, 2.1.3 dev-lang/python: 2.4.4-r4, 2.5.1-r5 dev-python/pycrypto: 2.0.1-r6 dev-util/ccache: 2.4-r7 sys-apps/baselayout: 1.12.11.1 sys-apps/sandbox: 1.2.18.1-r2 sys-devel/autoconf: 2.13, 2.61-r1 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.18-r1 sys-devel/gcc-config: 1.4.0-r4 sys-devel/libtool: 1.5.24 virtual/os-headers: 2.6.24 ACCEPT_KEYWORDS="x86 ~x86" CBUILD="i686-pc-linux-gnu" CFLAGS="-march=pentium-m -O2 -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="-march=pentium-m -O2 -pipe -fomit-frame-pointer" DISTDIR="/Gentoo/Portage/distfiles" EMERGE_DEFAULT_OPTS="--alphabetical" FEATURES="buildpkg ccache collision-protect distlocks metadata-transfer parallel-fetch sandbox sfperms strict unmerge-orphans userfetch" GENTOO_MIRRORS=" http://ftp.heanet.ie/pub/gentoo/ http://ftp.gentoo.or.kr/ http://distfiles.gentoo.org/ http://www.ibiblio.org/pub/Linux/distributions/gentoo " LANG="de_CH.UTF-8" LINGUAS="de" MAKEOPTS="-j3" PKGDIR="/Gentoo/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 --filter=H_**/files/digest-*" PORTAGE_TMPDIR="/Gentoo/Portage/build" PORTDIR="/Gentoo/Portage/tree" PORTDIR_OVERLAY="/Gentoo/Portage/local-tree/misc" SYNC="rsync://winds06:10873/gentoo-portage" USE="X acpi alsa berkdb bitmap-fonts bluetooth cairo cdr cli cracklib crypt cups dbus dmi doc dri dvd dvdr dvdread encode fam firefox fortran gdbm gif gnome gnutls gpm gstreamer gtk hal iconv isdnlog jpeg kde kdeenablefinal kdehiddenvisibility ldap libnotify mad midi mmx mp3 mpeg mudflap ncurses nls nptl nptlonly ogg opengl openmp pam pcmcia pcre pdf perl png pppd python qt3 qt3support qt4 quicktime readline reflection samba sdl session spell spl sse sse2 ssl svg tcpd tiff truetype truetype-fonts type1-fonts unicode vorbis wifi win32codecs x86 xine xinerama xml xorg xv zlib" ALSA_CARDS="hda-intel intel8x0 intel8x0m usb-audio usb-usx3y" 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" APACHE2_MPMS="worker" CAMERAS="ptp2 directory" ELIBC="glibc" INPUT_DEVICES="evdev keyboard mouse synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de" USERLAND="GNU" VIDEO_CARDS="nv nvidia vga none" Unset: CPPFLAGS, CTARGET, INSTALL_MASK, LC_ALL, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Created attachment 142080 [details] sys-fs:cloop-2.05:20080129-071538.log
Looking at the debian tracker this version stopped working there around kernel 2.6.18. http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=436090 The 2.05 version has been patched for gentoo in bug #196566 and bug #189561 to work with 2.6.22 and 2.6.23, but... There is, since Oct 2007, an upstream version that has support for 2.6.22 kernel so it might be smarter to let the 2.05 rest in peace and pull an new tree from upstream, like from http://debian-knoppix.alioth.debian.org/sources/cloop_2.624-1.tar.gz
Created attachment 142351 [details, diff] Patch to make sys-fs/cloop-2.624.ebuild Decided to try this before posting the above message... The ebuild made from the attached patch does fetch the sources after hitting the mirrors, compiles and installs the module. The module loads and unloads successfully with 2.6.24-gentoo i686
if you don't want to take the whole debian patch, you can fix this specific problem as follows: replace: bio_endio(bio, bio->bi_size, foo); with: #if LINUX_VERSION_CODE > KERNEL_VERSION(2,6,23) bio_endio(bio, foo); #else bio_endio(bio, bio->bi_size, foo); #endif
thank you, committed