[Gluster-users] fail to compile glfs-bm.c

PN poknam at gmail.com
Fri May 8 07:13:34 UTC 2009


Dear all,

I found that there is a ./extras/benchmarking/ directory which contains
files that help to do the testing.
When I try to compile the glfs-bm.c, it shown up some errors:

# gcc glfs-bm.c -lglusterfsclient -o glfs-bm
glfs-bm.c: In function ‘do_mode_libglusterfsclient_iface_fileio_write’:
glfs-bm.c:360: warning: assignment makes integer from pointer without a cast
glfs-bm.c:366: warning: passing argument 1 of ‘glusterfs_write’ makes
pointer from integer without a cast
glfs-bm.c:369: warning: passing argument 1 of ‘glusterfs_close’ makes
pointer from integer without a cast
glfs-bm.c:372: warning: passing argument 1 of ‘glusterfs_close’ makes
pointer from integer without a cast
glfs-bm.c: In function ‘do_mode_libglusterfsclient_iface_fileio_read’:
glfs-bm.c:394: warning: assignment makes integer from pointer without a cast
glfs-bm.c:400: warning: passing argument 1 of ‘glusterfs_read’ makes
pointer from integer without a cast
glfs-bm.c:403: warning: passing argument 1 of ‘glusterfs_close’ makes
pointer from integer without a cast
glfs-bm.c:406: warning: passing argument 1 of ‘glusterfs_close’ makes
pointer from integer without a cast
glfs-bm.c: In function ‘do_mode_libglusterfsclient’:
glfs-bm.c:525: error: ‘glusterfs_init_ctx_t’ undeclared (first use in
this function)
glfs-bm.c:525: error: (Each undeclared identifier is reported only once
glfs-bm.c:525: error: for each function it appears in.)
glfs-bm.c:525: error: expected ‘;’ before ‘ctx’
glfs-bm.c:532: error: ‘ctx’ undeclared (first use in this function)

I try to lookup the code in the glusterfs package, but seems nowhere defined
glusterfs_init_ctx_t.

Another file that use "glusterfs_init_ctx_t" was
./mod_glusterfs/lighttpd/1.5/mod_glusterfs.c.

Any idea about it?

Thanks in advance.

PN
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://supercolony.gluster.org/pipermail/gluster-users/attachments/20090508/d1e2da71/attachment.html>


More information about the Gluster-users mailing list