[
https://issues.apache.org/jira/browse/PROTON-2145?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17020036#comment-17020036
]
Jiri Daněk commented on PROTON-2145:
------------------------------------
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}
When I don't have {{python3-distutils}} installed, I get
{noformat}
-- Could NOT find Doxygen (missing: DOXYGEN_EXECUTABLE)
Traceback (most recent call last):
File "<string>", line 1, in <module>
ModuleNotFoundError: No module named 'distutils.sysconfig'
-- Looking for Python module sphinx - not found
-- Looking for Python module sphinx_automodapi - not found
-- Sphinx modules not found; doc generation disabled.
CMake Error at python/CMakeLists.txt:139 (install):
install FILES given no DESTINATION!
CMake Error at python/CMakeLists.txt:145 (install):
install TARGETS given no LIBRARY DESTINATION for module target "_cproton".
{noformat}
Despite {{-DBUILD_TESTING=OFF}}, the following is being built
{noformat}
[ 42%] Built target test_main
[ 45%] Built target c-core-test
[ 45%] Built target c-extra-test
[ 46%] Built target c-ssl-proactor-test
[ 47%] Built target c-proactor-test
[ 65%] Built target interop_test
[ 65%] Built target credit_test
[ 65%] Built target reconnect_test
[ 66%] Built target codec_test
[ 67%] Built target value_test
[ 68%] Built target connection_driver_test
[ 84%] Built target scalar_test
[ 85%] Built target message_test
[ 85%] Built target link_test
[ 86%] Built target container_test
[ 87%] Built target cpp-test
[ 88%] Built target map_test
{noformat}
What should've been fixed appears to be fixed,
{noformat}
# docker build -t qpid-proton:staticlibs -f Dockerfile .
FROM library/ubuntu:18.04 as buildbase
#FROM library/ubuntu:16.04 as buildbase
RUN apt-get update
RUN DEBIAN_FRONTEND=noninteractive apt-get install -yq git make build-essential
cmake swig python3 python3-distutils libpython3-dev libsasl2-dev libjsoncpp-dev
FROM buildbase as pyenv
RUN git clone https://github.com/apache/qpid-proton.git
WORKDIR qpid-proton
RUN git checkout 0.30.0
RUN mkdir _build
WORKDIR _build
RUN cmake .. -DCMAKE_INSTALL_PREFIX=/usr/local\
-DSYSINSTALL_BINDINGS=ON\
-DBUILD_STATIC_LIBS=ON\
-DBUILD_TESTING=OFF\
-DENABLE_FUZZ_TESTING=OFF\
-DFUZZ_REGRESSION_TESTS=OFF
RUN make -j4
RUN make install
RUN ls /usr/local/lib/libqpid*
{noformat}
{noformat}
Step 13/13 : RUN ls /usr/local/lib/libqpid*
---> Running in 0c8cf219c9d6
/usr/local/lib/libqpid-proton-core-static.a
/usr/local/lib/libqpid-proton-core.so
/usr/local/lib/libqpid-proton-core.so.10
/usr/local/lib/libqpid-proton-core.so.10.8.1
/usr/local/lib/libqpid-proton-cpp-static.a
/usr/local/lib/libqpid-proton-cpp.so
/usr/local/lib/libqpid-proton-cpp.so.12
/usr/local/lib/libqpid-proton-cpp.so.12.6.1
/usr/local/lib/libqpid-proton-proactor-static.a
/usr/local/lib/libqpid-proton-proactor.so
/usr/local/lib/libqpid-proton-proactor.so.1
/usr/local/lib/libqpid-proton-proactor.so.1.5.1
/usr/local/lib/libqpid-proton-static.a
/usr/local/lib/libqpid-proton.so
/usr/local/lib/libqpid-proton.so.11
/usr/local/lib/libqpid-proton.so.11.9.1
Removing intermediate container 0c8cf219c9d6
{noformat}
> libqpid-proton-cpp-static.a not included in make install
> --------------------------------------------------------
>
> Key: PROTON-2145
> URL: https://issues.apache.org/jira/browse/PROTON-2145
> Project: Qpid Proton
> Issue Type: Bug
> Components: cpp-binding
> Affects Versions: proton-c-0.29.0
> Environment: Linux raspberrypi 4.19.75-v7l+ #1270 SMP Tue Sep 24
> 18:51:41 BST 2019 armv7l GNU/Linux
> cmake version 3.13.4
> Reporter: berge2007
> Priority: Major
> Labels: build
> Attachments: qpidbuild.txt
>
>
> +After these steps:+
> {{git clone [https://github.com/apache/qpid-proton.git]}}
> {{cd qpid-proton}}
> {{git checkout 0.29.0}}
> {{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}}
> +installed files in "/usr/local/lib" folder are:+
> {{/usr/local/lib/libqpid-proton-core.so}}
> {{/usr/local/lib/libqpid-proton-core.so.10}}
> {{/usr/local/lib/libqpid-proton-core.so.10.7.1}}
> {{/usr/local/lib/libqpid-proton-core-static.a}}
> {{/usr/local/lib/libqpid-proton-cpp.so}}
> {{/usr/local/lib/libqpid-proton-cpp.so.12}}
> {{/usr/local/lib/libqpid-proton-cpp.so.12.6.0}}
> {{/usr/local/lib/libqpid-proton-proactor.so}}
> {{/usr/local/lib/libqpid-proton-proactor.so.1}}
> {{/usr/local/lib/libqpid-proton-proactor.so.1.4.1}}
> {{/usr/local/lib/libqpid-proton-proactor-static.a}}
> {{/usr/local/lib/libqpid-proton.so}}
> {{/usr/local/lib/libqpid-proton.so.11}}
> {{/usr/local/lib/libqpid-proton.so.11.8.1}}
> {{/usr/local/lib/libqpid-proton-static.a}}
> so the "libqpid-proton-cpp-static.a" is missing despite that
> "DBUILD_STATIC_LIBS=ON" option
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]