You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@qpid.apache.org by "Andrew Stitcher (Jira)" <ji...@apache.org> on 2021/03/31 00:08:00 UTC
[jira] [Commented] (PROTON-2354) C++ test failures on MacOS due to
unexported symbols being hidden
[ https://issues.apache.org/jira/browse/PROTON-2354?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17311921#comment-17311921 ]
Andrew Stitcher commented on PROTON-2354:
-----------------------------------------
It seems that the clang C++ runtime library (libc++) under macOSX needs more exported symbols to correctly manage RTTI and exception catching than C++ on other platforms.
The simplest fix (workaround perhaps) is just to disable ENABLE_HIDE_UNEXPORTED_SYMBOLS on macOS even though it is really only the C++ symbols that need to be treated this way - currently the Proton-c build has no specific setting for the c++ binding library separate from the c core library.
> C++ test failures on MacOS due to unexported symbols being hidden
> ------------------------------------------------------------------
>
> Key: PROTON-2354
> URL: https://issues.apache.org/jira/browse/PROTON-2354
> Project: Qpid Proton
> Issue Type: Bug
> Components: proton-c
> Environment: macOSX 10.15
> Reporter: Andrew Stitcher
> Assignee: Andrew Stitcher
> Priority: Major
> Labels: macOS
>
> Since PROTON-2343 build flags have been consistently applied to all builds. This has resulted in the MacOS (clang) build respecting the ENABLE_HIDE_UNEXPORTED_SYMBOLS, where it seemingly didn't before.
> This causes build failures like:
> {code}
> % ./cpp/connection_driver_test
> TEST: test_driver_link_id()
> TEST: test_endpoint_close()
> TEST: test_driver_disconnected()
> TEST: test_no_container()
> ERROR test_no_container()
> ../cpp/src/connection_driver_test.cpp:546: No container
> TEST: test_spin_interrupt()
> TEST: test_link_address()
> TEST: test_link_anonymous_dynamic()
> TEST: test_link_capability_filter()
> TEST: test_message()
> TEST: test_message_timeout_succeed()
> TEST: test_message_timeout_fail()
> {code}
--
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