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

Raghavendra G raghavendra at zresearch.com
Fri May 8 08:42:26 UTC 2009


Hi PN,

libglusterfscient - the library glfs-bm uses - has undergone some
significant changes. glfs-bm.c is yet to be ported to these changes, which
will be done shortly.

regards,

On Fri, May 8, 2009 at 11:13 AM, PN <poknam at gmail.com> wrote:

> 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
>
>
> _______________________________________________
> Gluster-users mailing list
> Gluster-users at gluster.org
> http://zresearch.com/cgi-bin/mailman/listinfo/gluster-users
>
>


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


More information about the Gluster-users mailing list