compile glibc + nptl fail

chen liwen <[email protected]>
Newsgroups gmane.comp.lib.phil
Message-ID <[email protected]>
Now I'm using
  binutils: 2.14
  kernel: 2.5.74
  gcc: gcc-3.2-7 ( in redhat 8.0)
  nptl: 0.52
  glibc: checkout from cvs
1) tar jxvf nptl-0.52.tar.bz2 under libc directory
2) mkdir build under libc
3) cd build
4) ../configure --prefix=/usr/local/glibc2 --with-tls
--enable-add-ons=nptl
5) make , but there are errors:
.........
gcc setlocale.c -c -std=gnu99 -O2 -Wall -Winline
-Wstrict-prototypes -Wwrite-strings -g    
-DLOCALE_PATH='"/usr/local/glibc2/lib/locale:/usr/local/glibc2/share/i18n"'
-DLOCALEDIR='"/usr/local/glibc2/lib/locale"'
-DLOCALE_ALIAS_PATH='"/usr/local/glibc2/share/locale"'
-DCHARMAP_PATH='"/usr/local/glibc2/share/i18n/charmaps"'
-DREPERTOIREMAP_PATH='"/usr/local/glibc2/share/i18n/repertoiremaps"'
-DLOCSRCDIR='"/usr/local/glibc2/share/i18n/locales"'
-DHAVE_CONFIG_H -Iprograms -I../include -I.
-I/data2/glibc2/libc/build/locale -I.. -I../libio
-I../nptl -I/data2/glibc2/libc/build
-I../sysdeps/i386/elf
-I../nptl/sysdeps/unix/sysv/linux/i386/i686
-I../nptl/sysdeps/unix/sysv/linux/i386
-I../nptl/sysdeps/unix/sysv/linux
-I../nptl/sysdeps/pthread -I../sysdeps/pthread
-I../nptl/sysdeps/unix/sysv -I../nptl/sysdeps/unix
-I../nptl/sysdeps/i386/i686 -I../nptl/sysdeps/i386
-I../sysdeps/unix/sysv/linux/i386/i686
-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/i686
-I../sysdeps/unix/sysv/i386 -I../sysdeps/unix/sysv
-I../sysdeps/unix/i386/i686 -I../sysdeps/unix/i386
-I../sysdeps/unix -I../sysdeps/posix
-I../sysdeps/i386/i686/fpu -I../sysdeps/i386/i686
-I../sysdeps/i386/i486 -I../nptl/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.74/build/include -D_LIBC_REENTRANT
-D_LIBC_REENTRANT -include ../include/libc-symbols.h  
    -o /data2/glibc2/libc/build/locale/setlocale.o -MD
-MP -MF /data2/glibc2/libc/build/locale/setlocale.o.dt
In file included from setlocale.c:42:
categories.def:62: warning: ignoring #pragma
weak_extern 
categories.def:136: warning: ignoring #pragma
weak_extern 
categories.def:188: warning: ignoring #pragma
weak_extern 
categories.def:202: warning: ignoring #pragma
weak_extern 
categories.def:250: warning: ignoring #pragma
weak_extern 
categories.def:262: warning: ignoring #pragma
weak_extern 
categories.def:271: warning: ignoring #pragma
weak_extern 
categories.def:284: warning: ignoring #pragma
weak_extern 
categories.def:303: warning: ignoring #pragma
weak_extern 
categories.def:314: warning: ignoring #pragma
weak_extern 
categories.def:322: warning: ignoring #pragma
weak_extern 
categories.def:344: warning: ignoring #pragma
weak_extern 
In file included from setlocale.c:478:
categories.def: In function `free_mem':
categories.def:62: warning: ignoring #pragma
free_category 
categories.def:136: warning: ignoring #pragma
free_category 
categories.def:188: warning: ignoring #pragma
free_category 
categories.def:202: warning: ignoring #pragma
free_category 
categories.def:250: warning: ignoring #pragma
free_category 
categories.def:262: warning: ignoring #pragma
free_category 
categories.def:271: warning: ignoring #pragma
free_category 
categories.def:284: warning: ignoring #pragma
free_category 
categories.def:303: warning: ignoring #pragma
free_category 
categories.def:314: warning: ignoring #pragma
free_category 
categories.def:322: warning: ignoring #pragma
free_category 
categories.def:344: warning: ignoring #pragma
free_category 
categories.def:344: warning: unused variable
`_nl_C_LC_IDENTIFICATION'
setlocale.c:496: parse error at end of input
categories.def:322: warning: unused variable
`_nl_C_LC_MEASUREMENT'
categories.def:314: warning: unused variable
`_nl_C_LC_TELEPHONE'
categories.def:303: warning: unused variable
`_nl_C_LC_ADDRESS'
categories.def:284: warning: unused variable
`_nl_C_LC_NAME'
categories.def:271: warning: unused variable
`_nl_C_LC_PAPER'
categories.def:262: warning: unused variable
`_nl_C_LC_MESSAGES'
categories.def:250: warning: unused variable
`_nl_C_LC_TIME'
categories.def:202: warning: unused variable
`_nl_C_LC_NUMERIC'
categories.def:188: warning: unused variable
`_nl_C_LC_MONETARY'
categories.def:136: warning: unused variable
`_nl_C_LC_CTYPE'
categories.def:62: warning: unused variable
`_nl_C_LC_COLLATE'
setlocale.c:441: warning: `free_category' defined but
not used
make[2]: ***
[/data2/glibc2/libc/build/locale/setlocale.o] Error 1
make[2]: Leaving directory `/data2/glibc2/libc/locale'
make[1]: *** [locale/subdir_lib] Error 2
make[1]: Leaving directory `/data2/glibc2/libc'
make: *** [all] Error 2

__________________________________
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.