[Pkg-crosswire-devel] Bug#676097: Bug#676097: sword: FTBFS: CMakeFiles/buildtest.dir/buildtest.cpp.o: could not read symbols: Bad value

Daniel Glassey dglassey at gmail.com
Wed Jun 6 10:35:38 BST 2012


tags 676097 pending
thanks

On Tue, Jun 5, 2012 at 5:18 AM, Lucas Nussbaum <lucas at lucas-nussbaum.net> wrote:
> Hi,
>
> During a rebuild of all packages in sid, your package failed to build on
> amd64.
>
> Relevant part:
>> /usr/bin/ld: CMakeFiles/buildtest.dir/buildtest.cpp.o: relocation R_X86_64_32S against `.rodata' can not be used when making a shared object; recompile with -fPIC
>> CMakeFiles/buildtest.dir/buildtest.cpp.o: could not read symbols: Bad value
>> collect2: error: ld returned 1 exit status

I'm not set up to deal with bzr and stuff at the mo to do the build
but the fix that is needed is to modify configure.ac to only get the
libs to link from icu-config

i.e. ICU_LIBS=`$ICU_CONFIG --ldflags-libsonly`

The icu package has been fixed to not leak the pie flags so it should
build ok with the current libicu-dev in sid, but this change is still
useful.

Funnily enough, this helped spot the same problem in grcompiler.

Thanks,
Daniel






More information about the Pkg-crosswire-devel mailing list