This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Please help me to compile the glibc successfully
- From: "Chen Ken" <chenken at mprc dot pku dot edu dot cn>
- To: <gcc-help at gcc dot gnu dot org>
- Date: Mon, 3 Mar 2003 21:12:04 +0800
- Subject: Please help me to compile the glibc successfully
Dear sir/madam:
I want to compile binutils-2.13.1, gcc-3.1.1, glibc-2.2.4 in my private
path on my computer, which has i586-readhat linux. Orignally on my computer
there are Redhat Linux 8.0, gcc-3.2 and glibc-2.2.93-5. I first compile the
binutils with the local gcc, and change the PATH to my own private path, and
compile the gcc-3.1.1 with the binutils compiled and glibc-2.2.4 with the
binutils and gcc compiled. But when glibc was compiled (that is, when I did
"make"), it report that
"/sysdeps/unix/sysv/linux/errlist.c:41: weak declaration of `_old_sys_nerr'
must precede definition".
I don't know why.And I have try the glibc-2.2.5 and it reported the same
error. But when I used the local gcc-3.2, the error will not be reported.
For some reasons I want to use my own gcc-3.1.1 to compile the glibc-2.2.* ,
and will you please tell me how to compile it successfully?
I compiled the binutils, gcc and glibc with the configurations below:
binutils-2.13.1:${srcdir}/binutils-2.13.1/configure --prefix=${prefix}
gcc-3.1.1:${srcdir}/gcc-3.1.1/configure --prefix=${prefix} -enable-shared -e
nable-threads=posix -enable-languages=c
glibc-2.2.4:${srcdir}/glibc-2.2.4/configure --prefix=${prefix} --enable-add-
ons=linuxthreads
Thanks for your help
Sincerely,
Chen Ken
Microprocessor Research & Development Center, Peking University
Tel: +86(010)62765828 ext. 872
chenken at mprc dot pku dot edu dot cn