Giter Site home page Giter Site logo

Comments (5)

behlendorf avatar behlendorf commented on August 17, 2024

This issue was fixed in the latest versions and will be fixed in the 0.5.0 which I hope to make soon. Can you pull the latest version from github and try again.

from zfs.

domdorn avatar domdorn commented on August 17, 2024
commit 7dfe24e94d3b7ecfb02ae8707404ec33937a6a7d
Merge: 12e83b7 641f300
Author: Brian Behlendorf 
Date:   Fri Jul 23 11:47:10 2010 -0700

gives me this error

/home/domdorn/tmp/zfs/zfs/module/zfs/include/sys/dmu.h:532: warning: ‘struct xuio’ declared inside parameter list
/home/domdorn/tmp/zfs/zfs/module/zfs/include/sys/dmu.h:533: warning: ‘struct xuio’ declared inside parameter list
  CC [M]  /home/domdorn/tmp/zfs/zfs/module/zcommon/zpool_prop.o
In file included from /home/domdorn/tmp/zfs/zfs/module/zfs/include/sys/spa.h:402,
                 from /home/domdorn/tmp/zfs/zfs/module/zfs/include/sys/zio.h:30,
                 from /home/domdorn/tmp/zfs/zfs/module/zcommon/zpool_prop.c:26:
/home/domdorn/tmp/zfs/zfs/module/zfs/include/sys/dmu.h:527: warning: ‘struct xuio’ declared inside parameter list
/home/domdorn/tmp/zfs/zfs/module/zfs/include/sys/dmu.h:527: warning: its scope is only this definition or declaration, which is probably not what you want
/home/domdorn/tmp/zfs/zfs/module/zfs/include/sys/dmu.h:528: warning: ‘struct xuio’ declared inside parameter list
/home/domdorn/tmp/zfs/zfs/module/zfs/include/sys/dmu.h:530: warning: ‘struct xuio’ declared inside parameter list
/home/domdorn/tmp/zfs/zfs/module/zfs/include/sys/dmu.h:531: warning: ‘struct xuio’ declared inside parameter list
/home/domdorn/tmp/zfs/zfs/module/zfs/include/sys/dmu.h:532: warning: ‘struct xuio’ declared inside parameter list
/home/domdorn/tmp/zfs/zfs/module/zfs/include/sys/dmu.h:533: warning: ‘struct xuio’ declared inside parameter list
  LD [M]  /home/domdorn/tmp/zfs/zfs/module/zcommon/zcommon.o
  CC [M]  /home/domdorn/tmp/zfs/zfs/module/zfs/arc.o
In file included from /home/domdorn/tmp/zfs/zfs/module/zfs/include/sys/spa.h:402,
                 from /home/domdorn/tmp/zfs/zfs/module/zfs/arc.c:119:
/home/domdorn/tmp/zfs/zfs/module/zfs/include/sys/dmu.h:527: warning: ‘struct xuio’ declared inside parameter list
/home/domdorn/tmp/zfs/zfs/module/zfs/include/sys/dmu.h:527: warning: its scope is only this definition or declaration, which is probably not what you want
/home/domdorn/tmp/zfs/zfs/module/zfs/include/sys/dmu.h:528: warning: ‘struct xuio’ declared inside parameter list
/home/domdorn/tmp/zfs/zfs/module/zfs/include/sys/dmu.h:530: warning: ‘struct xuio’ declared inside parameter list
/home/domdorn/tmp/zfs/zfs/module/zfs/include/sys/dmu.h:531: warning: ‘struct xuio’ declared inside parameter list
/home/domdorn/tmp/zfs/zfs/module/zfs/include/sys/dmu.h:532: warning: ‘struct xuio’ declared inside parameter list
/home/domdorn/tmp/zfs/zfs/module/zfs/include/sys/dmu.h:533: warning: ‘struct xuio’ declared inside parameter list
/home/domdorn/tmp/zfs/zfs/module/zfs/arc.c: In function ‘arc_evict’:
/home/domdorn/tmp/zfs/zfs/module/zfs/arc.c:1654: error: implicit declaration of function ‘ddi_get_lbolt’
make[5]: *** [/home/domdorn/tmp/zfs/zfs/module/zfs/arc.o] Error 1
make[4]: *** [/home/domdorn/tmp/zfs/zfs/module/zfs] Error 2
make[3]: *** [_module_/home/domdorn/tmp/zfs/zfs/module] Error 2
make[3]: Leaving directory `/usr/src/linux-headers-2.6.32-23-generic'
make[2]: *** [modules] Error 2
make[2]: Leaving directory `/home/domdorn/tmp/zfs/zfs/module'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/domdorn/tmp/zfs/zfs'
make: *** [all] Error 2

from zfs.

behlendorf avatar behlendorf commented on August 17, 2024

This failure looks like it was causing by building with an old version of the SPL. You will need to update both the spl and zfs and run a make distclean (or just rm and reclone the repos). Finally, make sure you don't have an old spl-devel package installed.

./configure && make distclean

from zfs.

domdorn avatar domdorn commented on August 17, 2024

works now.. wasn't sure how stable the master branch is.

test results:

root@domdorn-laptop:/home/domdorn/tmp/zfs/zfs# ./scripts/zconfig.sh 
test 1 - persistent zpool.cache: PASS
test 2 - scan disks for pools to import: PASS
test 3 - ZVOL sanity: PASS
test 4 - zpool import/export: PASS

root@domdorn-laptop:/home/domdorn/tmp/zfs/zfs# ./scripts/zpios-sanity.sh 
status    name        id    wr-data wr-ch   wr-bw   rd-data rd-ch   rd-bw
-------------------------------------------------------------------------------
PASS:     file-raid0   0    64m 64  8.85m   64m 64  3.13g
PASS:     file-raid10  0    64m 64  8.75m   64m 64  3.57g
PASS:     file-raidz   0    64m 64  5.12m   64m 64  2.78g
PASS:     file-raidz2  0    64m 64  2.60m   64m 64  1.47g
PASS:     lo-raid0     0    64m 64  29.73m  64m 64  3.13g
PASS:     lo-raid10    0    64m 64  5.37m   64m 64  1.93g
PASS:     lo-raidz     0    64m 64  5.44m   64m 64  1.47g
PASS:     lo-raidz2    0    64m 64  5.71m   64m 64  2.08g

Note: make install didn't install to /usr/libexec/zfs/zpios-sanity.sh, so I used the scripts in the ./scripts folder.

simply typing zfs gives the following error
root@domdorn-laptop:/home/domdorn/tmp/zfs/zfs# zfs
zfs: error while loading shared libraries: libspl.so.0: cannot open shared object file: No such file or directory

I had to run ldconfig as root to fix this. Maybe you can add this to an FAQ

thanks for this great driver/software.

from zfs.

behlendorf avatar behlendorf commented on August 17, 2024

Glad to hear it worked for you this time. Yes, the latest master I try and keep as stable as I can... but no promises! As for the other install issues there some work under way to add support to build proper .deb packages for folks to use. With luck that will show up in the next few months.

from zfs.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.