My host is RH9-2.6 ,im trying to compile glibc-2.3.4 in chroot environment,i got a problem:
#../glibc-2.3.4-20040701/configure --prefix=/usr --disable-profile --enable-add-ons --enable-kernel=2.6.0 --libexecdir=/usr/lib/glibc
...
configure:error:working compiler support for visibility attribute is required
below is the information for check:
on host:
$/lib/libc.so.6
....
linuxthreads-0.10...
..
on chroot env:
#/tools/lib/libc.so.6
....
Native Posix Thread Library..
...
#gcc -v
Reading specs from /tools/lib/gcc/i686-pc-linux-gnu/3.4.1/specs
Configured with: ../gcc-3.4.1/configure --prefix=/tools --libexecdir=/tools/lib --with-local-prefix=/tools --enable-clocale=gnu --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-languages=c,c++ --disable-libstdcxx-pch
Thread model
osix
gcc version 3.4.1
the gcc is compiled with glibc+nptl , is it the reason causing that problem?and any fix idea? thanks