On Wed, 3 May 2017, Edgar Gabriel wrote:

> Hi,
> 
> I am trying to compile orangefs 2.9.6 on our cluster, and face multiple
> issues. The cluster runs OpenSuSE 13.1, kernel 3.11. The precise
> configure line that I use is:
> 
>   ./configure CFLAGS=-m64 --prefix=/opt/pvfs2/2.9.6
> --with-kernel=/usr/src/linux-3.11.10-21/ --enable-shared
> 
> config.log is attached to the email.
> 
> ----
> The first error is during compilation:
> 
> src/apps/user/ofs_setdirhint.c:14:24: fatal error: attr/xattr.h: No such
> file or directory
>   #include <attr/xattr.h>
>                          ^
> compilation terminated.
> make: *** [src/apps/user/ofs_setdirhint.o] Error 1
> make: *** Waiting for unfinished jobs....
> ---
> 
> If I change the include statement in that file from <attr/xattr.h> to
> <linux/xattr.h>, the compilation finishes however successfully.

There is a package you must install.  On Red Hat derived systems it is
libattr-devel.  On Debian derived systems it is libattr1-dev.

I'm not sure what it would be on OpenSuSE.  Google hints that it might
be called libattr-devel there as well.

> ------
> The second error occurs when trying to compile the kernel module:
> 
> crill:~/orangefs-2.9.6 # make kmod
> make[2]: *** No rule to make target `modules'.  Stop.
> make[1]: *** [default] Error 2
> make: *** [just_kmod] Error 2
> 
> That one I have not been able to fix, any ideas how to resolve this?

This is more tricky.  I suppose the /usr/src/linux-3.11.10-21 directory
exists?  Is there a package you need to install to get kernel headers.
kernel-devel maybe?

I've asked some questions around here and determined that we've built
the module successfully on OpenSuSE in the recent past.

Martin

> Thanks
> Edgar
> 
> 
> 
_______________________________________________
Pvfs2-users mailing list
[email protected]
http://www.beowulf-underground.org/mailman/listinfo/pvfs2-users

Reply via email to