Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem: missing flags break build of test_security_curve #2688

Merged
merged 1 commit into from
Aug 17, 2017

Conversation

bluca
Copy link
Member

@bluca bluca commented Aug 16, 2017

Solution: add all the required compiler flags since the test includes
source code from the library directly

Solution: add all the required compiler flags since the test includes
source code from the library directly
@@ -638,9 +638,13 @@ tests_test_security_curve_SOURCES += \
endif

tests_test_security_curve_LDADD = \
src/libzmq.la
src/libzmq.la $(LIBUNWIND_LIBS)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sanity check : Wasn't libunwind an optional dependency (or am I mistaking projects)? Should this either become required dependency for this test to get built, or #if HAVE_LIBUNWIND trickery is needed?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The variable will be empty if it's not found or disabled

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

And will compilation break if the library is missing, then?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's ifdef'd in err.hpp - which is included by the test, so it was breaking when the library was there because the test was not being linked against it, despite the ifdef being true

@jimklimov jimklimov merged commit 77aa5f4 into zeromq:master Aug 17, 2017
@bluca bluca deleted the unwind_test_curve branch August 17, 2017 11:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants