hi All, The system is Ubuntu 12.04 I download and extracted source packages of samba and glusterfs and I built glusterfs, so I get the right necessary structure: glusterfs version is 3.4 and it's from ppa. # ls /data/gluster/glusterfs-3.4.0final/debian/tmp/usr/include/glusterfs/api/glfs.h /data/gluster/glusterfs-3.4.0final/debian/tmp/usr/include/glusterfs/api/glfs.h Unfortunately I'm getting this error: # ./configure --with-samba-source=/data/samba/samba-3.6.3/ --with-glusterfs=/data/gluster/glusterfs-3.4.0final/debian/tmp/usr/include/glusterfs/ checking for gcc... gcc checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ISO C89... none needed checking for a BSD-compatible install... /usr/bin/install -c checking build system type... x86_64-unknown-linux-gnu checking host system type... x86_64-unknown-linux-gnu checking how to run the C preprocessor... gcc -E checking for grep that handles long lines and -e... /bin/grep checking for egrep... /bin/grep -E checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking api/glfs.h usability... no checking api/glfs.h presence... no checking for api/glfs.h... no Cannot find api/glfs.h. Please specify --with-glusterfs=dir if necessary I don't see, what its problem is? Thanks, tamas
On Tue, Sep 10, 2013 at 2:57 PM, Tamas Papp <tompos at martos.bme.hu> wrote:> > --with-glusterfs=/data/gluster/glusterfs-3.4.0final/debian/tmp/usr/include/glusterfs >Make that --with-glusterfs=/data/gluster/glusterfs-3.4.0final/debian/tmp/usr/ (exclude /include/glusterfs suffix). Avati -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://supercolony.gluster.org/pipermail/gluster-users/attachments/20130910/d6cf5bb6/attachment.html>
Hi again, I did not manage to bring samba 4 up, with sambas glusterfs vfs module on centos 6.4 with glusterfs-3.4.0, too. I think it is only working with a special version. Greetings Daniel ----------------------------------------------- EDV Daniel M?ller Leitung EDV Tropenklinik Paul-Lechler-Krankenhaus Paul-Lechler-Str. 24 72076 T?bingen Tel.: 07071/206-463, Fax: 07071/206-499 eMail: mueller at tropenklinik.de Internet: www.tropenklinik.de ----------------------------------------------- -----Urspr?ngliche Nachricht----- Von: gluster-users-bounces at gluster.org [mailto:gluster-users-bounces at gluster.org] Im Auftrag von Tamas Papp Gesendet: Dienstag, 10. September 2013 23:57 An: gluster-users at gluster.org Betreff: [Gluster-users] compiling samba vfs module hi All, The system is Ubuntu 12.04 I download and extracted source packages of samba and glusterfs and I built glusterfs, so I get the right necessary structure: glusterfs version is 3.4 and it's from ppa. # ls /data/gluster/glusterfs-3.4.0final/debian/tmp/usr/include/glusterfs/api/glfs .h /data/gluster/glusterfs-3.4.0final/debian/tmp/usr/include/glusterfs/api/glfs .h Unfortunately I'm getting this error: # ./configure --with-samba-source=/data/samba/samba-3.6.3/ --with-glusterfs=/data/gluster/glusterfs-3.4.0final/debian/tmp/usr/include/g lusterfs/ checking for gcc... gcc checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ISO C89... none needed checking for a BSD-compatible install... /usr/bin/install -c checking build system type... x86_64-unknown-linux-gnu checking host system type... x86_64-unknown-linux-gnu checking how to run the C preprocessor... gcc -E checking for grep that handles long lines and -e... /bin/grep checking for egrep... /bin/grep -E checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking api/glfs.h usability... no checking api/glfs.h presence... no checking for api/glfs.h... no Cannot find api/glfs.h. Please specify --with-glusterfs=dir if necessary I don't see, what its problem is? Thanks, tamas _______________________________________________ Gluster-users mailing list Gluster-users at gluster.org http://supercolony.gluster.org/mailman/listinfo/gluster-users
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: [Gluster-users] 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 >
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: [Gluster-users] 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 >