Re: [Gluster-devel] Plans for FreeBSD support?

2007-07-26 Thread Hitesh

Avati,

The idea is to be disciplined and stick to the tasks on hand, once we've 
completed *all tasks related to 1.3 stable release,* we will can 
re-evaluate the Roadmap and re-caliberate resources for FreeBSD.


For now please focus on 1.3 stable release.

Thanks

Hitesh


Hitesh wrote:

Avati,
*I do not want an time spent in development work on FreeBSD !!!

*We are only to support anyone trying to port GlusterFS on FreeBSD. 
Please convey this unequivocally to everyone on the team; also, Vikas 
has been given this task of supporting FreeBSD port.


Hitesh



Anand Avati wrote:

Attila,
Thanks again for your initial work on helping porting glusterfs to 
FreeBSD.
Based on your help we have been able to get glusterfsd to work on 
FreeBSD

and export volumes successfully.
 We are willing to provide you more active support in getting glusterfs
ported. At the time of your previous patch submission there was a 
transition
in codebase from glusterfs--mainline--2.4 to 
glusterfs--mainline--2.5, and

your patches were on 2.4, where related code were being changed in
glusterfs--mainline--2.5, hence I couldnt apply those patches 
immediately.

Apologies for the delay.
 If you can give a shot in getting the client running as well on 
FreeBSD,

we will all appretiate it a lot!

thanks again,
avati

2007/5/11, Attila Nagy [EMAIL PROTECTED]:


Hello,

I would like to reply to the following e-mail (I've just subscribed, so
this will be a new thread, sorry):
http://lists.nongnu.org/archive/html/gluster-devel/2007-05/msg00113.html 



First of all, if you need a (or more than one) FreeBSD developer
machine(s), just tell me, I can give access to them (it's possible that
installing FreeBSD on a local machine can be easier).

BTW, I've tried to compile it. I have a FreeBSD/amd64 6-STABLE machine
and glusterfs-1.3.0-pre3 (tell me if it's not the right version to 
start

with).

So far I did the following:
- gunzip/untar
- -ldl cleaning from configure
- ./configure --disable-ibverbs LDFLAGS=-L/usr/local/lib -L/usr/lib
-I/usr/include -I/usr/local/include LIBS=-lpthread CC=gcc42 
CXX=g++42

(I use gcc42 because I saw on the webpage, that at least gcc 4.1 should
be used when developing)
- make CFLAGS=-L/usr/local/lib -L/usr/lib -I/usr/include
-I/usr/local/include -DFUSE_USE_VERSION=26 CC=gcc42 CXX=g++42
(it's possible that FUSE_USE_VERSION was only needed for 1.2.3, I can't
remember, I started with that first, but thought that I should use the
newer one)

The compilation first fails at:
gcc -DPACKAGE_NAME=\glusterfs\ -DPACKAGE_TARNAME=\glusterfs\
-DPACKAGE_VERSION=\1.3.0-pre3\ -DPACKAGE_STRING=\glusterfs
1.3.0-pre3\ -DPACKAGE_BUGREPORT=\[EMAIL PROTECTED]
-DPACKAGE=\glusterfs\ -DVERSION=\1.3.0-pre3\ -DSTDC_HEADERS=1
-DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1
-DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1
-DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 
-DHAVE_DLFCN_H=1

-DYYTEXT_POINTER=1 -DHAVE_LIBPTHREAD=1 -DHAVE_LIBDL=1 -DHAVE_LIBFUSE=1
-DHAVE_BACKTRACE=1 -I. -I. -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE
-DXLATORDIR=\/usr/local/lib/glusterfs/1.3.0-pre3/xlator\
-DSCHEDULERDIR=\/usr/local/lib/glusterfs/1.3.0-pre3/scheduler\
-DTRANSPORTDIR=\/usr/local/lib/glusterfs/1.3.0-pre3/transport\
-DYY_NO_UNPUT -fPIC -Wall -g -shared -nostartfiles -rdynamic
-L/usr/local/lib -L/usr/lib -I/usr/include -I/usr/local/include -MT
libglusterfs_la-spec.lex.lo -MD -MP -MF
.deps/libglusterfs_la-spec.lex.Tpo -c spec.lex.c  -fPIC -DPIC -o
.libs/libglusterfs_la-spec.lex.o
./spec.l: In function `yylex':
./spec.l:41: error: `yylval' undeclared (first use in this function)
./spec.l:41: error: (Each undeclared identifier is reported only once
./spec.l:41: error: for each function it appears in.)
./spec.l:41: warning: cast from pointer to integer of different size
*** Error code 1

Stop in /src/glusterfs-1.3.0-pre3/libglusterfs/src.
*** Error code 1

Stop in /src/glusterfs-1.3.0-pre3/libglusterfs.
*** Error code 1

I've hacked the following into libglusterfs/src/spec.l (YYSTYPE lines):
%{

#include xlator.h
#include y.tab.h
#include string.h

#define YYSTYPE char *
extern YYSTYPE yylval;

%}

Retry.

Now it stops at:
gcc -DPACKAGE_NAME=\glusterfs\ -DPACKAGE_TARNAME=\glusterfs\
-DPACKAGE_VERSION=\1.3.0-pre3\ -DPACKAGE_STRING=\glusterfs
1.3.0-pre3\ -DPACKAGE_BUGREPORT=\[EMAIL PROTECTED]
-DPACKAGE=\glusterfs\ -DVERSION=\1.3.0-pre3\ -DSTDC_HEADERS=1
-DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1
-DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1
-DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 
-DHAVE_DLFCN_H=1

-DYYTEXT_POINTER=1 -DHAVE_LIBPTHREAD=1 -DHAVE_LIBDL=1 -DHAVE_LIBFUSE=1
-DHAVE_BACKTRACE=1 -I. -I. -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE
-DXLATORDIR=\/usr/local/lib/glusterfs/1.3.0-pre3/xlator\
-DSCHEDULERDIR=\/usr/local/lib/glusterfs/1.3.0-pre3/scheduler\
-DTRANSPORTDIR=\/usr/local/lib/glusterfs/1.3.0-pre3/transport\
-DYY_NO_UNPUT -fPIC -Wall -g -shared -nostartfiles -rdynamic
-L/usr/local/lib 

Re: [Gluster-devel] Plans for FreeBSD support?

2007-07-26 Thread Hitesh

Avati,
*I do not want an time spent in development work on FreeBSD !!!

*We are only to support anyone trying to port GlusterFS on FreeBSD. 
Please convey this unequivocally to everyone on the team; also, Vikas 
has been given this task of supporting FreeBSD port.


Hitesh



Anand Avati wrote:

Attila,
Thanks again for your initial work on helping porting glusterfs to 
FreeBSD.

Based on your help we have been able to get glusterfsd to work on FreeBSD
and export volumes successfully.
 We are willing to provide you more active support in getting glusterfs
ported. At the time of your previous patch submission there was a 
transition
in codebase from glusterfs--mainline--2.4 to glusterfs--mainline--2.5, 
and

your patches were on 2.4, where related code were being changed in
glusterfs--mainline--2.5, hence I couldnt apply those patches 
immediately.

Apologies for the delay.
 If you can give a shot in getting the client running as well on FreeBSD,
we will all appretiate it a lot!

thanks again,
avati

2007/5/11, Attila Nagy [EMAIL PROTECTED]:


Hello,

I would like to reply to the following e-mail (I've just subscribed, so
this will be a new thread, sorry):
http://lists.nongnu.org/archive/html/gluster-devel/2007-05/msg00113.html

First of all, if you need a (or more than one) FreeBSD developer
machine(s), just tell me, I can give access to them (it's possible that
installing FreeBSD on a local machine can be easier).

BTW, I've tried to compile it. I have a FreeBSD/amd64 6-STABLE machine
and glusterfs-1.3.0-pre3 (tell me if it's not the right version to start
with).

So far I did the following:
- gunzip/untar
- -ldl cleaning from configure
- ./configure --disable-ibverbs LDFLAGS=-L/usr/local/lib -L/usr/lib
-I/usr/include -I/usr/local/include LIBS=-lpthread CC=gcc42 CXX=g++42
(I use gcc42 because I saw on the webpage, that at least gcc 4.1 should
be used when developing)
- make CFLAGS=-L/usr/local/lib -L/usr/lib -I/usr/include
-I/usr/local/include -DFUSE_USE_VERSION=26 CC=gcc42 CXX=g++42
(it's possible that FUSE_USE_VERSION was only needed for 1.2.3, I can't
remember, I started with that first, but thought that I should use the
newer one)

The compilation first fails at:
gcc -DPACKAGE_NAME=\glusterfs\ -DPACKAGE_TARNAME=\glusterfs\
-DPACKAGE_VERSION=\1.3.0-pre3\ -DPACKAGE_STRING=\glusterfs
1.3.0-pre3\ -DPACKAGE_BUGREPORT=\[EMAIL PROTECTED]
-DPACKAGE=\glusterfs\ -DVERSION=\1.3.0-pre3\ -DSTDC_HEADERS=1
-DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1
-DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1
-DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1
-DYYTEXT_POINTER=1 -DHAVE_LIBPTHREAD=1 -DHAVE_LIBDL=1 -DHAVE_LIBFUSE=1
-DHAVE_BACKTRACE=1 -I. -I. -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE
-DXLATORDIR=\/usr/local/lib/glusterfs/1.3.0-pre3/xlator\
-DSCHEDULERDIR=\/usr/local/lib/glusterfs/1.3.0-pre3/scheduler\
-DTRANSPORTDIR=\/usr/local/lib/glusterfs/1.3.0-pre3/transport\
-DYY_NO_UNPUT -fPIC -Wall -g -shared -nostartfiles -rdynamic
-L/usr/local/lib -L/usr/lib -I/usr/include -I/usr/local/include -MT
libglusterfs_la-spec.lex.lo -MD -MP -MF
.deps/libglusterfs_la-spec.lex.Tpo -c spec.lex.c  -fPIC -DPIC -o
.libs/libglusterfs_la-spec.lex.o
./spec.l: In function `yylex':
./spec.l:41: error: `yylval' undeclared (first use in this function)
./spec.l:41: error: (Each undeclared identifier is reported only once
./spec.l:41: error: for each function it appears in.)
./spec.l:41: warning: cast from pointer to integer of different size
*** Error code 1

Stop in /src/glusterfs-1.3.0-pre3/libglusterfs/src.
*** Error code 1

Stop in /src/glusterfs-1.3.0-pre3/libglusterfs.
*** Error code 1

I've hacked the following into libglusterfs/src/spec.l (YYSTYPE lines):
%{

#include xlator.h
#include y.tab.h
#include string.h

#define YYSTYPE char *
extern YYSTYPE yylval;

%}

Retry.

Now it stops at:
gcc -DPACKAGE_NAME=\glusterfs\ -DPACKAGE_TARNAME=\glusterfs\
-DPACKAGE_VERSION=\1.3.0-pre3\ -DPACKAGE_STRING=\glusterfs
1.3.0-pre3\ -DPACKAGE_BUGREPORT=\[EMAIL PROTECTED]
-DPACKAGE=\glusterfs\ -DVERSION=\1.3.0-pre3\ -DSTDC_HEADERS=1
-DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1
-DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1
-DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1
-DYYTEXT_POINTER=1 -DHAVE_LIBPTHREAD=1 -DHAVE_LIBDL=1 -DHAVE_LIBFUSE=1
-DHAVE_BACKTRACE=1 -I. -I. -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE
-DXLATORDIR=\/usr/local/lib/glusterfs/1.3.0-pre3/xlator\
-DSCHEDULERDIR=\/usr/local/lib/glusterfs/1.3.0-pre3/scheduler\
-DTRANSPORTDIR=\/usr/local/lib/glusterfs/1.3.0-pre3/transport\
-DYY_NO_UNPUT -fPIC -Wall -g -shared -nostartfiles -rdynamic
-L/usr/local/lib -L/usr/lib -I/usr/include -I/usr/local/include -MT
libglusterfs_la-transport.lo -MD -MP -MF
.deps/libglusterfs_la-transport.Tpo -c transport.c  -fPIC -DPIC -o
.libs/libglusterfs_la-transport.o
In file included from transport.c:25:
logging.h:43: error: syntax error before _gf_log
logging.h:46: error: syntax error 

Re: [Gluster-devel] Plans for FreeBSD support?

2007-07-25 Thread Anand Avati

Attila,
Thanks again for your initial work on helping porting glusterfs to FreeBSD.
Based on your help we have been able to get glusterfsd to work on FreeBSD
and export volumes successfully.
 We are willing to provide you more active support in getting glusterfs
ported. At the time of your previous patch submission there was a transition
in codebase from glusterfs--mainline--2.4 to glusterfs--mainline--2.5, and
your patches were on 2.4, where related code were being changed in
glusterfs--mainline--2.5, hence I couldnt apply those patches immediately.
Apologies for the delay.
 If you can give a shot in getting the client running as well on FreeBSD,
we will all appretiate it a lot!

thanks again,
avati

2007/5/11, Attila Nagy [EMAIL PROTECTED]:


Hello,

I would like to reply to the following e-mail (I've just subscribed, so
this will be a new thread, sorry):
http://lists.nongnu.org/archive/html/gluster-devel/2007-05/msg00113.html

First of all, if you need a (or more than one) FreeBSD developer
machine(s), just tell me, I can give access to them (it's possible that
installing FreeBSD on a local machine can be easier).

BTW, I've tried to compile it. I have a FreeBSD/amd64 6-STABLE machine
and glusterfs-1.3.0-pre3 (tell me if it's not the right version to start
with).

So far I did the following:
- gunzip/untar
- -ldl cleaning from configure
- ./configure --disable-ibverbs LDFLAGS=-L/usr/local/lib -L/usr/lib
-I/usr/include -I/usr/local/include LIBS=-lpthread CC=gcc42 CXX=g++42
(I use gcc42 because I saw on the webpage, that at least gcc 4.1 should
be used when developing)
- make CFLAGS=-L/usr/local/lib -L/usr/lib -I/usr/include
-I/usr/local/include -DFUSE_USE_VERSION=26 CC=gcc42 CXX=g++42
(it's possible that FUSE_USE_VERSION was only needed for 1.2.3, I can't
remember, I started with that first, but thought that I should use the
newer one)

The compilation first fails at:
gcc -DPACKAGE_NAME=\glusterfs\ -DPACKAGE_TARNAME=\glusterfs\
-DPACKAGE_VERSION=\1.3.0-pre3\ -DPACKAGE_STRING=\glusterfs
1.3.0-pre3\ -DPACKAGE_BUGREPORT=\[EMAIL PROTECTED]
-DPACKAGE=\glusterfs\ -DVERSION=\1.3.0-pre3\ -DSTDC_HEADERS=1
-DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1
-DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1
-DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1
-DYYTEXT_POINTER=1 -DHAVE_LIBPTHREAD=1 -DHAVE_LIBDL=1 -DHAVE_LIBFUSE=1
-DHAVE_BACKTRACE=1 -I. -I. -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE
-DXLATORDIR=\/usr/local/lib/glusterfs/1.3.0-pre3/xlator\
-DSCHEDULERDIR=\/usr/local/lib/glusterfs/1.3.0-pre3/scheduler\
-DTRANSPORTDIR=\/usr/local/lib/glusterfs/1.3.0-pre3/transport\
-DYY_NO_UNPUT -fPIC -Wall -g -shared -nostartfiles -rdynamic
-L/usr/local/lib -L/usr/lib -I/usr/include -I/usr/local/include -MT
libglusterfs_la-spec.lex.lo -MD -MP -MF
.deps/libglusterfs_la-spec.lex.Tpo -c spec.lex.c  -fPIC -DPIC -o
.libs/libglusterfs_la-spec.lex.o
./spec.l: In function `yylex':
./spec.l:41: error: `yylval' undeclared (first use in this function)
./spec.l:41: error: (Each undeclared identifier is reported only once
./spec.l:41: error: for each function it appears in.)
./spec.l:41: warning: cast from pointer to integer of different size
*** Error code 1

Stop in /src/glusterfs-1.3.0-pre3/libglusterfs/src.
*** Error code 1

Stop in /src/glusterfs-1.3.0-pre3/libglusterfs.
*** Error code 1

I've hacked the following into libglusterfs/src/spec.l (YYSTYPE lines):
%{

#include xlator.h
#include y.tab.h
#include string.h

#define YYSTYPE char *
extern YYSTYPE yylval;

%}

Retry.

Now it stops at:
gcc -DPACKAGE_NAME=\glusterfs\ -DPACKAGE_TARNAME=\glusterfs\
-DPACKAGE_VERSION=\1.3.0-pre3\ -DPACKAGE_STRING=\glusterfs
1.3.0-pre3\ -DPACKAGE_BUGREPORT=\[EMAIL PROTECTED]
-DPACKAGE=\glusterfs\ -DVERSION=\1.3.0-pre3\ -DSTDC_HEADERS=1
-DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1
-DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1
-DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1
-DYYTEXT_POINTER=1 -DHAVE_LIBPTHREAD=1 -DHAVE_LIBDL=1 -DHAVE_LIBFUSE=1
-DHAVE_BACKTRACE=1 -I. -I. -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE
-DXLATORDIR=\/usr/local/lib/glusterfs/1.3.0-pre3/xlator\
-DSCHEDULERDIR=\/usr/local/lib/glusterfs/1.3.0-pre3/scheduler\
-DTRANSPORTDIR=\/usr/local/lib/glusterfs/1.3.0-pre3/transport\
-DYY_NO_UNPUT -fPIC -Wall -g -shared -nostartfiles -rdynamic
-L/usr/local/lib -L/usr/lib -I/usr/include -I/usr/local/include -MT
libglusterfs_la-transport.lo -MD -MP -MF
.deps/libglusterfs_la-transport.Tpo -c transport.c  -fPIC -DPIC -o
.libs/libglusterfs_la-transport.o
In file included from transport.c:25:
logging.h:43: error: syntax error before _gf_log
logging.h:46: error: syntax error before int32_t
logging.h:48: warning: type defaults to `int' in declaration of `_gf_log'
logging.h:48: warning: data definition has no type or storage class
logging.h:49: error: syntax error before gf_log_init
logging.h:49: warning: type defaults to `int' in declaration of
`gf_log_init'
logging.h:49: 

Re: [Gluster-devel] Plans for FreeBSD support?

2007-05-16 Thread Anand Avati

Attila,
 Great work! I'm applying the appropriate fixes...

thanks!
avati

2007/5/11, Attila Nagy [EMAIL PROTECTED]:

Hello,

I would like to reply to the following e-mail (I've just subscribed, so
this will be a new thread, sorry):
http://lists.nongnu.org/archive/html/gluster-devel/2007-05/msg00113.html

First of all, if you need a (or more than one) FreeBSD developer
machine(s), just tell me, I can give access to them (it's possible that
installing FreeBSD on a local machine can be easier).

BTW, I've tried to compile it. I have a FreeBSD/amd64 6-STABLE machine
and glusterfs-1.3.0-pre3 (tell me if it's not the right version to start
with).

So far I did the following:
- gunzip/untar
- -ldl cleaning from configure
- ./configure --disable-ibverbs LDFLAGS=-L/usr/local/lib -L/usr/lib
-I/usr/include -I/usr/local/include LIBS=-lpthread CC=gcc42 CXX=g++42
(I use gcc42 because I saw on the webpage, that at least gcc 4.1 should
be used when developing)
- make CFLAGS=-L/usr/local/lib -L/usr/lib -I/usr/include
-I/usr/local/include -DFUSE_USE_VERSION=26 CC=gcc42 CXX=g++42
(it's possible that FUSE_USE_VERSION was only needed for 1.2.3, I can't
remember, I started with that first, but thought that I should use the
newer one)

The compilation first fails at:
 gcc -DPACKAGE_NAME=\glusterfs\ -DPACKAGE_TARNAME=\glusterfs\
-DPACKAGE_VERSION=\1.3.0-pre3\ -DPACKAGE_STRING=\glusterfs
1.3.0-pre3\ -DPACKAGE_BUGREPORT=\[EMAIL PROTECTED]
-DPACKAGE=\glusterfs\ -DVERSION=\1.3.0-pre3\ -DSTDC_HEADERS=1
-DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1
-DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1
-DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1
-DYYTEXT_POINTER=1 -DHAVE_LIBPTHREAD=1 -DHAVE_LIBDL=1 -DHAVE_LIBFUSE=1
-DHAVE_BACKTRACE=1 -I. -I. -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE
-DXLATORDIR=\/usr/local/lib/glusterfs/1.3.0-pre3/xlator\
-DSCHEDULERDIR=\/usr/local/lib/glusterfs/1.3.0-pre3/scheduler\
-DTRANSPORTDIR=\/usr/local/lib/glusterfs/1.3.0-pre3/transport\
-DYY_NO_UNPUT -fPIC -Wall -g -shared -nostartfiles -rdynamic
-L/usr/local/lib -L/usr/lib -I/usr/include -I/usr/local/include -MT
libglusterfs_la-spec.lex.lo -MD -MP -MF
.deps/libglusterfs_la-spec.lex.Tpo -c spec.lex.c  -fPIC -DPIC -o
.libs/libglusterfs_la-spec.lex.o
./spec.l: In function `yylex':
./spec.l:41: error: `yylval' undeclared (first use in this function)
./spec.l:41: error: (Each undeclared identifier is reported only once
./spec.l:41: error: for each function it appears in.)
./spec.l:41: warning: cast from pointer to integer of different size
*** Error code 1

Stop in /src/glusterfs-1.3.0-pre3/libglusterfs/src.
*** Error code 1

Stop in /src/glusterfs-1.3.0-pre3/libglusterfs.
*** Error code 1

I've hacked the following into libglusterfs/src/spec.l (YYSTYPE lines):
%{

#include xlator.h
#include y.tab.h
#include string.h

#define YYSTYPE char *
extern YYSTYPE yylval;

%}

Retry.

Now it stops at:
 gcc -DPACKAGE_NAME=\glusterfs\ -DPACKAGE_TARNAME=\glusterfs\
-DPACKAGE_VERSION=\1.3.0-pre3\ -DPACKAGE_STRING=\glusterfs
1.3.0-pre3\ -DPACKAGE_BUGREPORT=\[EMAIL PROTECTED]
-DPACKAGE=\glusterfs\ -DVERSION=\1.3.0-pre3\ -DSTDC_HEADERS=1
-DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1
-DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1
-DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1
-DYYTEXT_POINTER=1 -DHAVE_LIBPTHREAD=1 -DHAVE_LIBDL=1 -DHAVE_LIBFUSE=1
-DHAVE_BACKTRACE=1 -I. -I. -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE
-DXLATORDIR=\/usr/local/lib/glusterfs/1.3.0-pre3/xlator\
-DSCHEDULERDIR=\/usr/local/lib/glusterfs/1.3.0-pre3/scheduler\
-DTRANSPORTDIR=\/usr/local/lib/glusterfs/1.3.0-pre3/transport\
-DYY_NO_UNPUT -fPIC -Wall -g -shared -nostartfiles -rdynamic
-L/usr/local/lib -L/usr/lib -I/usr/include -I/usr/local/include -MT
libglusterfs_la-transport.lo -MD -MP -MF
.deps/libglusterfs_la-transport.Tpo -c transport.c  -fPIC -DPIC -o
.libs/libglusterfs_la-transport.o
In file included from transport.c:25:
logging.h:43: error: syntax error before _gf_log
logging.h:46: error: syntax error before int32_t
logging.h:48: warning: type defaults to `int' in declaration of `_gf_log'
logging.h:48: warning: data definition has no type or storage class
logging.h:49: error: syntax error before gf_log_init
logging.h:49: warning: type defaults to `int' in declaration of
`gf_log_init'
logging.h:49: warning: data definition has no type or storage class
*** Error code 1

Stop in /src/glusterfs-1.3.0-pre3/libglusterfs/src.
*** Error code 1

Stop in /src/glusterfs-1.3.0-pre3/libglusterfs.
*** Error code 1

For a quick hack, I removed
#include logging.h
from libglusterfs/src/transport.c

Next try.

Stops at:
 gcc -DPACKAGE_NAME=\glusterfs\ -DPACKAGE_TARNAME=\glusterfs\
-DPACKAGE_VERSION=\1.3.0-pre3\ -DPACKAGE_STRING=\glusterfs
1.3.0-pre3\ -DPACKAGE_BUGREPORT=\[EMAIL PROTECTED]
-DPACKAGE=\glusterfs\ -DVERSION=\1.3.0-pre3\ -DSTDC_HEADERS=1
-DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1
-DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 

Re: [Gluster-devel] Plans for FreeBSD support?

2007-05-15 Thread Francisco Reyes

Anand Avati writes:


If someone is willing to start testing glusterfs on freebsd and report
the issues he/she is facing, we can start fixing those issues as they
come.


Attila Nagy replied to the thread and he did some excellent reporting of 
what problems he had when he tried to install FreeBSD.

Is his reporting enough for you to start looking into it?


___
Gluster-devel mailing list
Gluster-devel@nongnu.org
http://lists.nongnu.org/mailman/listinfo/gluster-devel


Re: [Gluster-devel] Plans for FreeBSD support?

2007-05-11 Thread Attila Nagy

Hello,

I would like to reply to the following e-mail (I've just subscribed, so 
this will be a new thread, sorry): 
http://lists.nongnu.org/archive/html/gluster-devel/2007-05/msg00113.html


First of all, if you need a (or more than one) FreeBSD developer 
machine(s), just tell me, I can give access to them (it's possible that 
installing FreeBSD on a local machine can be easier).


BTW, I've tried to compile it. I have a FreeBSD/amd64 6-STABLE machine 
and glusterfs-1.3.0-pre3 (tell me if it's not the right version to start 
with).


So far I did the following:
- gunzip/untar
- -ldl cleaning from configure
- ./configure --disable-ibverbs LDFLAGS=-L/usr/local/lib -L/usr/lib 
-I/usr/include -I/usr/local/include LIBS=-lpthread CC=gcc42 CXX=g++42
(I use gcc42 because I saw on the webpage, that at least gcc 4.1 should 
be used when developing)
- make CFLAGS=-L/usr/local/lib -L/usr/lib -I/usr/include 
-I/usr/local/include -DFUSE_USE_VERSION=26 CC=gcc42 CXX=g++42
(it's possible that FUSE_USE_VERSION was only needed for 1.2.3, I can't 
remember, I started with that first, but thought that I should use the 
newer one)


The compilation first fails at:
gcc -DPACKAGE_NAME=\glusterfs\ -DPACKAGE_TARNAME=\glusterfs\ 
-DPACKAGE_VERSION=\1.3.0-pre3\ -DPACKAGE_STRING=\glusterfs 
1.3.0-pre3\ -DPACKAGE_BUGREPORT=\[EMAIL PROTECTED] 
-DPACKAGE=\glusterfs\ -DVERSION=\1.3.0-pre3\ -DSTDC_HEADERS=1 
-DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 
-DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 
-DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 
-DYYTEXT_POINTER=1 -DHAVE_LIBPTHREAD=1 -DHAVE_LIBDL=1 -DHAVE_LIBFUSE=1 
-DHAVE_BACKTRACE=1 -I. -I. -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE 
-DXLATORDIR=\/usr/local/lib/glusterfs/1.3.0-pre3/xlator\ 
-DSCHEDULERDIR=\/usr/local/lib/glusterfs/1.3.0-pre3/scheduler\ 
-DTRANSPORTDIR=\/usr/local/lib/glusterfs/1.3.0-pre3/transport\ 
-DYY_NO_UNPUT -fPIC -Wall -g -shared -nostartfiles -rdynamic 
-L/usr/local/lib -L/usr/lib -I/usr/include -I/usr/local/include -MT 
libglusterfs_la-spec.lex.lo -MD -MP -MF 
.deps/libglusterfs_la-spec.lex.Tpo -c spec.lex.c  -fPIC -DPIC -o 
.libs/libglusterfs_la-spec.lex.o

./spec.l: In function `yylex':
./spec.l:41: error: `yylval' undeclared (first use in this function)
./spec.l:41: error: (Each undeclared identifier is reported only once
./spec.l:41: error: for each function it appears in.)
./spec.l:41: warning: cast from pointer to integer of different size
*** Error code 1

Stop in /src/glusterfs-1.3.0-pre3/libglusterfs/src.
*** Error code 1

Stop in /src/glusterfs-1.3.0-pre3/libglusterfs.
*** Error code 1

I've hacked the following into libglusterfs/src/spec.l (YYSTYPE lines):
%{

#include xlator.h
#include y.tab.h
#include string.h

#define YYSTYPE char *
extern YYSTYPE yylval;

%}

Retry.

Now it stops at:
gcc -DPACKAGE_NAME=\glusterfs\ -DPACKAGE_TARNAME=\glusterfs\ 
-DPACKAGE_VERSION=\1.3.0-pre3\ -DPACKAGE_STRING=\glusterfs 
1.3.0-pre3\ -DPACKAGE_BUGREPORT=\[EMAIL PROTECTED] 
-DPACKAGE=\glusterfs\ -DVERSION=\1.3.0-pre3\ -DSTDC_HEADERS=1 
-DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 
-DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 
-DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 
-DYYTEXT_POINTER=1 -DHAVE_LIBPTHREAD=1 -DHAVE_LIBDL=1 -DHAVE_LIBFUSE=1 
-DHAVE_BACKTRACE=1 -I. -I. -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE 
-DXLATORDIR=\/usr/local/lib/glusterfs/1.3.0-pre3/xlator\ 
-DSCHEDULERDIR=\/usr/local/lib/glusterfs/1.3.0-pre3/scheduler\ 
-DTRANSPORTDIR=\/usr/local/lib/glusterfs/1.3.0-pre3/transport\ 
-DYY_NO_UNPUT -fPIC -Wall -g -shared -nostartfiles -rdynamic 
-L/usr/local/lib -L/usr/lib -I/usr/include -I/usr/local/include -MT 
libglusterfs_la-transport.lo -MD -MP -MF 
.deps/libglusterfs_la-transport.Tpo -c transport.c  -fPIC -DPIC -o 
.libs/libglusterfs_la-transport.o

In file included from transport.c:25:
logging.h:43: error: syntax error before _gf_log
logging.h:46: error: syntax error before int32_t
logging.h:48: warning: type defaults to `int' in declaration of `_gf_log'
logging.h:48: warning: data definition has no type or storage class
logging.h:49: error: syntax error before gf_log_init
logging.h:49: warning: type defaults to `int' in declaration of 
`gf_log_init'

logging.h:49: warning: data definition has no type or storage class
*** Error code 1

Stop in /src/glusterfs-1.3.0-pre3/libglusterfs/src.
*** Error code 1

Stop in /src/glusterfs-1.3.0-pre3/libglusterfs.
*** Error code 1

For a quick hack, I removed
#include logging.h
from libglusterfs/src/transport.c

Next try.

Stops at:
gcc -DPACKAGE_NAME=\glusterfs\ -DPACKAGE_TARNAME=\glusterfs\ 
-DPACKAGE_VERSION=\1.3.0-pre3\ -DPACKAGE_STRING=\glusterfs 
1.3.0-pre3\ -DPACKAGE_BUGREPORT=\[EMAIL PROTECTED] 
-DPACKAGE=\glusterfs\ -DVERSION=\1.3.0-pre3\ -DSTDC_HEADERS=1 
-DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 
-DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 
-DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 

[Gluster-devel] Plans for FreeBSD support?

2007-05-10 Thread Francisco Reyes
Looking at the archives I see that at one point some work was done with 
FreeBSD.


Don't see in the roadmap plans to go back to FreeBSD.

Anyone has any feedback when FreeBSD may be revisited.. or if it will be 
revisited?  



___
Gluster-devel mailing list
Gluster-devel@nongnu.org
http://lists.nongnu.org/mailman/listinfo/gluster-devel