Tamas, Avati, Seems like the problem lies with this chuck of configure code: AC_CHECK_FUNC([glfs_init],[have_glfs_init=yes],[have_glfs_init=no]) if test "x$have_glfs_init" != "xyes"; then echo echo "Cannot link to gfapi (glfs_init). Please specify --with-glusterfs=dir if necessary" echo exit 1 fi So I'm guessing either something's up with the version of gfapi packaged in Ubuntu or there is a package missing somewhere. --Jose ----- Original Message ----- > From: "Tamas Papp" <tompos at martos.bme.hu> > To: "Anand Avati" <avati at gluster.org> > Cc: "Jose Rivera" <jrivera at redhat.com>, "gluster-users" <gluster-users at gluster.org> > Sent: Wednesday, September 11, 2013 3:36:20 PM > Subject: Re: compiling samba vfs module > > 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 >