This is the mail archive of the mailing list for the glibc project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Current glibc( x86_64) error : 'multiple definition of `__libc_lseek'

I just checked and I could build with gcc 5.4 and binutils
Also glibc buildbots [1] do not show any build issues.  I think it is
something related to your environment, did you clean your build directory
before starting a new build?


On 12/11/2016 11:29, Adhemerval Zanella wrote:
> I might be due 3c7f1f59cd1611e0727f9b5ffc32dae78cb05000 and I will check if
> it is related to newer binutils.
> On 12/11/2016 10:28, Klaus Dittrich wrote:
>> Former glibc (glibc-2.24-207-gdad9a11) compiled without error.
>> Current glibc (glibc-2.24-365-g14f95a4) showed this error:
>> cc  -pipe -m64  -B/usr/bin/   -shared -static-libgcc -Wl,-O1 -Wl,-z,defs -Wl,-dynamic-linker=/lib64/ -B/sources/glibc/build/csu/ -Wl,--version-script=/sources/glibc/build/ -Wl, -Wl,-z,combreloc -Wl,-z,relro -Wl,--hash-style=both -nostdlib -nostartfiles -e __libc_main -Wl,-z,now -L/sources/glibc/build -L/sources/glibc/build/math -L/sources/glibc/build/elf -L/sources/glibc/build/dlfcn -L/sources/glibc/build/nss -L/sources/glibc/build/nis -L/sources/glibc/build/rt -L/sources/glibc/build/resolv -L/sources/glibc/build/crypt -L/sources/glibc/build/mathvec -L/sources/glibc/build/nptl -Wl,-rpath-link=/sources/glibc/build:/sources/glibc/build/math:/sources/glibc/build/elf:/sources/glibc/build/dlfcn:/sources/glibc/build/nss:/sources/glibc/build/nis:/sources/glibc/build/rt:/sources/glibc/build/resolv:/sources/glibc/build/crypt:/sources/glibc/build/mathvec:/sources/glibc/build/nptl -o /sources/glibc/build/linkobj/
>> /sources/glibc/build/csu/abi-note.o /sources/glibc/build/elf/soinit.os -Wl,--whole-archive /sources/glibc/build/linkobj/libc_pic.a -Wl,--no-whole-archive /sources/glibc/build/elf/sofini.os /sources/glibc/build/elf/interp.os /sources/glibc/build/elf/ -lgcc
>> /sources/glibc/build/linkobj/libc_pic.a(lseek64.os): In function `__lseek64':
>> lseek64.c:(.text+0x0): multiple definition of `__libc_lseek'
>> /sources/glibc/build/linkobj/libc_pic.a(llseek.os):(.text+0x0): first defined here
>> collect2: error: ld returned 1 exit status
>> make[1]: *** [Makerules:712: /sources/glibc/build/linkobj/] Error 1
>> Both version of glibc got compiled using gcc ..
>> Using built-in specs.
>> COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-unknown-linux-gnu/6.2.1/lto-wrapper
>> Target: x86_64-unknown-linux-gnu
>> Configured with: /sources/gcc/gcc-6-20161110/configure --prefix=/usr --host=x86_64-unknown-linux-gnu --build=x86_64-unknown-linux-gnu --libexecdir=/usr/lib --disable-nls --disable-multilib --disable-libstdcxx-pch --enable-lto --enable-threads=posix --enable-long-long --enable-languages=c,c++ --enable-clocale=gnu --enable-__cxa_atexit --enable-host-shared --enable-gnu-indirect-function --enable-libgomp --enable-libssp --with-system-zlib --with-mpfr=/usr/lib --with-gmp=/usr/lib --with-mpc=/usr/lib --with-gnu-as --with-gnu-ld --enable-64-bit-bfd --pdfdir=/usr/local/docs/gcc
>> Thread model: posix
>> gcc version 6.2.1 20161110 (GCC)
>> and binutils-2.27.
>> Reproducible? Any hints about for me?
>> Thank you.
>> -- 
>> Klaus

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]