[zfs-discuss] Re: How to compile from git repository

Fajar A. Nugraha list at fajar.net
Tue Jun 21 21:46:45 EDT 2011


On Wed, Jun 22, 2011 at 5:38 AM, Corwin <corwin7 at gmail.com> wrote:
> It's not building on 2.6.38 either:

Just wondering, have you take a look at Darik's PPA,
https://launchpad.net/~dajhorn/+archive/zfs?
It has zfs sources packaged as dkms, so it should work on Debian as well.

>
> # root at corwin:/home/michael/source/zfs-git/spl# make deb
>
> ...
>
> destname=spl-0.6.0/2.6.38-2-amd64; \
>        instdest=/tmp/spl-build-root-ty1kZDrh/BUILDROOT/spl-
> modules-0.6.0-rc4.x86_64/usr/src/$destname; \
>        echo "0.6.0" >$instdest/spl.release; \
>        for instfile in spl_config.h module/Module.symvers; do \
>                /usr/bin/install -c -D $instfile $instdest/$instfile;
> \
>        done
> make[4]: Leaving directory `/tmp/spl-build-root-ty1kZDrh/BUILD/
> spl-0.6.0'
> make[3]: Leaving directory `/tmp/spl-build-root-ty1kZDrh/BUILD/
> spl-0.6.0'
> make[2]: Leaving directory `/tmp/spl-build-root-ty1kZDrh/BUILD/
> spl-0.6.0'
> + /usr/lib/rpm/brp-compress
> + /usr/lib/rpm/brp-strip /usr/bin/strip
> + /usr/lib/rpm/brp-strip-static-archive /usr/bin/strip
> + /usr/lib/rpm/brp-strip-comment-note /usr/bin/strip /usr/bin/objdump
> Processing files: spl-modules-0.6.0-rc4_2.6.38_2_amd64.x86_64
> error: No file attributes configured
>
>
> RPM build errors:
>    db5 error(-30969) from dbenv->open: DB_VERSION_MISMATCH: Database
> environment version mismatch
>    cannot open Packages index using db5 -  (-30969)
>    cannot open Packages database in /root/.rpmdb
>    No file attributes configured

Since you're running Debian anyway, I'd suggest try deleting (or
moving somewhere else) /root/.rpmdb.

>From your logs, the binaries should already be compiled (it shows
"brp-compress", which is the on the final stage of packaging files
built), so a normal "make" and "make install" should give you usable
binaries.

-- 
Fajar



More information about the zfs-discuss mailing list