zookeeper-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hudson (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (ZOOKEEPER-3302) ZooKeeper C client does not compile on Fedora 29
Date Wed, 10 Apr 2019 00:28:00 GMT

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

Hudson commented on ZOOKEEPER-3302:
-----------------------------------

FAILURE: Integrated in Jenkins build ZooKeeper-trunk #469 (See [https://builds.apache.org/job/ZooKeeper-trunk/469/])
ZOOKEEPER-3302: ZooKeeper C client does not compile on Fedora 29 (andor: rev 450869006e0f62790e974305eb079e1b0450dbfd)
* (edit) zookeeper-client/zookeeper-client-c/src/cli.c


> ZooKeeper C client does not compile on Fedora 29 
> -------------------------------------------------
>
>                 Key: ZOOKEEPER-3302
>                 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-3302
>             Project: ZooKeeper
>          Issue Type: Wish
>          Components: c client
>    Affects Versions: 3.6.0
>            Reporter: Enrico Olivelli
>            Assignee: Enrico Olivelli
>            Priority: Blocker
>              Labels: pull-request-available
>             Fix For: 3.6.0
>
>          Time Spent: 2h
>  Remaining Estimate: 0h
>
> I cannot build current master (git sha 372e713a9d2d9264417313e5d68e9437ffddd0f5)  with
Fedora 29
>  
> {noformat}
> gcc --version
> gcc (GCC) 8.3.1 20190223 (Red Hat 8.3.1-2)
> {noformat}
>  
> This is the error:
> {code:java}
>     [exec] gcc -DHAVE_CONFIG_H -I. -I/home/eolivelli/dev/zookeeper/zookeeper-client/zookeeper-client-c 
-I/home/eolivelli/dev/zookeeper/zookeeper-client/zookeeper-client-c/include -I/home/eolivelli/dev/zookeeper/zookeeper-client/zookeeper-client-c/tests
-I/home/eolivelli/dev/zookeeper/zookeeper-client/zookeeper-client-c/generated   -Wall -Werror
-Wdeclaration-after-statement -fprofile-arcs -ftest-coverage -g -O2 -D_GNU_SOURCE -MT cli.o
-MD -MP -MF .deps/cli.Tpo -c -o cli.o `test -f 'src/cli.c' || echo '/home/eolivelli/dev/zookeeper/zookeeper-client/zookeeper-client-c/'`src/cli.c
>      [exec] /home/eolivelli/dev/zookeeper/zookeeper-client/zookeeper-client-c/src/cli.c:
In function ‘main’:
>      [exec] /home/eolivelli/dev/zookeeper/zookeeper-client/zookeeper-client-c/src/cli.c:689:9:
error: ‘strncpy’ specified bound 1024 equals destination size [-Werror=stringop-truncation]
>      [exec]          strncpy(cmd, argv[2]+4, sizeof(cmd));
>      [exec]          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>      [exec] cc1: all warnings being treated as errors
>      [exec] make: *** [Makefile:1155: cli.o] Error 1{code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Mime
View raw message