[
https://issues.apache.org/jira/browse/PROTON-1455?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Jiri Daněk resolved PROTON-1455.
--------------------------------
Assignee: Jiri Daněk (was: Justin Ross)
Resolution: Works for Me
Issue is not present in recent versions, that is, it disappeared at some point
before 0.31.0. There are two parts to the disappearance of the issue. First,
PROTON-2208 with commit 9c1ab44237af8684693eeb1f14f035e0c3258989 removed the
option to build C files as C++. Second, some other change (which I haven't
identified) changed which version of {{strerror_r}} gets used. It was maybe a
removal of {{#define _GNU_SOURCE}}, or a similar change.
> Problem building on Ubuntu xenial with g++
> ------------------------------------------
>
> Key: PROTON-1455
> URL: https://issues.apache.org/jira/browse/PROTON-1455
> Project: Qpid Proton
> Issue Type: Bug
> Components: build, proton-c
> Reporter: Irina Boverman
> Assignee: Jiri Daněk
> Priority: Major
>
> 31%] Building CXX object
> proton-c/CMakeFiles/qpid-proton.dir/src/messenger/transform.c.o
> cd /proton/build/proton-c && /usr/bin/c++ -std=c++11 -Dqpid_proton_EXPORTS
> -I/proton/build/proton-c/src -I/proton/build/proton-c/include
> -I/proton/proton-c/src -I/proton/proton-c/include -fvisibility=hidden -O2 -g
> -DNDEBUG -fPIC -Werror -Wall -pedantic-errors -Wno-format
> -Wno-variadic-macros -o
> CMakeFiles/qpid-proton.dir/src/messenger/transform.c.o -c
> /proton/proton-c/src/messenger/transform.c
> [ 31%] Building CXX object
> proton-c/CMakeFiles/qpid-proton.dir/src/platform/platform.c.o
> cd /proton/build/proton-c && /usr/bin/c++ -std=c++11 -Dqpid_proton_EXPORTS
> -DUSE_ATOLL -DUSE_CLOCK_GETTIME -DUSE_STRERROR_R -I/proton/build/proton-c/src
> -I/proton/build/proton-c/include -I/proton/proton-c/src
> -I/proton/proton-c/include -fvisibility=hidden -O2 -g -DNDEBUG -fPIC
> -Werror -Wall -pedantic-errors -Wno-format -Wno-variadic-macros -o
> CMakeFiles/qpid-proton.dir/src/platform/platform.c.o -c
> /proton/proton-c/src/platform/platform.c
> /proton/proton-c/src/platform/platform.c: In function 'void
> pn_i_strerror(int, char*, size_t)':
> /proton/proton-c/src/platform/platform.c:92:34: 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
> proton-c/CMakeFiles/qpid-proton.dir/build.make:1081: recipe for target
> 'proton-c/CMakeFiles/qpid-proton.dir/src/platform/platform.c.o' failed
> make[2]: Leaving directory '/proton/build'
> make[2]: *** [proton-c/CMakeFiles/qpid-proton.dir/src/platform/platform.c.o]
> Error 1
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]