Jiri Daněk created PROTON-2168:
----------------------------------

             Summary: cmake -DBUILD_WITH_CXX=ON build breaks on Linux
                 Key: PROTON-2168
                 URL: https://issues.apache.org/jira/browse/PROTON-2168
             Project: Qpid Proton
          Issue Type: Bug
          Components: build
    Affects Versions: proton-c-0.30.0
            Reporter: Jiri Daněk


Compile as in PROTON-2145, that means

{noformat}
mkdir _build
cd _build
cmake .. -DCMAKE_INSTALL_PREFIX=/usr/local\
  -DSYSINSTALL_BINDINGS=ON\
  -DBUILD_STATIC_LIBS=ON\
  -DBUILD_TESTING=OFF\
  -DBUILD_WITH_CXX=ON\
  -DENABLE_FUZZ_TESTING=OFF\
  -DFUZZ_REGRESSION_TESTS=OFF

make -j4
make install
{noformat}

The {{-DBUILD_WITH_CXX=ON}} is breaking builds on Linux

{noformat}
[ 28%] Building CXX object 
c/CMakeFiles/qpid-proton-core-objects.dir/src/core/codec.c.o
/qpid-proton/c/src/platform/platform.c: In function 'void pn_i_strerror(int, 
char*, size_t)':
/qpid-proton/c/src/platform/platform.c:92:13: error: ignoring return value of 
'char* strerror_r(int, char*, size_t)', declared with attribute 
warn_unused_result [-Werror=unused-result]                                      
          
   strerror_r(errnum, buf, buflen);                                             
                                    
   ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~                                              
                                    
cc1plus: all warnings being treated as errors
{noformat}



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

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@qpid.apache.org
For additional commands, e-mail: dev-h...@qpid.apache.org

Reply via email to