Bug#964654:
Bug#964654: kcov: FTBFS: ld: /usr/lib/gcc/x86_64-linux-gnu/9/../../../x86_64-linux-gnu/libbfd.a(plugin.o): undefined reference to symbol 'dlclose@@GLIBC_2.2.5'
Dear Alessandro, Any chance you could merge the suggested MR ? Thanks
Bug#964654:
On Tue, 21 Sep 2021 04:56:47 +1200 Kaily Salmon <74pacervail...@gmail.com> wrote: >
Bug#964654:
Bug#964654: kcov: fixing the FTBFS
Package: kcov Version: 38+dfsg-1 Followup-For: Bug #964654 Dear Maintainer, Just in case merge notifications don't get to you from salsa, I thought I'd add a note here too (I hope that's OK -- I missed a couple of such notifications myself, hence the concern). I just created this: https://salsa.debian.org/debian/kcov/-/merge_requests/1 it's pretty trivial, as it just reorders the libdl library, but it seems to do the trick. Note, I'm not really familiar with Cmake, so there may be better ways of doing this. Also, ss mentioned in the MR, I'm a little suspicious about the dbgsyms package that gets produced, but that also needs to be looked at by someone that knows what they should expect. HTH Cheers, Phil.
Bug#964654: kcov: FTBFS: ld: /usr/lib/gcc/x86_64-linux-gnu/9/../../../x86_64-linux-gnu/libbfd.a(plugin.o): undefined reference to symbol 'dlclose@@GLIBC_2.2.5'
Source: kcov Version: 38+dfsg-1 Severity: serious Justification: FTBFS on amd64 Tags: bullseye sid ftbfs Usertags: ftbfs-20200709 ftbfs-bullseye Hi, During a rebuild of all packages in sid, your package failed to build on amd64. Relevant part (hopefully): > /usr/bin/c++ -g -O2 -fdebug-prefix-map=/<>=. > -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time > -D_FORTIFY_SOURCE=2 -std=c++0x -g -Wall -D_GLIBCXX_USE_NANOSLEEP > -DKCOV_LIBRARY_PREFIX=/tmp -DKCOV_HAS_LIBBFD=1 -Wl,-z,relro -Wl,-z,now > -rdynamic CMakeFiles/kcov.dir/capabilities.cc.o > CMakeFiles/kcov.dir/collector.cc.o CMakeFiles/kcov.dir/configuration.cc.o > CMakeFiles/kcov.dir/engine-factory.cc.o > CMakeFiles/kcov.dir/engines/bash-engine.cc.o > CMakeFiles/kcov.dir/engines/system-mode-engine.cc.o > CMakeFiles/kcov.dir/engines/system-mode-file-format.cc.o > CMakeFiles/kcov.dir/engines/python-engine.cc.o > CMakeFiles/kcov.dir/filter.cc.o CMakeFiles/kcov.dir/gcov.cc.o > CMakeFiles/kcov.dir/main.cc.o CMakeFiles/kcov.dir/merge-file-parser.cc.o > CMakeFiles/kcov.dir/output-handler.cc.o > CMakeFiles/kcov.dir/parsers/bfd-disassembler.cc.o > CMakeFiles/kcov.dir/parser-manager.cc.o CMakeFiles/kcov.dir/reporter.cc.o > CMakeFiles/kcov.dir/source-file-cache.cc.o CMakeFiles/kcov.dir/utils.cc.o > CMakeFiles/kcov.dir/writers/cobertura-writer.cc.o > CMakeFiles/kcov.dir/writers/json-writer.cc.o > CMakeFiles/kcov.dir/writers/coveralls-writer.cc.o > CMakeFiles/kcov.dir/writers/html-writer.cc.o > CMakeFiles/kcov.dir/writers/sonarqube-xml-writer.cc.o > CMakeFiles/kcov.dir/writers/writer-base.cc.o > CMakeFiles/kcov.dir/engines/clang-coverage-engine.cc.o > CMakeFiles/kcov.dir/engines/ptrace.cc.o > CMakeFiles/kcov.dir/engines/ptrace_linux.cc.o > CMakeFiles/kcov.dir/engines/kernel-engine.cc.o > CMakeFiles/kcov.dir/parsers/elf.cc.o > CMakeFiles/kcov.dir/parsers/elf-parser.cc.o > CMakeFiles/kcov.dir/parsers/dwarf.cc.o CMakeFiles/kcov.dir/solib-handler.cc.o > CMakeFiles/kcov.dir/solib-parser/phdr_data.c.o > CMakeFiles/kcov.dir/system-mode/file-data.cc.o > CMakeFiles/kcov.dir/library.cc.o > CMakeFiles/kcov.dir/bash-redirector-library.cc.o > CMakeFiles/kcov.dir/python-helper.cc.o CMakeFiles/kcov.dir/bash-helper.cc.o > CMakeFiles/kcov.dir/kcov-system-library.cc.o > CMakeFiles/kcov.dir/html-data-files.cc.o CMakeFiles/kcov.dir/version.c.o -o > kcov -lstdc++ -lpthread -lcurl -ldl -Wl,-Bstatic -lopcodes -lbfd -liberty > -Wl,-Bdynamic -ldw -lelf -lm -lz > /usr/bin/ld: > /usr/lib/gcc/x86_64-linux-gnu/9/../../../x86_64-linux-gnu/libbfd.a(plugin.o): > undefined reference to symbol 'dlclose@@GLIBC_2.2.5' > /usr/bin/ld: > /usr/lib/gcc/x86_64-linux-gnu/9/../../../x86_64-linux-gnu/libdl.so: error > adding symbols: DSO missing from command line > collect2: error: ld returned 1 exit status The full build log is available from: http://qa-logs.debian.net/2020/07/09/kcov_38+dfsg-1_unstable.log A list of current common problems and possible solutions is available at http://wiki.debian.org/qa.debian.org/FTBFS . You're welcome to contribute! About the archive rebuild: The rebuild was done on EC2 VM instances from Amazon Web Services, using a clean, minimal and up-to-date chroot. Every failed build was retried once to eliminate random failures.