You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@qpid.apache.org by "Jiri Daněk (Jira)" <ji...@apache.org> on 2020/08/02 20:51:00 UTC
[jira] [Resolved] (PROTON-2168) cmake -DBUILD_WITH_CXX=ON build
breaks on Linux
[ https://issues.apache.org/jira/browse/PROTON-2168?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jiri Daněk resolved PROTON-2168.
--------------------------------
Fix Version/s: proton-c-0.32.0
Resolution: Resolved
BUILD_WITH_CXX option was removed in PROTON-2208 with commit 9c1ab44237af8684693eeb1f14f035e0c3258989.
> 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
> Priority: Major
> Fix For: proton-c-0.32.0
>
>
> 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-unsubscribe@qpid.apache.org
For additional commands, e-mail: dev-help@qpid.apache.org