[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

NPTL 0.4 setup compile error



Dear All,

    I met a compile error of glibc during the setup of NPTL. The following
is my steps. any hints? thanks a lot in advance.

Software Preparation:
1. NPTL Lib 0.4:		ftp://people.redhat.com/drepper/nptl/
2. GLibc >= 2.3:  		ftp://sources.redhat.com/pub/glibc/snapshots
				ftp://ftp.gnu.org/gnu/glibc/
3. linux kernel >= 2.5.36:  	ftp://ftp.kernel.org
4. gcc >= 3.2:			ftp://ftp.gnu.org/gnu/gcc/
5. binutils >= 2.13.90.0.4-1	ftp://ftp.gnu.org/gnu/binutils/

Steps
1. rebuild the linux kernel(2.5.42) and boot with it;
2. cp glibc-2.3.1.tar.gz /home/nptl;
3. tar xzvf glibc-2.3.1.tar.gz;
4. cp glibc-linuxthreads-2.3.1pre1.tar.bz2 /home/nptl/glibc-2.3.1;
5. tar xjvf glibc-linuxthreads-2.3.1pre1.tar.bz2;
6. make sure /lib/modules/$(uname -r)/build link to correct place;
7. cd /home/nptl/glibc;
8. ./configure --prefix=/usr --enable-add-ons=linuxthreads
     --enable-kernel=current --with-tls
9. make 

the compile error message is as follows:

make  -C csu subdir_lib
make[1]: Entering directory `/home/nptl/glibc-2.3.1/csu'
gcc ../sysdeps/generic/libc-tls.c -c -O2 -Wall -Winline -Wstrict-prototypes
-Wwrite-strings -g      -I../include -I.  -I.. -I../libio
-I../sysdeps/i386/elf -I../linuxthreads/sysdeps/unix/sysv/linux/i386
-I../linuxthreads/sysdeps/unix/sysv/linux -I../linuxthreads/sysdeps/pthread
-I../sysdeps/pthread -I../linuxthreads/sysdeps/unix/sysv
-I../linuxthreads/sysdeps/unix -I../linuxthreads/sysdeps/i386/i686
-I../linuxthreads/sysdeps/i386 -I../sysdeps/unix/sysv/linux/i386
-I../sysdeps/unix/sysv/linux -I../sysdeps/gnu -I../sysdeps/unix/common
-I../sysdeps/unix/mman -I../sysdeps/unix/inet -I../sysdeps/unix/sysv/i386
-I../sysdeps/unix/sysv -I../sysdeps/unix/i386 -I../sysdeps/unix
-I../sysdeps/posix -I../sysdeps/i386/i686/fpu -I../sysdeps/i386/i686
-I../sysdeps/i386/i486 -I../sysdeps/i386/fpu -I../sysdeps/i386
-I../sysdeps/wordsize-32 -I../sysdeps/ieee754/ldbl-96
-I../sysdeps/ieee754/dbl-64 -I../sysdeps/ieee754/flt-32 -I../sysdeps/ieee754
-I../sysdeps/generic/elf -I../sysdeps/generic  -I
/lib/modules/2.5.42/build/include -D_LIBC_REENTRANT -include
../include/libc-symbols.h      -DHAVE_INITFINI -o libc-tls.o
../sysdeps/generic/libc-tls.c: In function `__libc_setup_tls':
../sysdeps/generic/libc-tls.c:130: `firstcall' undeclared (first use in this
function)
../sysdeps/generic/libc-tls.c:130: (Each undeclared identifier is reported
only once
../sysdeps/generic/libc-tls.c:130: for each function it appears in.)
make[1]: *** [libc-tls.o] Error 1
make[1]: Leaving directory `/home/nptl/glibc-2.3.1/csu'
make: *** [csu/subdir_lib] Error 2


Good Luck !
Boris Hu
Intel China Software Lab
TEL: 86-21-52574545-1277
iNET: 8-752-1277
------------------------------------------------------------
This email message contains solely 
my own personal views, and not 
necessarily those of my employer.
-----------------------------------------------------------







[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]