Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 373489

Summary: sys-fs/cdfs-2.6.27 does not compile again gentoo-sources-2.6.39
Product: Gentoo Linux Reporter: Mathieu Z <mobiusstripper>
Component: Current packagesAssignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it <maintainer-needed>
Status: RESOLVED FIXED    
Severity: normal CC: thanasis
Priority: Normal Keywords: PATCH
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: cdfs patch for newer(>2.6.39) kernel
cdfs patch for kernel>=2.6.39

Description Mathieu Z 2011-06-29 18:17:45 UTC
Seems like an upstream problem since there's been no release for over a year (http://users.elis.ugent.be/~mronsse/cdfs/download/).

Anyhow, it failed to compile after kernel upgrade.  It seems like I don't use it much anyway, so I am removing it from my system. I thought I'd file a bug for those who do to track it.

Reproducible: Always

Steps to Reproduce:
1. emerge sys-fs/cdfs
2.
3.
Actual Results:  
Build log is short, so here it is:

 * Package:    sys-fs/cdfs-2.6.27
 * Repository: gentoo
 * Maintainer: maintainer-needed@gentoo.org
 * USE:        amd64 elibc_glibc kernel_linux multilib userland_GNU
 * FEATURES:   ccache sandbox
 * Determining the location of the kernel source code
 * Found kernel source directory:
 *     /usr/src/linux
 * Found sources for kernel version:
 *     2.6.39-gentoo-r2
 * Checking for suitable kernel configuration options...                                                                             [ ok ]
>>> Unpacking source...
>>> Unpacking cdfs-2.6.27.tar.bz2 to /var/tmp/portage/sys-fs/cdfs-2.6.27/work
 * Applying cdfs-2.6.19-kernel-2.6.22.patch ...                                                                                      [ ok ]
 * Applying cdfs-2.6.27-kernel-2.6.28.patch ...                                                                                      [ ok ]
>>> Source unpacked in /var/tmp/portage/sys-fs/cdfs-2.6.27/work
>>> Compiling source in /var/tmp/portage/sys-fs/cdfs-2.6.27/work/cdfs-2.6.27 ...
ln: failed to create symbolic link `Module.symvers': File exists
 * Preparing cdfs module
make -j1 --load-average HOSTCC=x86_64-pc-linux-gnu-gcc CROSS_COMPILE=x86_64-pc-linux-gnu- LDFLAGS= KDIR=/usr/src/linux all 
make -C /usr/src/linux SUBDIRS=/var/tmp/portage/sys-fs/cdfs-2.6.27/work/cdfs-2.6.27 modules
make[1]: Entering directory `/usr/src/linux-2.6.39-gentoo-r2'
  CC [M]  /var/tmp/portage/sys-fs/cdfs-2.6.27/work/cdfs-2.6.27/root.o
/var/tmp/portage/sys-fs/cdfs-2.6.27/work/cdfs-2.6.27/root.c: In function ‘cdfs_get_sb’:
/var/tmp/portage/sys-fs/cdfs-2.6.27/work/cdfs-2.6.27/root.c:604:3: error: implicit declaration of function ‘get_sb_bdev’
/var/tmp/portage/sys-fs/cdfs-2.6.27/work/cdfs-2.6.27/root.c: At top level:
/var/tmp/portage/sys-fs/cdfs-2.6.27/work/cdfs-2.6.27/root.c:614:3: error: unknown field ‘get_sb’ specified in initializer
/var/tmp/portage/sys-fs/cdfs-2.6.27/work/cdfs-2.6.27/root.c:614:3: warning: initialization makes integer from pointer without a cast
/var/tmp/portage/sys-fs/cdfs-2.6.27/work/cdfs-2.6.27/root.c:614:3: error: initializer element is not computable at load time
/var/tmp/portage/sys-fs/cdfs-2.6.27/work/cdfs-2.6.27/root.c:614:3: error: (near initialization for ‘cdfs_fs_type.fs_flags’)
cc1: warning: unrecognized command line option "-Wno-unused-but-set-variable"
make[2]: *** [/var/tmp/portage/sys-fs/cdfs-2.6.27/work/cdfs-2.6.27/root.o] Error 1
make[1]: *** [_module_/var/tmp/portage/sys-fs/cdfs-2.6.27/work/cdfs-2.6.27] Error 2
make[1]: Leaving directory `/usr/src/linux-2.6.39-gentoo-r2'
make: *** [all] Error 2
emake failed
 * ERROR: sys-fs/cdfs-2.6.27 failed (compile phase):
 *   Unable to emake HOSTCC=x86_64-pc-linux-gnu-gcc CROSS_COMPILE=x86_64-pc-linux-gnu- LDFLAGS=  KDIR="/usr/src/linux" all
 * 
 * Call stack:
 *     ebuild.sh, line   56:  Called src_compile
 *   environment, line 3425:  Called linux-mod_src_compile
 *   environment, line 2642:  Called die
 * The specific snippet of code:
 *               eval "emake HOSTCC=\"$(tc-getBUILD_CC)\" 						CROSS_COMPILE=${CHOST}- 		LDFLAGS=\"$(get_abi_LDFLAGS)\" 						${BUILD_FIXES} 						${BUILD_PARAMS} 						${BUILD_TARGETS} " || die "Unable to emake HOSTCC="$(tc-getBUILD_CC)" CROSS_COMPILE=${CHOST}- LDFLAGS="$(get_abi_LDFLAGS)" ${BUILD_FIXES} ${BUILD_PARAMS} ${BUILD_TARGETS}";
 * 
 * If you need support, post the output of 'emerge --info =sys-fs/cdfs-2.6.27',
 * the complete build log and the output of 'emerge -pqv =sys-fs/cdfs-2.6.27'.
 * The complete build log is located at '/var/log/portage/sys-fs:cdfs-2.6.27:20110629-180257.log'.
 * The ebuild environment file is located at '/var/tmp/portage/sys-fs/cdfs-2.6.27/temp/environment'.
 * S: '/var/tmp/portage/sys-fs/cdfs-2.6.27/work/cdfs-2.6.27'


======================= emerge --info =======================
$ emerge --info
Portage 2.1.10.3 (default/linux/amd64/10.0, gcc-4.5.2, glibc-2.13-r2, 2.6.38-gentoo-r5 x86_64)
=================================================================
System uname: Linux-2.6.38-gentoo-r5-x86_64-AMD_Athlon-tm-_64_Processor_3200+-with-gentoo-2.0.3
Timestamp of tree: Wed, 29 Jun 2011 06:30:01 +0000
ccache version 3.1.5 [enabled]
app-shells/bash:          4.2_p10
dev-java/java-config:     2.1.11-r3
dev-lang/python:          2.7.2, 3.2
dev-util/ccache:          3.1.5
dev-util/cmake:           2.8.4-r1
dev-util/pkgconfig:       0.26
sys-apps/baselayout:      2.0.3
sys-apps/openrc:          0.8.3-r1
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.13, 2.68
sys-devel/automake:       1.11.1-r1
sys-devel/binutils:       2.21.1
sys-devel/gcc:            4.5.2
sys-devel/gcc-config:     1.4.1-r1
sys-devel/libtool:        2.4-r1
sys-devel/make:           3.82-r1
sys-kernel/linux-headers: 2.6.38 (virtual/os-headers)
sys-libs/glibc:           2.13-r2
Repositories: gentoo x11 sunrise science vmware java-overlay lisp desktop-effects Vala gentoo-zh mz-overylay
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -fomit-frame-pointer -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/openvpn/easy-rsa"
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.3/ext-active/ /etc/php/cgi-php5.3/ext-active/ /etc/php/cli-php5.3/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=native -fomit-frame-pointer -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--keep-going"
FEATURES="assume-digests binpkg-logs ccache distlocks ebuild-locks fixlafiles fixpackages metadata-transfer news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS=""
GENTOO_MIRRORS="http://distro.ibiblio.org/pub/linux/distributions/gentoo/ http://gentoo.osuosl.org/ http://ftp.ucsb.edu/pub/mirrors/linux/gentoo/"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O2 -Wl,--as-needed -Wl,--hash-style=both"
LINGUAS="en ja zh zh_CN zh_TW en_US en_GB"
MAKEOPTS="-j1 --load-average"
PKGDIR="/usr/portage//packages"
PORTAGE_CONFIGROOT="/"
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="/var/lib/layman/x11 /var/lib/layman/sunrise /var/lib/layman/science /var/lib/layman/vmware /var/lib/layman/java-overlay /var/lib/layman/lisp /var/lib/layman/desktop-effects /var/lib/layman/vala /var/lib/layman/gentoo-zh /usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext X a52 aac aalib acl acpi aim alsa amd64 apache2 audiofile avahi bash-completion bcmath berkdb bidi bittorrent blas bluetooth branding bzip2 cairo calendar caps ccache cdaudio cdr cjk cleartype cli clisp consolekit cracklib crypt cscope css ctype cups curl curlwrappers cxx dbus dbx dga directfb djvu dri dts dv dvd dvdr dvdread dvi eds emacs emacs-w3 encode enscript evo exif expat fam fastcgi fbcon ffmpeg fftw flac flash fontconfig foomaticdb fortran freetds ftp fuse gcl gconf gd gdbm ginac glib glitz glut gnome gnome-keyring gnome-vfs gnuplot gnutls gphoto2 gpm gps gs gsl gstreamer gtk gtk3 gtkhtml gzip htmlhandbook httpd iconv icq icu idn ieee1394 imagemagick imap imlib immqt-bc innodb ipod ipv6 jabber java java5 java6 javascript jingle joystick jpeg jpeg2k kde kpathsea lame lapack latex lcms ldap libcaca libgda libnotify lm_sensors lua lzma m17n-lib mad matroska mime mmx mmxext mng modplug modules mp3 mp4 mpeg mpi mplayer msn mtp mudflap multilib musepack musicbrainz mysql mysqli nautilus ncurses netboot networkmanager nis nls nntp nptl nptlonly nsplugin nss ntp odbc ogg openal openexr opengl openmp openssl osc oscar pae pam pch pcre pda pdf perl php plasma plotutils png policykit posix postgres ppds pppd pulseaudio python qq qt3support qt4 quicktime rar readline recode rss ruby samba sasl scanner sdl semantic-desktop session simplexml slang sndfile snmp sockets socks5 speex spell sqlite sqlite3 sse sse2 ssl svg sysfs system-sqlite t1lib taglib tcl tcpd theora threads tidy tiff timidity tk truetype tta udev unicode upnp usb v4l v4l2 vaapi vala vcd vhosts vim vim-syntax vorbis wav wavepack webkit wlm wma wmf wmp wxwidgets wxwindows x264 x86emu xcb xcomposite xfce xforms xfs xft xine xinerama xml xorg xosd xsl xulrunner xv xvid yahoo zip zlib" ALSA_CARDS="emu10k1 emu10k1x" 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 charset_lite 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" CALLIGRA_FEATURES="braindump flow karbon kexi kpresenter krita tables words" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" DRACUT_MODULES="plymouth btrfs caps crypt gensplash lvm syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="evdev joystick keyboard mouse wacom" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en ja zh zh_CN zh_TW en_US en_GB" NETBEANS_MODULES="cnd php mobility websvccommon apisupport java ide harness nb dlight enterprise profiler" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18%*" USERLAND="GNU" VIDEO_CARDS="radeon vesa vga fbdev" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" 
Unset:  CPPFLAGS, CTARGET, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Guy 2011-07-26 15:13:29 UTC
Vanilla-sources-2.6.38.8 is the last compatible version of the kernel which will work with cdfs-2.6.27.

kernel series 2.6.39 and later saw final removal of the "Big Kernel Lock" {CONFIG_BKL}.

While the error message is totally and complete weird, I would not be surprised if removal of CONFIG_BKL is what the problem is here. Just a guess.

On the other hand, vmware-modules-1.0.0.25-r4 IS broken for lack of CONFIG_BKL and also doesn't work for kernel sources 2.6.39 and later.

cdfs is a nice utility for those whom need it. For now, if you need it - you are required to stick with kernels prior to 2.6.39. Otherwise, someone needs to contact upstream and politely request an update.

Then a version bump from a non-existent gentoo dev (note this package needs a maintainer) can be performed.
Comment 2 Guy 2011-07-26 15:42:23 UTC
A polite request for assistance was sent to upstream.

Will post results.
Comment 3 Karata 2011-12-12 10:54:58 UTC
Created attachment 295541 [details, diff]
cdfs patch for newer(>2.6.39) kernel

Something like cdfs_get_sb changed in fs.h.
This patch solves the problem.
Comment 4 Karata 2011-12-12 12:19:15 UTC
Created attachment 295553 [details, diff]
cdfs patch for kernel>=2.6.39
Comment 5 Pacho Ramos gentoo-dev 2012-02-25 12:36:11 UTC
+  25 Feb 2012; Pacho Ramos <pacho@gentoo.org>
+  +files/cdfs-2.6.27-kernel-2.6.39.patch, -cdfs-2.6.19.ebuild,
+  -cdfs-2.6.23.ebuild, cdfs-2.6.27.ebuild:
+  Fix building with recent kernels, bug #373489 by Mathieu Zhang, Guy and
+  Karata. Drop old.
+