On Monday 02 January 2017 07:02 PM, Florian Weimer wrote:
-Wl,-soname=ld-linux.so.2 \ -Wl,-defsym=_begin=0
/builddir/build/BUILD/glibc-2.24-592-g73dfd08/build-i686-redhat-linux/elf/librtld.os: In function `getenv': /builddir/build/BUILD/glibc-2.24-592-g73dfd08/stdlib/getenv.c:84: undefined reference to `strncmp' collect2: error: ld returned 1 exit status make[2]: *** [Makefile:460: /builddir/build/BUILD/glibc-2.24-592-g73dfd08/build-i686-redhat-linux/elf/ld.so] Error 1 make[2]: Leaving directory '/builddir/build/BUILD/glibc-2.24-592-g73dfd08/elf'
I can reproduce it upstream with this configure invocation:
../git/configure --prefix=/usr CC="gcc -m32" CFLAGS="-O3 -g" CXX="g++ -m32" CXXFLAGS="-O3" --enable-tunables --enable-stack-protector=strong --build=i686-linux
I believe it was introduced by the tunables changes.
Yes it is in fact due to tunables, where the glibc.malloc.check tunable is disabled. I'll test and post a fix tomorrow.
Siddhesh