Find the answer to your Linux question:
Results 1 to 3 of 3
i got luft-0.9.7 source code but can't compile successfully. Code: Making all in localfs make[3]: Entering directory `/media/sda9/soft-source/system/lufs-0.9.7captive8/filesystems/localfs' make[3]: Nothing to be done for `all'. make[3]: Leaving directory `/media/sda9/soft-source/system/lufs-0.9.7captive8/filesystems/localfs' Making ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Nov 2005
    Posts
    2

    how to install lufs?


    i got luft-0.9.7 source code but can't compile successfully.
    Code:
    Making all in localfs
    make[3]: Entering directory `/media/sda9/soft-source/system/lufs-0.9.7captive8/filesystems/localfs'
    make[3]: Nothing to be done for `all'.
    make[3]: Leaving directory `/media/sda9/soft-source/system/lufs-0.9.7captive8/filesystems/localfs'
    Making all in gnetfs
    make[3]: Entering directory `/media/sda9/soft-source/system/lufs-0.9.7captive8/filesystems/gnetfs'
    /bin/sh ../../libtool --mode=link gcc  -O2 -Wall -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64   -o liblufs-gnetfs.la -rpath /usr/local/lib -version-info 1:0:0 xfer.lo search.lo vtree.lo gnetfs.lo libgnet.a -lpthread
    
    *** Warning: Linking the shared library liblufs-gnetfs.la against the
    *** static library libgnet.a is not portable!
    gcc -shared  .libs/xfer.o .libs/search.o .libs/vtree.o .libs/gnetfs.o  libgnet.a -lpthread  -Wl,-soname -Wl,liblufs-gnetfs.so.1 -o .libs/liblufs-gnetfs.so.1.0.0
    /usr/bin/ld: libgnet.a(gnet_engine.o): relocation R_X86_64_32 against `a local symbol' can not be used when making a shared object; recompile with -fPIC
    libgnet.a: could not read symbols: Bad value
    collect2: ld returned 1 exit status
    make[3]: *** [liblufs-gnetfs.la] Error 1
    make[3]: Leaving directory `/media/sda9/soft-source/system/lufs-0.9.7captive8/filesystems/gnetfs'
    make[2]: *** [all-recursive] Error 1
    make[2]: Leaving directory `/media/sda9/soft-source/system/lufs-0.9.7captive8/filesystems'
    make[1]: *** [all-recursive] Error 1
    make[1]: Leaving directory `/media/sda9/soft-source/system/lufs-0.9.7captive8'
    make: *** [all] Error 2
    why?

  2. #2
    Linux Guru lakerdonald's Avatar
    Join Date
    Jun 2004
    Location
    St. Petersburg, FL
    Posts
    5,035
    Code:
    make CFLAGS="-fPIC"
    Try that.

  3. #3
    Just Joined!
    Join Date
    Nov 2005
    Posts
    2
    thanks very much.
    i compiled successfully, but when i execute lufsd:
    Code:
    root@ubuntu:~# lufsd
    Preparing LUFS kernel module... Run /usr/local/share/lufs/prepmod if problems occur.
    lufs module not loaded: Try running /usr/local/share/lufs/prepmod to see more. at /usr/local/bin/lufsd line 180
    and

    Code:
    root@ubuntu:~# /usr/share/lufs/prepmod
    + /sbin/modprobe lufs 2>/dev/null
    Preparing LUFS kernel module... Run /usr/share/lufs/prepmod if problems occur.
    Running kernel version: 2.6.12-9-amd64-generic (base version 2.6.12)
    Destination module directory: /lib/modules/2.6.12-9-amd64-generic/kernel/fs/lufs
    Using kernel sources: /lib/modules/2.6.12-9-amd64-generic/build
    + set -e; /bin/mkdir -p `dirname /var/lib/lufs/lufs.ko`; /bin/rm -f /var/lib/lufs/lufs.ko; make -C /lib/modules/2.6.12-9-amd64-generic/build SUBDIRS="/usr/share/lufs/2.6" modules EXTRA_CFLAGS=""; /bin/mv -f /usr/share/lufs/2.6/lufs.ko /var/lib/lufs/lufs.ko; /bin/rm -f /usr/share/lufs/2.6/proc.o /usr/share/lufs/2.6/.proc.o.flags /usr/share/lufs/2.6/.proc.o.cmd /usr/share/lufs/2.6/inode.o /usr/share/lufs/2.6/.inode.o.flags /usr/share/lufs/2.6/.inode.o.cmd /usr/share/lufs/2.6/dir.o /usr/share/lufs/2.6/.dir.o.flags /usr/share/lufs/2.6/.dir.o.cmd /usr/share/lufs/2.6/file.o /usr/share/lufs/2.6/.file.o.flags /usr/share/lufs/2.6/.file.o.cmd /usr/share/lufs/2.6/symlink.o /usr/share/lufs/2.6/.symlink.o.flags /usr/share/lufs/2.6/.symlink.o.cmd /usr/share/lufs/2.6/lufs.mod.o /usr/share/lufs/2.6/.lufs.mod.o.flags /usr/share/lufs/2.6/.lufs.mod.o.cmd /usr/share/lufs/2.6/lufs.o /usr/share/lufs/2.6/.lufs.o.flags /usr/share/lufs/2.6/.lufs.o.cmd /usr/share/lufs/2.6/lufs.mod.c /usr/share/lufs/2.6/.lufs.ko.cmd;
    make: Entering directory `/usr/src/linux-source-2.6.12'
      CC [M]  /usr/share/lufs/2.6/dir.o
      CC [M]  /usr/share/lufs/2.6/file.o
    /usr/share/lufs/2.6/file.c:301: warning: initialization from incompatible pointer type
      CC [M]  /usr/share/lufs/2.6/inode.o
      CC [M]  /usr/share/lufs/2.6/proc.o
      CC [M]  /usr/share/lufs/2.6/symlink.o
      LD [M]  /usr/share/lufs/2.6/lufs.o
      Building modules, stage 2.
      MODPOST
    *** Warning: "kill_proc_info" [/usr/share/lufs/2.6/lufs.ko] undefined!
      CC      /usr/share/lufs/2.6/lufs.mod.o
      LD [M]  /usr/share/lufs/2.6/lufs.ko
    make: Leaving directory `/usr/src/linux-source-2.6.12'
    + /bin/rm -rf /lib/modules/2.6.12-9-amd64-generic/kernel/fs/lufs; /bin/mkdir -p /lib/modules/2.6.12-9-amd64-generic/kernel/fs/lufs; /bin/ln -s /var/lib/lufs/lufs.ko /lib/modules/2.6.12-9-amd64-generic/kernel/fs/lufs/lufs.ko
    + /sbin/rmmod lufs 2>/dev/null; /sbin/insmod /lib/modules/2.6.12-9-amd64-generic/kernel/fs/lufs/lufs.ko 2>/dev/null
    Failed to prepare lufs.ko module for your Linux kernel 2.6.12-9-amd64-generic.
    Detected Linux kernel sources "/lib/modules/2.6.12-9-amd64-generic/build" do not appear to be valid.
    Please install kernel-source-x.y.z.i386.rpm or kernel-headers_x.y.z_i386.deb.
    The following directory paths were search (first existing directory used):
                    /lib/modules/2.6.12-9-amd64-generic/build
                    /usr/src/kernel-headers-2.6.12-9-amd64-generic
                    /usr/src/linux-2.6.12-9-amd64-generic
                    /usr/src/linux-2.6.12
                    /usr/src/linux
                    /usr/src/kernel-source-2.6.12-9-amd64-generic
     at /usr/share/lufs/prepmod line 181
    help me please!!! thanks.

  4. $spacer_open
    $spacer_close

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •