[lustre-discuss] lustre 2.9.0 src rpm fails to build

Riccardo Veraldi Riccardo.Veraldi at cnaf.infn.it
Thu Apr 6 19:05:38 PDT 2017


I figured out what it was

On 4/6/17 6:02 PM, Riccardo Veraldi wrote:
> Hello,
>
> I am trying to build the lustre 2.9.0 server binary rpm.
>
> the default provided rpm will not work because they are built on a
> different version of ZFS.
>
> I am on RHEL73  kernel  3.10.0-514.10.2.el7.x86_64
>
> I installed lustre-2.9.0-1.src.rpm and lustre-dkms-2.9.0-1.el7.src.rpm
>
> when I try to build it stops here:
>
> libtool: link: gcc -shared  -fPIC -DPIC 
> .libs/mount_osd_zfs_la-mount_utils_zfs.o   -lzfs
> -L/var/lib/dkms/zfs/0.6.5.9/source/lib/libzfs/.libs/ -lkeyutils  -O2
> -pthread -Wl,-z -Wl,relro   -pthread -Wl,-soname -Wl,mount_osd_zfs.so -o
> .libs/mount_osd_zfs.so
> /usr/bin/ld: cannot find -lzfs
> collect2: error: ld returned 1 exit status
> make[4]: *** [mount_osd_zfs.la] Error 1
> make[4]: *** Waiting for unfinished jobs....
> libtool: link: gcc -fPIC -D_GNU_SOURCE -D_LARGEFILE64_SOURCE=1
> -D_FILE_OFFSET_BITS=64 -DLUSTRE_UTILS=1 -g -O2 -Werror -Wall -Werror
> -Wl,-z -Wl,relro -o req_layout req-layout.o  -L../../lnet/utils -lkeyutils
> libtool: link: gcc -fPIC -D_GNU_SOURCE -D_LARGEFILE64_SOURCE=1
> -D_FILE_OFFSET_BITS=64 -DLUSTRE_UTILS=1 -g -O2 -Werror -Wall -Werror
> -rdynamic -Wl,-z -Wl,relro -o mount.lustre mount_lustre-mount_lustre.o
> mount_lustre-mount_utils.o mount_lustre-err_util.o
> mount_lustre-sk_utils.o  -ldl ../../lnet/utils/libptlctl.a
> ../../libcfs/libcfs/libcfsutil.a ../../libcfs/libcfs/libcfs.a -lselinux
> -lcrypto -lssl -lm -lkeyutils
> libtool: link: gcc -fPIC -D_GNU_SOURCE -D_LARGEFILE64_SOURCE=1
> -D_FILE_OFFSET_BITS=64 -DLUSTRE_UTILS=1 -g -O2 -Werror -Wall -Werror
> -Wl,-z -Wl,relro -o l_getidentity l_getidentity.o  -L../../lnet/utils
> ../../lnet/utils/libptlctl.a ../../libcfs/libcfs/libcfsutil.a
> ../../libcfs/libcfs/libcfs.a -lkeyutils
> make[3]: *** [all-recursive] Error 1
> make[2]: *** [all-recursive] Error 1
> make[1]: *** [all-recursive] Error 1
> make: *** [all] Error 2
> error: Bad exit status from /var/tmp/rpm-tmp.O2f7pv (%build)
>
> these are the zfs package which are on my system
>
> zfs-0.6.5.9-1.el7_3.centos.x86_64
> zfs-dkms-0.6.5.9-1.el7_3.centos.noarch
> libzfs2-0.6.5.9-1.el7_3.centos.x86_64
> zfs-release-1-4.el7_3.centos.noarch
>
> and libzfs is in the correct place
>
> lrwxrwxrwx 1 root root     20 Apr  6 16:37 /usr/lib64/libzfs_core.so.1
> -> libzfs_core.so.1.0.0
> -rwxr-xr-x 1 root root  15576 Feb  3 15:44 /usr/lib64/libzfs_core.so.1.0.0
> lrwxrwxrwx 1 root root     15 Apr  6 16:37 /usr/lib64/libzfs.so.2 ->
> libzfs.so.2.0.0
> -rwxr-xr-x 1 root root 276552 Feb  3 15:44 /usr/lib64/libzfs.so.2.0.0
>
>
> any other hints I may need ?
>
> thanks
>
>
> Rick
>
>
>
>
>
> _______________________________________________
> lustre-discuss mailing list
> lustre-discuss at lists.lustre.org
> http://lists.lustre.org/listinfo.cgi/lustre-discuss-lustre.org




More information about the lustre-discuss mailing list