Damien Diederen created ZOOKEEPER-4201:
------------------------------------------
Summary: C client: SASL-related compilation issues on macOS
Catalina
Key: ZOOKEEPER-4201
URL: https://issues.apache.org/jira/browse/ZOOKEEPER-4201
Project: ZooKeeper
Issue Type: Bug
Components: c client
Reporter: Damien Diederen
Assignee: Damien Diederen
Originally reported by [~eolivelli]:
{quote}
{noformat}
[exec]
.../apache-zookeeper-3.7.0/zookeeper-client/zookeeper-client-c/src/cli.c:960:14:
error: 'sasl_client_init' is deprecated: first deprecated in macOS 10.11
[-Werror,-Wdeprecated-declarations]
[exec] sr = sasl_client_init(NULL);
[exec] ^
[exec]
[...]
{noformat}
{quote}
The above is in {{cli.c}}, but similar issues also arise when compiling
{{zk_sasl.c}}, which is part of the client library.
Enrico also wrote:
{quote}
And if I remove "-Werror" I get
{noformat}
[exec]
.../apache-zookeeper-3.7.0/zookeeper-client/zookeeper-client-c/tests/LibCSymTable.h:85:36:
error: unknown type name 'clockid_t'; did you mean 'clock_t'?
[exec] DECLARE_SYM(int,clock_gettime,(clockid_t clk_id, struct timespec*));
[exec] ^~~~~~~~~
[exec] clock_t
{noformat}
{quote}
but this happens in the test suite, which does not currently work on macOS due
to the {{--wrap}} option, which is not supported by the native linker. Fixing
the test suite is considered out of scope for this ticket.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)