glibc-HEAD build failure - undefined versioned symbol name __pthread_atfork@@GLIBC_2.0

Andrew Walrond andrew@walrond.org
Fri Apr 4 10:13:00 GMT 2003


I'm seeing this failure:

gcc   -shared -static-libgcc -Wl,-O1  -Wl,-z,defs 
-Wl,-dynamic-linker=/lib/ld-linux.so.2 
-B/tmp/ftl-QpYje28437/glibc.work/work/csu/ 
-Wl,--version-script=/tmp/ftl-QpYje28437\/glibc.work/work/librt.map 
-Wl,-soname=librt.so.1 -Wl,-z,combreloc 
-L/tmp/ftl-QpYje28437/glibc.work/work 
-L/tmp/ftl-QpYje28437/glibc.work/work/math 
-L/tmp/ftl-QpYje28437/gli\bc.work/work/elf 
-L/tmp/ftl-QpYje28437/glibc.work/work/dlfcn 
-L/tmp/ftl-QpYje28437/glibc.work/work/nss 
-L/tmp/ftl-QpYje28437/glibc.work/work/nis 
-L/tmp/ftl-QpYje28437/glibc.w\ork/work/rt 
-L/tmp/ftl-QpYje28437/glibc.work/work/resolv 
-L/tmp/ftl-QpYje28437/glibc.work/work/crypt 
-L/tmp/ftl-QpYje28437/glibc.work/work/linuxthreads 
-Wl,-rpath-link=/tmp/f\tl-QpYje28437/glibc.work/work:/tmp/ftl-QpYje28437/glibc.work/work/math:/tmp/ftl-QpYje28437/glibc.work/work/elf:/tmp/ftl-QpYje28437/glibc.work/work/dlfcn:/tmp/ftl-QpYje28437/g\libc.work/work/nss:/tmp/ftl-QpYje28437/glibc.work/work/nis:/tmp/ftl-QpYje28437/glibc.work/work/rt:/tmp/ftl-QpYje28437/glibc.work/work/resolv:/tmp/ftl-QpYje28437/glibc.work/wo\rk/crypt:/tmp/ftl-QpYje28437/glibc.work/work/linuxthreads 
-o /tmp/ftl-QpYje28437/glibc.work/work/rt/librt.so -T 
/tmp/ftl-QpYje28437/glibc.work/work/rt/librt.so.lds 
/tmp/ftl-Q\pYje28437/glibc.work/work/csu/abi-note.o -Wl,--whole-archive 
/tmp/ftl-QpYje28437/glibc.work/work/rt/librt_pic.a 
-Wl,--no-whole-archive 
/tmp/ftl-QpYje28437/glibc.work/work/elf\/interp.os 
/tmp/ftl-QpYje28437/glibc.work/work/libc.so 
/tmp/ftl-QpYje28437/glibc.work/work/libc_nonshared.a 
/tmp/ftl-QpYje28437/glibc.work/work/linuxthreads/libpthread.so 
/tm\p/ftl-QpYje28437/glibc.work/work/linuxthreads/libpthread_nonshared.a 
/tmp/ftl-QpYje28437/glibc.work/work/elf/ld.so
/usr/bin/ld: /tmp/ftl-QpYje28437/glibc.work/work/rt/librt.so: undefined 
versioned symbol name __pthread_atfork@@GLIBC_2.0
/usr/bin/ld: failed to set dynamic section sizes: Bad value
collect2: ld returned 1 exit status
make[2]: *** [/tmp/ftl-QpYje28437/glibc.work/work/rt/librt.so] Error 1
make[2]: Leaving directory `/tmp/ftl-QpYje28437/glibc.work/libc/rt'
make[1]: *** [rt/others] Error 2
make[1]: Leaving directory `/tmp/ftl-QpYje28437/glibc.work/libc'
make: *** [all] Error 2

I am configuring/building like this:

---------------BUILD SCRIPT---------------
export LANGUAGE=C
export LC_ALL=C
export CC=gcc
export CFLAGS="-O2 -march=pentium3"
export CXXFLAGS="-O2 -march=pentium3"
LINUX_REPO=linux-2.4
LINUX_VTAG=v2.4.20
GLIBC_VTAG=HEAD
THREADS=linuxthreads
GCC_VTAG=gcc-3_2-branch
BINUTILS_VTAG=binutils-2_13-branch
EDITOR=xemacs
FTL="linux-2.4 v2.4.20 HEAD linuxthreads gcc-3_2-branch 
binutils-2_13-branch xemacs pentium3 2"

cvs -d $SDIR/glibc co -r $GLIBC_VTAG libc
  { [ "$THREADS" != "nptl" ] || tar --directory=libc -xjf 
$SDIR/nptl-0.33.tar.bz2; }

  mkdir work
  cd work
  export CFLAGS="$CFLAGS -mno-sse2" CXXFLAGS="$CXXFLAGS -mno-sse2"
  $WDIR/libc/configure --exec-prefix=/ --prefix=/usr 
--libexecdir=/bin/libexec --infodir=/usr/share/info  --disable-profile 
--enable-add-ons=$THREADS --enable-kernel=2.4.20 
-\-with-headers=$SLASH/usr/include --with-tls --without-cvs
  make $JOBS
  { [ -z "$CHECK" ] || make $JOBS -k check; }
  make $JOBS install_root=$DDIR install
  make $JOBS install_root=$DDIR localedata/install-locales
------------------------------------------



More information about the Libc-alpha mailing list