This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Current glibc( x86_64) error : 'multiple definition of `__libc_lseek'
- From: Klaus Dittrich <kladit at arcor dot de>
- To: libc-alpha <libc-alpha at sourceware dot org>
- Date: Sat, 12 Nov 2016 13:28:14 +0100
- Subject: Current glibc( x86_64) error : 'multiple definition of `__libc_lseek'
- Authentication-results: sourceware.org; auth=none
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/ld-linux-x86-64.so.2
-B/sources/glibc/build/csu/
-Wl,--version-script=/sources/glibc/build/libc.map -Wl,-soname=libc.so.6
-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/libc.so
/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/ld.so -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/libc.so] Error 1
Both version of glibc got compiled using gcc ..
Using built-in specs.
COLLECT_GCC=gcc
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