You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@zookeeper.apache.org by "Damien Diederen (Jira)" <ji...@apache.org> on 2021/01/06 11:05:00 UTC

[jira] [Commented] (ZOOKEEPER-3292) ZooKeeper C Client for Windows: should include winports.h

    [ https://issues.apache.org/jira/browse/ZOOKEEPER-3292?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17259608#comment-17259608 ] 

Damien Diederen commented on ZOOKEEPER-3292:
--------------------------------------------

Hi [~Vujic],

Thank you for the report.  CMake and Windows builds leave quite a lot to be desired right now.  A patch would be welcome!

I am downgrading this from blocker, however, as I don't think it should block 3.7.0.

> ZooKeeper C Client for Windows: should include winports.h
> ---------------------------------------------------------
>
>                 Key: ZOOKEEPER-3292
>                 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-3292
>             Project: ZooKeeper
>          Issue Type: Bug
>          Components: c client
>    Affects Versions: 3.4.13
>         Environment: Windows 10
> CMake
> ZooKeeper 3.4.13 
>            Reporter: David Vujic
>            Priority: Blocker
>
> When building the C client on Windows with CMake:
> cmake -DWANT_SYNCAPI=OFF -DCMAKE_GENERATOR_PLATFORM=x64
>  
> With this input, the header file winports.h will not be added in these files:
> *zk_log.c*
> *zk_adaptor.h*
> Also, I think winports.h should be added to *zookeeper.c*
>  
> Without winports.h compiling will fail on Windows. Errors are about strtok_r and localtime_r - the Windows mappings in winports.h are missing. 
> I am guessing that other important includes are missing too (like Windows Sockets).
>  
> One solution could be to extract the winports.h include out from the THREADED preprocessor, to a separate one:
> #ifdef WIN32
> #include "winport.h"
> #endif



--
This message was sent by Atlassian Jira
(v8.3.4#803005)