zookeeper-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Enrico Olivelli (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (ZOOKEEPER-3302) ZooKeeper C client does not compile on Fedora 29
Date Sat, 09 Mar 2019 13:18:00 GMT

     [ https://issues.apache.org/jira/browse/ZOOKEEPER-3302?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Enrico Olivelli updated ZOOKEEPER-3302:
---------------------------------------
    Description: 
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}

> 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
>             Fix For: 3.6.0
>
>
> 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