URL: https://github.com/SSSD/sssd/pull/5666 Title: #5666: debug: add support for tevent chain id
alexey-tikhonov commented: """
Mock build fails on F33 - https://s3.eu-central-1.amazonaws.com/sssd-ci/PR-5666/6/fedora33/build.log :
libtool: link: gcc -Wall -Wshadow -Wstrict-prototypes -Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings -Wundef -Werror-implicit-function-declaration -Winit-self -Wmissing-include-dirs -fno-strict-aliasing -std=gnu99 -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -Wl,-z -Wl,relro -Wl,--as-needed -Wl,-z -Wl,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -o .libs/test_sbus_message src/tests/cmocka/sbus/test_sbus_message-test_sbus_message.o -lcmocka ./.libs/libsss_debug.so ./.libs/libsss_test_common.a /builddir/build/BUILD/sssd-2.5.2/.libs/libsss_util.so -lrt -lpopt -lldb -lselinux -ltdb -lpcre2-8 -lini_config -lbasicobjects -lref_array -lcollection /builddir/build/BUILD/sssd-2.5.2/.libs/libsss_cert.so /builddir/build/BUILD/sssd-2.5.2/.libs/libsss_crypt.so -lcrypto /builddir/build/BUILD/sssd-2.5.2/.libs/libsss_child.so /builddir/build/BUILD/sssd-2.5.2/.libs/libsss_debug.so -lsystemd ./.libs/libsss_sbus.so -ldhash -ltevent -ltalloc -ldbus-1 -lglib-2.0 -Wl,-rpath -Wl,/usr/lib64/sssd /usr/bin/ld: ./.libs/libsss_sbus.so: undefined reference to `sss_chain_id_set'
This is because `sss_chain_id_set` is covered by `#ifdef BUILD_CHAIN_ID` and this mock build does not detect patched version of tevent: `configure: Chain id support is disabled due to missing dependencies in tevent` This way `sss_chain_id_set` call is undefined.
In `util/sss_chain_id.c` there is `#else /* BUILD_CHAIN_ID not defined */` section that defines stubs in case libtevent misses required functionality. So this error is actually odd. Even more weird that only F33 was affected.
"""
See the full comment at https://github.com/SSSD/sssd/pull/5666#issuecomment-878031142