sys-fs/fuse should use a flag to decide whether or not to build the module, since the module is integrated in newer kernel versions. (at least since 2.6.15)
sys-fs/fuse does this automagically, no need for a use flag.
But doesn't work for me, maybe you can help me find out why? Issue 1: - My computer wants to compile the module, though my kernel is build with that module already. Issue 2: - Compiling the module fails (probably due to version incompatibility reasons) Portage 2.1_pre7-r4 (default-linux/x86/2006.0, gcc-3.4.5, glibc-2.3.5-r3, 2.6.16-gentoo-r1 i686) ================================================================= System uname: 2.6.16-gentoo-r1 i686 Mobile Intel(R) Pentium(R) 4 - M CPU 1.80GHz Gentoo Base System version 1.6.14 distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled] dev-lang/python: 2.4.2 sys-apps/sandbox: 1.2.12 sys-devel/autoconf: 2.13, 2.59-r7 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1 sys-devel/binutils: 2.16.1 sys-devel/libtool: 1.5.22 virtual/os-headers: 2.6.11-r3 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-O3 -march=pentium4 -fomit-frame-pointer -mmmx -msse -msse2 -mfpmath=sse -funroll-loops -fprefetch-loop-arrays -pipe" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/grass60/etc /usr/kde/2/share/config /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/3/share/config /usr/share/X11/xkb /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control" CONFIG_PROTECT_MASK="/etc/eselect/compiler /etc/gconf /etc/splash /etc/terminfo /etc/env.d" CXXFLAGS="-O3 -march=pentium4 -fomit-frame-pointer -mmmx -msse -msse2 -mfpmath=sse -funroll-loops -fprefetch-loop-arrays -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig collision-protect confcache distcc distlocks fixpackages metadata-transfer parallel-fetch sandbox sfperms strict" GENTOO_MIRRORS="ftp://mirror.switch.ch/mirror/gentoo/ http://distfiles.gentoo.org http://www.ibiblio.org/pub/Linux/distributions/gentoo" LINGUAS="en de" MAKEOPTS="-j2 -s" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="x86 X a52 aalib accessibility acl acpi alsa apache2 apm arts audiofile avi bash-completion berkdb bitmap-fonts bzip2 cairo canna cdr cli crypt cscope ctype cups curl dba dga directfb dri dts dvd eds emboss encode esd exif expat fam fastbuild fbcon ffmpeg flac flash foomaticdb force-cgi-redirect fortran freewnn ftp gd gdbm ggi gif gimpprint glut gphoto2 gpm gstreamer gtk gtk2 hal imagemagick imap imlib ipv6 isdnlog jack java jikes jpeg kde lcms libg++ libwww lirc mad maildir mbox mcal memlimit mikmod mmx mng mono motif motiv mozilla mp3 mpeg mysql nas ncurses nls nptl ogg oggvorbis openal openexr opengl oss pam pcmcia pcre pda pdflib perl pic png pnp posix ppds pppd prelude python qt quicktime readline samba scanner sdl session simplexml slang slp soap sockets speex spell spl sqlite sse sse2 ssl subversion svg svga symlink tcltk tcpd tetex theora tiff tokenizer truetype truetype-fonts trusted type1-fonts udev usb v4l v4l2 vorbis wifi win32codecs wxwindows xine xinerama xml xml2 xosd xsl xv xvid zlib elibc_glibc input_devices_evdev input_devices_keyboard input_devices_mouse input_devices_vmmouse kernel_linux linguas_en linguas_de userland_GNU video_cards_ati video_cards_vesa video_cards_fbdev video_cards_vmware video_cards_v4l" Unset: ASFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS emerge sys-fs/fuse >>> checksums src_uri ;-) fuse-2.4.1.tar.gz * Determining the location of the kernel source code * Found kernel source directory: * /usr/src/linux * Found sources for kernel version: * 2.6.16-gentoo-r1 >>> Unpacking source... >>> Unpacking fuse-2.4.1.tar.gz to /var/tmp/portage/fuse-2.4.1-r1/work * Applying fuse-fix-lazy-binding.patch ... [ ok ] * Applying fusermount.patch ... [ ok ] >>> Source unpacked. >>> Compiling source in /var/tmp/portage/fuse-2.4.1-r1/work/fuse-2.4.1 ... * Preparing fuse userland * econf: updating fuse-2.4.1/config.guess with /usr/share/gnuconfig/config.guess * econf: updating fuse-2.4.1/config.sub with /usr/share/gnuconfig/config.sub /usr/bin/confcache --confcache-ignore /var/tmp/portage/.distcc/ --confcache-dir /var/cache/confcache/ ./configure --prefix=/usr --host=i686-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --disable-kernel-module --disable-example --build=i686-pc-linux-gnu configure: loading cache config.cache checking for a BSD-compatible install... (cached) /bin/install -c checking whether build environment is sane... yes checking for gawk... (cached) gawk checking whether make sets $(MAKE)... (cached) yes checking build system type... (cached) i686-pc-linux-gnu checking host system type... (cached) i686-pc-linux-gnu checking for style of include used by make... GNU checking for i686-pc-linux-gnu-gcc... (cached) i686-pc-linux-gnu-gcc checking for C compiler default output file name... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... (cached) o checking whether we are using the GNU C compiler... (cached) yes checking whether i686-pc-linux-gnu-gcc accepts -g... (cached) yes checking for i686-pc-linux-gnu-gcc option to accept ANSI C... (cached) none needed checking dependency style of i686-pc-linux-gnu-gcc... (cached) gcc3 checking for a sed that does not truncate output... (cached) checking for egrep... (cached) grep -E checking for ld used by i686-pc-linux-gnu-gcc... (cached) /usr/i686-pc-linux-gnu/bin/ld checking if the linker (/usr/i686-pc-linux-gnu/bin/ld) is GNU ld... (cached) yes checking for /usr/i686-pc-linux-gnu/bin/ld option to reload object files... (cached) -r checking for BSD-compatible nm... (cached) /usr/bin/i686-pc-linux-gnu-nm -B checking whether ln -s works... yes checking how to recognise dependent libraries... (cached) pass_all checking for i686-pc-linux-gnu-ar... (cached) i686-pc-linux-gnu-ar checking for i686-pc-linux-gnu-strip... (cached) i686-pc-linux-gnu-strip checking for i686-pc-linux-gnu-ranlib... (cached) i686-pc-linux-gnu-ranlib checking the maximum length of command line arguments... (cached) 32768 checking command to parse /usr/bin/i686-pc-linux-gnu-nm -B output from object... (cached) ok checking how to run the C preprocessor... (cached) i686-pc-linux-gnu-gcc -E checking for ANSI C header files... (cached) yes checking for sys/types.h... (cached) yes checking for sys/stat.h... (cached) yes checking for stdlib.h... (cached) yes checking for string.h... (cached) yes checking for memory.h... (cached) yes checking for strings.h... (cached) yes checking for inttypes.h... (cached) yes checking for stdint.h... (cached) yes checking for unistd.h... (cached) yes checking for dlfcn.h... (cached) yes checking for objdir... (cached) .libs checking if i686-pc-linux-gnu-gcc supports -fno-rtti -fno-exceptions... (cached) no checking for i686-pc-linux-gnu-gcc option to produce PIC... -fPIC -DPIC checking if i686-pc-linux-gnu-gcc PIC flag -fPIC -DPIC works... yes checking if i686-pc-linux-gnu-gcc static flag -static works... yes checking if i686-pc-linux-gnu-gcc supports -c -o file.o... (cached) yes checking whether the i686-pc-linux-gnu-gcc linker (/usr/i686-pc-linux-gnu/bin/ld) supports shared libraries... yes checking whether -lc should be explicitly linked in... no checking dynamic linker characteristics... GNU/Linux ld.so checking how to hardcode library paths into programs... immediate checking whether stripping libraries is possible... yes checking if libtool supports shared libraries... yes checking whether to build shared libraries... yes checking whether to build static libraries... yes checking for i686-pc-linux-gnu-gcc... (cached) i686-pc-linux-gnu-gcc checking whether we are using the GNU C compiler... (cached) yes checking whether i686-pc-linux-gnu-gcc accepts -g... (cached) yes checking for i686-pc-linux-gnu-gcc option to accept ANSI C... (cached) none needed checking dependency style of i686-pc-linux-gnu-gcc... (cached) gcc3 checking for fork... (cached) yes checking for setxattr... (cached) yes checking for struct stat.st_atim... (cached) yes configure: creating ./config.status config.status: creating fuse.pc config.status: creating Makefile config.status: creating lib/Makefile config.status: creating util/Makefile config.status: creating example/Makefile config.status: creating include/Makefile config.status: creating include/config.h config.status: executing depfiles commands config.status: executing libtool commands Making all in include Making all in lib mkdir .libs i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I../include -D_FILE_OFFSET_BITS=64 -D_REENTRANT -DFUSE_USE_VERSION=22 -O3 -march=pentium4 -fomit-frame-pointer -mmmx -msse -msse2 -mfpmath=sse -funroll-loops -fprefetch-loop-arrays -pipe -MT fuse.lo -MD -MP -MF .deps/fuse.Tpo -c fuse.c -fPIC -DPIC -o .libs/fuse.o i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I../include -D_FILE_OFFSET_BITS=64 -D_REENTRANT -DFUSE_USE_VERSION=22 -O3 -march=pentium4 -fomit-frame-pointer -mmmx -msse -msse2 -mfpmath=sse -funroll-loops -fprefetch-loop-arrays -pipe -MT fuse_kern_chan.lo -MD -MP -MF .deps/fuse_kern_chan.Tpo -c fuse_kern_chan.c -fPIC -DPIC -o .libs/fuse_kern_chan.o i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I../include -D_FILE_OFFSET_BITS=64 -D_REENTRANT -DFUSE_USE_VERSION=22 -O3 -march=pentium4 -fomit-frame-pointer -mmmx -msse -msse2 -mfpmath=sse -funroll-loops -fprefetch-loop-arrays -pipe -MT fuse_kern_chan.lo -MD -MP -MF .deps/fuse_kern_chan.Tpo -c fuse_kern_chan.c -o fuse_kern_chan.o >/dev/null 2>&1 i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I../include -D_FILE_OFFSET_BITS=64 -D_REENTRANT -DFUSE_USE_VERSION=22 -O3 -march=pentium4 -fomit-frame-pointer -mmmx -msse -msse2 -mfpmath=sse -funroll-loops -fprefetch-loop-arrays -pipe -MT fuse.lo -MD -MP -MF .deps/fuse.Tpo -c fuse.c -o fuse.o >/dev/null 2>&1 i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I../include -D_FILE_OFFSET_BITS=64 -D_REENTRANT -DFUSE_USE_VERSION=22 -O3 -march=pentium4 -fomit-frame-pointer -mmmx -msse -msse2 -mfpmath=sse -funroll-loops -fprefetch-loop-arrays -pipe -MT fuse_loop.lo -MD -MP -MF .deps/fuse_loop.Tpo -c fuse_loop.c -fPIC -DPIC -o .libs/fuse_loop.o i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I../include -D_FILE_OFFSET_BITS=64 -D_REENTRANT -DFUSE_USE_VERSION=22 -O3 -march=pentium4 -fomit-frame-pointer -mmmx -msse -msse2 -mfpmath=sse -funroll-loops -fprefetch-loop-arrays -pipe -MT fuse_loop.lo -MD -MP -MF .deps/fuse_loop.Tpo -c fuse_loop.c -o fuse_loop.o >/dev/null 2>&1 i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I../include -D_FILE_OFFSET_BITS=64 -D_REENTRANT -DFUSE_USE_VERSION=22 -O3 -march=pentium4 -fomit-frame-pointer -mmmx -msse -msse2 -mfpmath=sse -funroll-loops -fprefetch-loop-arrays -pipe -MT fuse_lowlevel.lo -MD -MP -MF .deps/fuse_lowlevel.Tpo -c fuse_lowlevel.c -fPIC -DPIC -o .libs/fuse_lowlevel.o i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I../include -D_FILE_OFFSET_BITS=64 -D_REENTRANT -DFUSE_USE_VERSION=22 -O3 -march=pentium4 -fomit-frame-pointer -mmmx -msse -msse2 -mfpmath=sse -funroll-loops -fprefetch-loop-arrays -pipe -MT fuse_loop_mt.lo -MD -MP -MF .deps/fuse_loop_mt.Tpo -c fuse_loop_mt.c -fPIC -DPIC -o .libs/fuse_loop_mt.o i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I../include -D_FILE_OFFSET_BITS=64 -D_REENTRANT -DFUSE_USE_VERSION=22 -O3 -march=pentium4 -fomit-frame-pointer -mmmx -msse -msse2 -mfpmath=sse -funroll-loops -fprefetch-loop-arrays -pipe -MT fuse_loop_mt.lo -MD -MP -MF .deps/fuse_loop_mt.Tpo -c fuse_loop_mt.c -o fuse_loop_mt.o >/dev/null 2>&1 i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I../include -D_FILE_OFFSET_BITS=64 -D_REENTRANT -DFUSE_USE_VERSION=22 -O3 -march=pentium4 -fomit-frame-pointer -mmmx -msse -msse2 -mfpmath=sse -funroll-loops -fprefetch-loop-arrays -pipe -MT fuse_lowlevel.lo -MD -MP -MF .deps/fuse_lowlevel.Tpo -c fuse_lowlevel.c -o fuse_lowlevel.o >/dev/null 2>&1 i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I../include -D_FILE_OFFSET_BITS=64 -D_REENTRANT -DFUSE_USE_VERSION=22 -O3 -march=pentium4 -fomit-frame-pointer -mmmx -msse -msse2 -mfpmath=sse -funroll-loops -fprefetch-loop-arrays -pipe -MT fuse_mt.lo -MD -MP -MF .deps/fuse_mt.Tpo -c fuse_mt.c -fPIC -DPIC -o .libs/fuse_mt.o i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I../include -D_FILE_OFFSET_BITS=64 -D_REENTRANT -DFUSE_USE_VERSION=22 -O3 -march=pentium4 -fomit-frame-pointer -mmmx -msse -msse2 -mfpmath=sse -funroll-loops -fprefetch-loop-arrays -pipe -MT fuse_session.lo -MD -MP -MF .deps/fuse_session.Tpo -c fuse_session.c -fPIC -DPIC -o .libs/fuse_session.o i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I../include -D_FILE_OFFSET_BITS=64 -D_REENTRANT -DFUSE_USE_VERSION=22 -O3 -march=pentium4 -fomit-frame-pointer -mmmx -msse -msse2 -mfpmath=sse -funroll-loops -fprefetch-loop-arrays -pipe -MT fuse_mt.lo -MD -MP -MF .deps/fuse_mt.Tpo -c fuse_mt.c -o fuse_mt.o >/dev/null 2>&1 i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I../include -D_FILE_OFFSET_BITS=64 -D_REENTRANT -DFUSE_USE_VERSION=22 -O3 -march=pentium4 -fomit-frame-pointer -mmmx -msse -msse2 -mfpmath=sse -funroll-loops -fprefetch-loop-arrays -pipe -MT fuse_session.lo -MD -MP -MF .deps/fuse_session.Tpo -c fuse_session.c -o fuse_session.o >/dev/null 2>&1 i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I../include -D_FILE_OFFSET_BITS=64 -D_REENTRANT -DFUSE_USE_VERSION=22 -O3 -march=pentium4 -fomit-frame-pointer -mmmx -msse -msse2 -mfpmath=sse -funroll-loops -fprefetch-loop-arrays -pipe -MT helper.lo -MD -MP -MF .deps/helper.Tpo -c helper.c -fPIC -DPIC -o .libs/helper.o i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I../include -D_FILE_OFFSET_BITS=64 -D_REENTRANT -DFUSE_USE_VERSION=22 -O3 -march=pentium4 -fomit-frame-pointer -mmmx -msse -msse2 -mfpmath=sse -funroll-loops -fprefetch-loop-arrays -pipe -MT mount.lo -MD -MP -MF .deps/mount.Tpo -c mount.c -fPIC -DPIC -o .libs/mount.o i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I../include -D_FILE_OFFSET_BITS=64 -D_REENTRANT -DFUSE_USE_VERSION=22 -O3 -march=pentium4 -fomit-frame-pointer -mmmx -msse -msse2 -mfpmath=sse -funroll-loops -fprefetch-loop-arrays -pipe -MT mount.lo -MD -MP -MF .deps/mount.Tpo -c mount.c -o mount.o >/dev/null 2>&1 i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I../include -D_FILE_OFFSET_BITS=64 -D_REENTRANT -DFUSE_USE_VERSION=22 -O3 -march=pentium4 -fomit-frame-pointer -mmmx -msse -msse2 -mfpmath=sse -funroll-loops -fprefetch-loop-arrays -pipe -MT helper.lo -MD -MP -MF .deps/helper.Tpo -c helper.c -o helper.o >/dev/null 2>&1 i686-pc-linux-gnu-gcc -shared .libs/fuse.o .libs/fuse_kern_chan.o .libs/fuse_loop.o .libs/fuse_loop_mt.o .libs/fuse_lowlevel.o .libs/fuse_mt.o .libs/fuse_session.o .libs/helper.o .libs/mount.o -lpthread -march=pentium4 -mmmx -msse -msse2 -mfpmath=sse -Wl,--version-script -Wl,fuse_versionscript -Wl,-soname -Wl,libfuse.so.2 -o .libs/libfuse.so.2.4.1 (cd .libs && rm -f libfuse.so.2 && ln -s libfuse.so.2.4.1 libfuse.so.2) (cd .libs && rm -f libfuse.so && ln -s libfuse.so.2.4.1 libfuse.so) i686-pc-linux-gnu-ar cru .libs/libfuse.a fuse.o fuse_kern_chan.o fuse_loop.o fuse_loop_mt.o fuse_lowlevel.o fuse_mt.o fuse_session.o helper.o mount.o i686-pc-linux-gnu-ranlib .libs/libfuse.a creating libfuse.la (cd .libs && rm -f libfuse.la && ln -s ../libfuse.la libfuse.la) Making all in util i686-pc-linux-gnu-gcc: -z: linker input file unused because linking not done i686-pc-linux-gnu-gcc: now: linker input file unused because linking not done mkdir .libs i686-pc-linux-gnu-gcc -Wl,-z -Wl,now -O3 -march=pentium4 -fomit-frame-pointer -mmmx -msse -msse2 -mfpmath=sse -funroll-loops -fprefetch-loop-arrays -pipe -o fusermount fusermount.o * Converting fuse-2.4.1/kernel/Makefile.in to use M= instead of SUBDIRS= ... [ ok ] * Preparing fuse module * econf: updating fuse-2.4.1/config.guess with /usr/share/gnuconfig/config.guess * econf: updating fuse-2.4.1/config.sub with /usr/share/gnuconfig/config.sub /usr/bin/confcache --confcache-ignore /var/tmp/portage/.distcc/ --confcache-dir /var/cache/confcache/ ./configure --prefix=/usr --host=i686-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --with-kernel=/usr/src/linux --enable-kernel-module --libdir=/usr/lib --build=i686-pc-linux-gnu configure: loading cache config.cache checking for a BSD-compatible install... (cached) /bin/install -c checking kernel source directory... /usr/src/linux checking kernel source version... 2.6.16-gentoo-r1 checking if FUSE is configured in the kernel... yes checking if kernel has extended attribute support... yes checking if this is user mode linux... no configure: creating ./config.status config.status: creating Makefile config.status: creating config.h /var/tmp/portage/fuse-2.4.1-r1/work/fuse-2.4.1/kernel/file.c: In function `fuse_direct_write': /var/tmp/portage/fuse-2.4.1-r1/work/fuse-2.4.1/kernel/file.c:608: error: structure has no member named `i_sem' /var/tmp/portage/fuse-2.4.1-r1/work/fuse-2.4.1/kernel/file.c:610: error: structure has no member named `i_sem' distcc[18074] ERROR: compile /var/tmp/portage/fuse-2.4.1-r1/work/fuse-2.4.1/kernel/file.c on localhost failed make[2]: *** [/var/tmp/portage/fuse-2.4.1-r1/work/fuse-2.4.1/kernel/file.o] Error 1 make[1]: *** [_module_/var/tmp/portage/fuse-2.4.1-r1/work/fuse-2.4.1/kernel] Error 2 make: *** [all-spec] Error 2 !!! ERROR: sys-fs/fuse-2.4.1-r1 failed. Call stack: ebuild.sh, line 1526: Called dyn_compile ebuild.sh, line 923: Called src_compile fuse-2.4.1-r1.ebuild, line 37: Called linux-mod_src_compile linux-mod.eclass, line 512: Called die !!! Unable to make majver=2.6 fusemoduledir=//lib/modules/2.6.16-gentoo-r1/fs all. !!! If you need support, post the topmost build error, and the call stack if relevant.
Stable fuse version won't compile against 2.6.16 kernels, nor has this logic implemented. Closing.
*** Bug 130147 has been marked as a duplicate of this bug. ***