Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.bugs.dist > #1269813
| 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-11 14:40 +0100 |
| Message-ID | <LPWLf-carR-7@gated-at.bofh.it> (permalink) |
| References | <LuBs8-f2Q8-59@gated-at.bofh.it> <LPFr3-bYQr-11@gated-at.bofh.it> <LPR8S-c6M1-5@gated-at.bofh.it> <LuBs8-f2Q8-59@gated-at.bofh.it> <LPR8S-c6M1-5@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On Tue, Nov 11, 2025 at 08:30:55AM +0100, Timo Röhling wrote: > Hi Adrian, Hi Timo, > * Adrian Bunk <bunk@debian.org> [2025-11-10 21:03]: > > On Sat, Sep 13, 2025 at 04:29:34PM +0000, Santiago Vila wrote: > > > /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 > > > > 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 > > ? > > libjsoncpp provides its own JsonCpp::JsonCpp target, and that one prefers > the static library over the shared one if both are built: > https://sources.debian.org/src/libjsoncpp/1.9.6-4/jsoncpp-namespaced-targets.cmake > > I think I'm going to change that in libjsoncpp, which will restore the > previous behavior (when the static library was not built at all) and makes > more sense in the Debian context anyway. thanks! > Cheers > Timo cu Adrian
Back to linux.debian.bugs.dist | Previous | Next — Previous 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