Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 149715 - net-fs/shfs-0.35-r3 compilation fails with kernel 2.6.18
Summary: net-fs/shfs-0.35-r3 compilation fails with kernel 2.6.18
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Saleem Abdulrasool (RETIRED)
URL:
Whiteboard:
Keywords:
: 149847 (view as bug list)
Depends on:
Blocks: 148429
  Show dependency tree
 
Reported: 2006-10-01 04:35 UTC by Peter Ruskin
Modified: 2006-10-15 19:34 UTC (History)
3 users (show)

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


Attachments
patch (2618.patch,3.96 KB, patch)
2006-10-11 16:04 UTC, Daniel Drake (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Peter Ruskin 2006-10-01 04:35:29 UTC
>>> Source unpacked.
>>> Compiling source in /var/tmp/portage/shfs-0.35-r3/work/shfs-0.35 ...
 * Preparing shfs module
make -C /usr/src/linux M=/var/tmp/portage/shfs-0.35-r3/work/shfs-0.35/shfs/Linux-2.6 modules
make[1]: Entering directory `/usr/src/linux-2.6.18-gentoo'
  CC [M]  /var/tmp/portage/shfs-0.35-r3/work/shfs-0.35/shfs/Linux-2.6/dcache.o
  CC [M]  /var/tmp/portage/shfs-0.35-r3/work/shfs-0.35/shfs/Linux-2.6/dir.o
  CC [M]  /var/tmp/portage/shfs-0.35-r3/work/shfs-0.35/shfs/Linux-2.6/fcache.o
  CC [M]  /var/tmp/portage/shfs-0.35-r3/work/shfs-0.35/shfs/Linux-2.6/file.o
/var/tmp/portage/shfs-0.35-r3/work/shfs-0.35/shfs/Linux-2.6/file.c: In function 'shfs_slow_read':
/var/tmp/portage/shfs-0.35-r3/work/shfs-0.35/shfs/Linux-2.6/file.c:295: warning: ignoring return value of 'copy_to_user', declared with attribute warn_unused_result
/var/tmp/portage/shfs-0.35-r3/work/shfs-0.35/shfs/Linux-2.6/file.c: At top level:
/var/tmp/portage/shfs-0.35-r3/work/shfs-0.35/shfs/Linux-2.6/file.c:328: warning: initialization from incompatible pointer type
/var/tmp/portage/shfs-0.35-r3/work/shfs-0.35/shfs/Linux-2.6/file.c:340: warning: initialization from incompatible pointer type
  CC [M]  /var/tmp/portage/shfs-0.35-r3/work/shfs-0.35/shfs/Linux-2.6/inode.o
/var/tmp/portage/shfs-0.35-r3/work/shfs-0.35/shfs/Linux-2.6/inode.c:232: warning: initialization from incompatible pointer type
/var/tmp/portage/shfs-0.35-r3/work/shfs-0.35/shfs/Linux-2.6/inode.c: In function 'shfs_get_sb':
/var/tmp/portage/shfs-0.35-r3/work/shfs-0.35/shfs/Linux-2.6/inode.c:348: error: too few arguments to function 'get_sb_nodev'
/var/tmp/portage/shfs-0.35-r3/work/shfs-0.35/shfs/Linux-2.6/inode.c: At top level:
/var/tmp/portage/shfs-0.35-r3/work/shfs-0.35/shfs/Linux-2.6/inode.c:354: warning: initialization from incompatible pointer type
/var/tmp/portage/shfs-0.35-r3/work/shfs-0.35/shfs/Linux-2.6/inode.c: In function 'shfs_get_sb':
/var/tmp/portage/shfs-0.35-r3/work/shfs-0.35/shfs/Linux-2.6/inode.c:349: warning: control reaches end of non-void function
make[2]: *** [/var/tmp/portage/shfs-0.35-r3/work/shfs-0.35/shfs/Linux-2.6/inode.o] Error 1
make[1]: *** [_module_/var/tmp/portage/shfs-0.35-r3/work/shfs-0.35/shfs/Linux-2.6] Error 2
make[1]: Leaving directory `/usr/src/linux-2.6.18-gentoo'
make: *** [default] Error 2

!!! ERROR: net-fs/shfs-0.35-r3 failed.
Call stack:
  ebuild.sh, line 1546:   Called dyn_compile
  ebuild.sh, line 937:   Called src_compile
  shfs-0.35-r3.ebuild, line 61:   Called linux-mod_src_compile
  linux-mod.eclass, line 469:   Called die

!!! Unable to make  -j1 KERNEL_SOURCES=/usr/src/linux default.
!!! If you need support, post the topmost build error, and the call stack if relevant.

# emerge --info
Portage 2.1.2_pre2 (default-linux/x86/2006.1/desktop, gcc-4.1.1, glibc-2.4-r3, 2.6.18-gentoo i686)
=================================================================
System uname: 2.6.18-gentoo i686 AMD Athlon(tm) 64 X2 Dual Core Processor 4400+
Gentoo Base System version 1.12.5
Last Sync: Sat, 30 Sep 2006 21:50:01 +0000
app-admin/eselect-compiler: [Not Present]
dev-java/java-config: 1.3.7, 2.0.30
dev-lang/python:     2.4.3-r4
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     [Not Present]
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.60
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.16.1-r3
sys-devel/gcc-config: 1.3.13-r3
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17-r1
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=athlon64 -msse3 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /etc/mail/dspam /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /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/run/dspam"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/init.d /etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo /usr/X11R6/lib/X11/xkb"
CXXFLAGS="-O2 -march=athlon64 -msse3 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks fixpackages metadata-transfer nostrip notitles sandbox sfperms strict userpriv usersandbox"
GENTOO_MIRRORS="http://gentoo.blueyonder.co.uk ftp://mirrors.blueyonder.co.uk/mirrors/gentoo http://www.mirrorservice.org/sites/www.ibiblio.org/gentoo/ ftp://ftp.mirrorservice.org/sites/www.ibiblio.org/gentoo/ "
LANG="en_GB"
LINGUAS="en_GB"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages/x86"
PORTAGE_RSYNC_EXTRA_OPTS="--progress"
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'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="x86 3ds S3TC X a52 aac aalib acpi akode alsa amuled ao aotuv arts artswrappersuid asf audiofile bash-completion berkdb binary-drivers bitmap-fonts bittorrent browserplugin bzip2 cairo calendar cddb cdparanoia cdr chroot clamav clamd cli cpudetection css cups curl curlwrappers dbase devmap dga dlloader doc dri dv dvd dvdr dvdread elibc_glibc encode escreen esd examples exif extrafilters fame fat fbcon ffmpeg firefox flac foomaticdb ftp gdbm ggi gif gimp gimpprint gphoto2 gpm gs gstreamer gtk imagemagick imlib innodb input_devices_aiptek input_devices_evdev input_devices_joystick input_devices_keyboard input_devices_mouse input_devices_vmmouse interbase iodbc isdnlog java javascript jbig joystick jpeg jpeg2k kde kernel_linux libg++ linguas_en_GB live mad maildir mbox mikmod mime mjpeg mng mono motif mozcalendar moznocompose moznoirc mp3 mpeg mysql mysqli ncurses network nls nocardbus nodroproot nomac nptl nptlonly nsplugin odbc ogg opengl oss pcre pdf perl png posix postgres ppds pppd python qt3 quicktime readline reflection rtc samba scanner sdl sensord session slang slp smartcard sms sox spell spl sqlite sqlite3 ssl svg tcltk tcpd tetex tga theora timidity tk truetype truetype-fonts type1-fonts udev unicode userland_GNU vcd vdr video_cards_fbdev video_cards_nv video_cards_nvidia video_cards_vesa videos vim-with-x vorbis win32codecs wmf wxwindows xbase xine xml xmms xorg xscreensaver xv xvid yv12 zlib"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LDFLAGS
Comment 1 Raúl Porcel (RETIRED) gentoo-dev 2006-10-02 06:14:50 UTC
*** Bug 149847 has been marked as a duplicate of this bug. ***
Comment 2 dark_mail 2006-10-05 15:22:50 UTC
There are some patches to make it work under 2.6.17 and 2.6.18, to be found here:
http://server.linuxsys.net/oss/shfs/

The mailinglist entry is to be found here:
http://sourceforge.net/mailarchive/forum.php?thread_id=30665451&forum_id=40091

Have yet to find out if the 2.6.18 patch works
Comment 3 dark_mail 2006-10-05 15:56:39 UTC
OK, following some "advice" from
http://sourceforge.net/mailarchive/forum.php?thread_id=10038408&forum_id=40921 
I also removed the static keyword.

The version for 2.6.18 compiles, I can insert the module and connect, but segfaults on unconnecting shfsumount. All this when compiling the above mentioned package (without portage).

Linux kernel is 2.6.18-suspend2, gcc is 4.1.1

As a note:
shfs seems to be somewhat unmaintained:
The "patches" section of the homepage is inaccessible, bug reports 2 months and elder are not being answered.
Comment 4 Daniel Drake (RETIRED) gentoo-dev 2006-10-11 16:04:25 UTC
Created attachment 99392 [details, diff]
patch

Yes, shfs is unmaintained upstream. You might consider moving to sshfs-fuse.

This patch should fix shfs. It needs to be applied after the existing patches which are already in portage. Please test.
Comment 5 dark_mail 2006-10-12 05:20:06 UTC
Thanks.
Just switched to sshfs-fuse.
Yet another tool I don't have to recompile anymore everytime I compile a new kernel ...
Comment 6 Saleem Abdulrasool (RETIRED) gentoo-dev 2006-10-15 19:34:29 UTC
Added dsd's patch.