[Gluster-users] compiling samba vfs module
Tamas Papp
tompos at martos.bme.hu
Wed Sep 11 20:36:20 UTC 2013
On 09/11/2013 10:18 PM, Anand Avati wrote:
>
>
> checking api/glfs.h usability... yes
> checking api/glfs.h presence... yes
> checking for api/glfs.h... yes
> checking for glfs_init... no
>
> Cannot link to gfapi (glfs_init). Please specify --with-glusterfs=dir if necessary
>
>
> I see what can be causing this. configure.ac <http://configure.ac> has a hardcoded
> "-L$with_glusterfs/lib64" in line 74. That should be changed to "-L$with_glusterfs/lib
> -L$with_glusterfs/lib64" to allow for both dirs. I am suspecting you have libglusterfs installed
> under $prefx/usr/lib? For now you can create a symlink called lib64 to point to lib
> under /data/gluster/glusterfs-3.4.0final/debian/tmp/usr.
>
>
Do you mean configure.in and this section?
AC_ARG_WITH(glusterfs,
[ --with-glusterfs=DIR Use custom GlusterFS installation path (default=/usr)])
if test "x$with_glusterfs" = "x"; then
CPPFLAGS="$CPPFLAGS -I/usr/include/glusterfs";
LDFLAGS="$LDFLAGS -L/usr/lib -L/usr/lib64 -lgfapi -lglusterfs -lgfrpc -lgfxdr"
else
CPPFLAGS="$CPPFLAGS -I$with_glusterfs/include/glusterfs"
LDFLAGS="$LDFLAGS -L$with_glusterfs/lib -L$with_glusterfs/lib64 -lgfapi -lglusterfs -lgfrpc -lgfxdr"
fi
Anyway, ln -s lib lib64 didn't help.
BTW, libglusterfs is not installed separately on Ubuntu, the files are in glusterfs-common and it
lacks glfs.h.
Thanks,
tamas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://supercolony.gluster.org/pipermail/gluster-users/attachments/20130911/256feda4/attachment.html>
More information about the Gluster-users
mailing list