[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#808205: libc6: Unrecognized relocation when compiling



On 2016-01-05 00:55, Mahesh Kronecker wrote:
> Dear all,
> I am on Debian/Jessie, not sid nor Stretch, but I can reproduce the hello.c bug as done by John Aston:
> 
> $ gcc hello.c -o hello
> /usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/4.9/../../../x86_64-linux-gnu/crti.o: réadressage inconnu (0x2a) dans la section « .init »
> /usr/bin/ld: édition de lien finale en échec: Mauvaise valeur
> collect2: error: ld returned 1 exit status
> 
> Packages:
> --------------------------------------
> sudo apt-cache show binutils
> Package: binutils
> Version: 2.25-5
> 
> Package: libc6-dev
> Source: glibc
> Version: 2.19-18+deb8u1
> 
> sudo apt-cache show libgcc1
> Package: libgcc1
> Source: gcc-4.9 (4.9.2-10)
> Version: 1:4.9.2-10
> 
> sudo apt-cache show libc6
> Package: libc6
> Status: install ok installed
> […]
> Source: glibc
> Version: 2.21-1

glibc version 2.21-1 has never been available in jessie...

> […]
> -------------------------------------
> 
> Is there something wrong in my settings or is this related to the bug you are describing in the testing versions of Debian?
> I do not know what to do to fix the issue on my system.

It really looks like your system have a mix of jessie and stretch or
sid. Can you please try to run the following commands and send me the
output:

  dpkg -l libc6:amd64

  md5sum /usr/lib/x86_64-linux-gnu/crti.o

-- 
Aurelien Jarno                          GPG: 4096R/1DDD8C9B
aurelien@aurel32.net                 http://www.aurel32.net


Reply to: