Thanks.  I have another fir for this pending (adding it to the
config.h)  It will be fixed soon, either way.

Dan

On Thu, Sep 17, 2015 at 10:44 PM, Zhang AiHua <[email protected]> wrote:
>  From ae66bac89a30119deb09d7512f017a6323b16177 Mon Sep 17 00:00:00 2001
> From: Aihua Zhang <[email protected]>
> Date: Fri, 18 Sep 2015 19:11:38 +0900
> Subject: [PATCH] [nfs-ganesha-devel-libtirpc] fixed the compile error while
>   building ganesha 2.3
>
> add macro definition of TIRPC_EPOLL, to fix the compile error while building
>
> ganesha 2.3.
>
> Signed-off-by: Aihua Zhang <[email protected]>
> ---
>   CMakeLists.txt | 4 ++++
>   1 file changed, 4 insertions(+)
>
> diff --git a/CMakeLists.txt b/CMakeLists.txt
> index ecd98f6..aedc7fe 100644
> --- a/CMakeLists.txt
> +++ b/CMakeLists.txt
> @@ -116,6 +116,10 @@ if (MSVC)
>      add_definitions(-D_CRT_SECURE_NO_WARNINGS)
>   endif(MSVC)
>
> +if(TIRPC_EPOLL)
> +  add_definitions(-DTIRPC_EPOLL)
> +endif(TIRPC_EPOLL)
> +
>   include_directories(
>     "${PROJECT_BINARY_DIR}"
>     "${PROJECT_SOURCE_DIR}/ntirpc/"
> --
> 1.8.3.1
>
>
>
> ps:the error is:
>
> home/zah/nvdfs-works/nfs-ganesha/src/libntirpc/src/svc_rqst.c: In function 
> 'svc_rqst_unhook_events':
> /home/zah/nvdfs-works/nfs-ganesha/src/libntirpc/src/svc_rqst.c:613:6: error: 
> unused variable 'code' [-Werror=unused-variable]
>    int code;
>        ^
> /home/zah/nvdfs-works/nfs-ganesha/src/libntirpc/src/svc_rqst.c: In function 
> 'svc_rqst_rearm_events':
> /home/zah/nvdfs-works/nfs-ganesha/src/libntirpc/src/svc_rqst.c:666:6: error: 
> unused variable 'code' [-Werror=unused-variable]
>    int code;
>        ^
> /home/zah/nvdfs-works/nfs-ganesha/src/libntirpc/src/svc_rqst.c: In function 
> 'svc_rqst_hook_events':
> /home/zah/nvdfs-works/nfs-ganesha/src/libntirpc/src/svc_rqst.c:724:6: error: 
> unused variable 'code' [-Werror=unused-variable]
>    int code;
>        ^
> cc1: all warnings being treated as errors
> make[2]: *** [libntirpc/src/CMakeFiles/ntirpc.dir/svc_rqst.c.o] Error 1
> make[1]: *** [libntirpc/src/CMakeFiles/ntirpc.dir/all] Error 2
>
>
> ------------------------------------------------------------------------------
> _______________________________________________
> Nfs-ganesha-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/nfs-ganesha-devel

------------------------------------------------------------------------------
_______________________________________________
Nfs-ganesha-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nfs-ganesha-devel

Reply via email to