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
Build failure with tests in 3.6.0 (check-direct.c:17: undefined reference to `_nltst_map_stat_id_from_IPSTATS_MIB_v2') #306
Comments
tests/check-direct.c:17: undefined reference to
_nltst_map_stat_id_from_IPSTATS_MIB_v2'`)
tests/check-direct.c:17: undefined reference to
_nltst_map_stat_id_from_IPSTATS_MIB_v2'`)
hi. Thanks for the report, I just noticed too. the problem is that the solution will be, that |
"check-direct" needs to statically link with the libraries, because it wants to test internal ABI, which is hidden in the share libraries. When configuring with "--disable-static", static libs are not build and the test tool cannot be build. Just skip the test in that case. #306
fixed by fa7f97f. |
Thank you! |
well, such a plunder... I kept checking things before the release... turned out, immediately an issue can be found. if it's too severe, we can do a 3.7.0 soon after (no need to wait another 2.5 years) :) |
Thx .. indeed that commit fixed linking issue but now again test suite is failing in one unit 😄 ===================================
libnl 3.6.0: ./test-suite.log
===================================
# TOTAL: 1
# PASS: 0
# SKIP: 0
# XFAIL: 0
# FAIL: 1
# XPASS: 0
# ERROR: 0
.. contents:: :depth: 2
FAIL: tests/check-all
=====================
Running suite(s): main
Abstract addresses
Netlink attributes
Clone ematch tree
netns
90%: Checks: 11, Failures: 1, Errors: 0
tests/nl-test-util.c:98:S:Core:cache_and_clone:0: assert(r == 0) failed (errno=1, Operation not permitted)
FAIL tests/check-all (exit status: 1)
============================================================================
Testsuite summary for libnl 3.6.0
============================================================================
# TOTAL: 1
# PASS: 0
# SKIP: 0
# XFAIL: 0
# FAIL: 1
# XPASS: 0
# ERROR: 0
============================================================================
See ./test-suite.log
============================================================================
make[2]: *** [Makefile:6799: test-suite.log] Error 1
make[2]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/libnl-3.6.0'
make[1]: *** [Makefile:6907: check-TESTS] Error 2 |
FYI I'm runnig my builds in LXC zones which have stripped down some capabilities. |
Maybe the same as #308? |
Hit this when packaging the new 3.6.0 for Gentoo:
I think the deal here is that
check-direct
is an external executable and_nltst_map_stat_id_from_IPSTATS_MIB_v2
is (rightly) a private symbol, so when followinglibnl-route-3.sym
, it's not going to be exported, and hence not available.Let me know if I can provide any other information. Full build.log here: build.log
The text was updated successfully, but these errors were encountered: