[Pkg-gpe-maintainers] Bug#713607: gpe-bluetooth: FTBFS: unresolvable R_X86_64_PC32 relocation

Matthias Klose doko at debian.org
Mon Jun 24 12:10:53 UTC 2013


Am 24.06.2013 12:33, schrieb David Suárez:
> On Domingo, 23 de junio de 2013 00:04:10 Neil Williams escribió:
>> tag 713607 + help
>> retitle 713607 gpe-bluetooth: unresolvable R_X86_64_PC32 relocation on
>> amd64 thanks
>>
>>>> /usr/bin/ld: main.o(.text+0x5d3): unresolvable R_X86_64_PC32 relocation
>>>> against symbol `devices' /usr/bin/ld: final link failed:
>>>> Nonrepresentable section on output collect2: error: ld returned 1 exit
>>>> status
>>
>> The only references to this error which I can find talk about either the
>> need for compiling with -fPIC on 64bit x86 or the introduction of this
>> confusing error in gcc-4.8 (#703230 which also talks about -fPIC). Even
>> if I try that, it doesn't help the package build.
>>
>> Any help debugging this failure would be appreciated, right now, it
>> doesn't make a whole lot of sense, except that it only happens with
>> gcc-4.8.
>>
>> On i386, the failure message is:  R_386_32 relocation against symbol
>> `devices'

devices seems to be exported by one of the libraries used for linking. So to
properly fix that, find that library, rename the too generic name, and don't use
such a generic name yourself.

  Matthias

PS: Not seen in Ubuntu, so it might help to link with --as-needed.




More information about the Pkg-gpe-maintainers mailing list