diff options
author | Lalatendu Mohanty <lmohanty@redhat.com> | 2013-10-13 15:08:10 -0400 |
---|---|---|
committer | Vijay Bellur <vbellur@redhat.com> | 2013-10-16 00:55:50 -0700 |
commit | 656db3a8e0601ba0a6af303b971111fbbed29906 (patch) | |
tree | fc3089e5e0e98e62a662f1e721af7a2fe5016f9f /api/examples/README | |
parent | 0c129ad25c007d574e9c7e45f47e6ba7075f4bfa (diff) |
libgfapi: Fix to compilation failure/warnings for examples/glfsxmp.c
The comilation of glfsxmp.c i.e. "make glfsxmp" was failing
with "undefined reference to `clock_gettime'" error.
Fixed all compilation warnings for unused variables and
wrong formart specifier in printf e.g. : "format ‘%d’ expects
argument of type ‘int’, but argument 3 has type ‘__syscall_slong_t’
[-Wformat]"
Also added the compilation steps for glfsxmp.c in the
README file
Change-Id: I399ec7c9ad7b6412463c89099d63922caef6749e
Signed-off-by: Lalatendu Mohanty <lmohanty@redhat.com>
Reviewed-on: http://review.gluster.org/6085
Reviewed-by: Shyamsundar Ranganathan <srangana@redhat.com>
Reviewed-by: Santosh Pradhan <spradhan@redhat.com>
Tested-by: Shyamsundar Ranganathan <srangana@redhat.com>
Reviewed-by: Vijay Bellur <vbellur@redhat.com>
Diffstat (limited to 'api/examples/README')
-rw-r--r-- | api/examples/README | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/api/examples/README b/api/examples/README index 8f0bab697d3..4d2b521f779 100644 --- a/api/examples/README +++ b/api/examples/README @@ -17,3 +17,20 @@ install glusterfs-api RPM. Make sure your LDFLAGS includes -L/path/to/lib where libgfapi.so is installed and -I/path/to/include/glusterfs where the 'api' directory containing the headers are available. + +glfsxmp.c +========= + +glfsxmp.c is an example application which uses libgfapi + +Compilation Steps For glfsxmp.c +=============================== + +1. $./autogen.sh +2. $./configure + +Note: Before running ./configure , as mentioned above, you need to + take care of #1 or #2 i.e. pkg-config path or LDFLAGS and + -I/<path> with correct values. + +3. $make glfsxmp |