Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.bugs.dist > #1269748
| From | Adrian Bunk <bunk@debian.org> |
|---|---|
| Newsgroups | linux.debian.bugs.dist |
| Subject | Bug#1115142: spectrum2: FTBFS: /usr/bin/ld: /usr/lib/x86_64-linux-gnu/libjsoncpp.a(json_reader.cpp.o): relocation R_X86_64_PC32 against symbol `_ZTVN4Json17CharReaderBuilderE' can not be used when making a shared object; recompile with -fPIC |
| Date | 2025-11-10 20:10 +0100 |
| Message-ID | <LPFr3-bYQr-11@gated-at.bofh.it> (permalink) |
| References | <LuBs8-f2Q8-59@gated-at.bofh.it> <LuBs8-f2Q8-59@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On Sat, Sep 13, 2025 at 04:29:34PM +0000, Santiago Vila wrote: > Package: src:spectrum2 > Version: 2.2.1+dfsg-2 > Severity: serious > Tags: ftbfs forky sid >... > -------------------------------------------------------------------------------- > [...] > [ 57%] Building CXX object libtransport/CMakeFiles/transport.dir/__/include/Swiften/TLS/TLSServerContext.cpp.o > cd /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/libtransport && /us [too-long-redacted] wiften/TLS/TLSServerContext.cpp > [ 58%] Building CXX object libtransport/CMakeFiles/transport.dir/__/include/Swiften/TLS/TLSServerContextFactory.cpp.o > cd /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/libtransport && /us [too-long-redacted] TLS/TLSServerContextFactory.cpp > [ 58%] Linking CXX shared library libtransport.so > cd /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/libtransport && /usr/bin/cmake -E cmake_link_script CMakeFiles/transport.dir/link.txt --verbose=1 > /usr/bin/c++ -fPIC -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>> [too-long-redacted] v' in read-only section `.text' > /usr/bin/ld: /usr/lib/x86_64-linux-gnu/libjsoncpp.a(json_reader.cpp.o): relocation R_X86_64_PC32 against symbol `_ZTVN4Json17CharReaderBuilderE' can not be used when making a shared object; recompile with -fPIC > /usr/bin/ld: final link failed: bad value > collect2: error: ld returned 1 exit status > StanzaRouter.cpp.o CMakeFiles/transport.dir/__/include/Swift [too-long-redacted] b/x86_64-linux-gnu/libjsoncpp.a > make[3]: *** [libtransport/CMakeFiles/transport.dir/build.make:1111: libtransport/libtransport.so.2.0] Error 1 > make[3]: Leaving directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu' > make[2]: *** [CMakeFiles/Makefile2:583: libtransport/CMakeFiles/transport.dir/all] Error 2 > make[2]: Leaving directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu' > make[1]: *** [Makefile:159: all] Error 2 > make[1]: Leaving directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu' > dh_auto_build: error: cd obj-x86_64-linux-gnu && make -j2 "INSTALL=install --strip-program=true" VERBOSE=1 returned exit code 2 > make: *** [debian/rules:31: binary] Error 25 > dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2 > -------------------------------------------------------------------------------- This FTBFS looks triggered by libjsoncpp (1.9.6-4) unstable; urgency=medium * Build static library again. ... -- Timo Röhling <roehling@debian.org> Thu, 04 Sep 2025 17:04:25 +0200 Editing libtransport/CMakeLists.txt to us JsonCpp::JsonCppShared instead of JsonCpp::JsonCpp fixes the build, but that shouldn't be necessary. Timo, can you see what's going wrong here related to https://sources.debian.org/src/spectrum2/2.2.1%2Bdfsg-2/cmake_modules/FindJsonCpp.cmake ? Thanks Adrian BTS: This is with CMake 3.
Back to linux.debian.bugs.dist | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Bug#1115142: spectrum2: FTBFS: /usr/bin/ld: /usr/lib/x86_64-linux-gnu/libjsoncpp.a(json_reader.cpp.o): relocation R_X86_64_PC32 against symbol `_ZTVN4Json17CharReaderBuilderE' can not be used when making a shared object; recompile with -fPIC Santiago Vila <sanvila@debian.org> - 2025-09-13 18:40 +0200 Bug#1115142: spectrum2: FTBFS: /usr/bin/ld: /usr/lib/x86_64-linux-gnu/libjsoncpp.a(json_reader.cpp.o): relocation R_X86_64_PC32 against symbol `_ZTVN4Json17CharReaderBuilderE' can not be used when making a shared object; recompile with -fPIC Adrian Bunk <bunk@debian.org> - 2025-11-10 20:10 +0100 Bug#1115142: spectrum2: FTBFS: /usr/bin/ld: /usr/lib/x86_64-linux-gnu/libjsoncpp.a(json_reader.cpp.o): relocation R_X86_64_PC32 against symbol `_ZTVN4Json17CharReaderBuilderE' can not be used when making a shared object; recompile with -fPIC Adrian Bunk <bunk@debian.org> - 2025-11-11 14:40 +0100
csiph-web