bug-hurd
[Top][All Lists]
Advanced

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

The error of compiling glibc


From: Da Zheng
Subject: The error of compiling glibc
Date: Thu, 28 Aug 2008 00:33:47 +0200
User-agent: Thunderbird 2.0.0.16 (Macintosh/20080707)

Hello,

I get the glibc by "apt-get source glibc" and do "./debian/rules patch" to get the buildable glibc as Samuel Thibault suggested. I create a directory named build-gcc and in this directory, I do "./glibc-2.7/configure --host=i686-gnu --without-cvs --enable-add-ons=libidn --enable-profile --without-selinux"
The configure seems to work well.
But when I run "make", I got the error:

gcc ../sysdeps/unix/bsd/bsd4.4/wait.c -c -std=gnu99 -fgnu89-inline -O2 -Wall -Winline -Wwrite-strings -fmerge-all-constants -g -Wno-parentheses -Wstrict-prototypes -mpreferred-stack-boundary=2 -fexceptions -fasynchronous-unwind-tables -I../include -I/root/glibc-2.7/build-tree/build-glibc/posix -I/root/glibc-2.7/build-tree/build-glibc -I../sysdeps/i386/elf -I../sysdeps/mach/hurd/i386 -I../sysdeps/mach/hurd -I../sysdeps/gnu -I../sysdeps/unix/bsd/bsd4.4 -I../sysdeps/unix/mman -I../sysdeps/mach/i386 -I../sysdeps/mach -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/unix/bsd -I../sysdeps/unix/common -I../sysdeps/unix/inet -I../sysdeps/unix -I../sysdeps/posix -I../sysdeps/ieee754 -I../sysdeps/generic/elf -I../sysdeps/generic -I../hurd -I/root/glibc-2.7/build-tree/build-glibc/hurd/ -I../mach -I/root/glibc-2.7/build-tree/build-glibc/mach/ -I.. -I../libio -I. -D_LIBC_REENTRANT -include ../include/libc-symbols.h -o /root/glibc-2.7/build-tree/build-glibc/posix/wait.o -MD -MP -MF /root/glibc-2.7/build-tree/build-glibc/posix/wait.o.dt -MT /root/glibc-2.7/build-tree/build-glibc/posix/wait.o
In file included from ../include/sys/wait.h:2,
                from ../sysdeps/unix/bsd/bsd4.4/wait.c:19:
../posix/sys/wait.h:116: error: expected ')' before '__stat_loc'
In file included from ../include/sys/wait.h:2,
                from ../sysdeps/unix/bsd/bsd4.4/wait.c:19:
../posix/sys/wait.h:169: error: expected ')' before '__stat_loc'
../posix/sys/wait.h:175: error: expected declaration specifiers or '...' before '__WAIT_STATUS'
In file included from ../sysdeps/unix/bsd/bsd4.4/wait.c:19:
../include/sys/wait.h:12: error: expected ')' before '__stat_loc'
../include/sys/wait.h:13: error: expected ')' before '__stat_loc'
../include/sys/wait.h:15: error: expected declaration specifiers or '...' before '__WAIT_STATUS'
../sysdeps/unix/bsd/bsd4.4/wait.c:27: error: expected ')' before 'stat_loc'
make[2]: *** [/root/glibc-2.7/build-tree/build-glibc/posix/wait.o] Error 1
make[2]: Leaving directory `/root/glibc-2.7/build-tree/glibc-2.7/posix'
make[1]: *** [posix/subdir_lib] Error 2
make[1]: Leaving directory `/root/glibc-2.7/build-tree/glibc-2.7'
make: *** [all] Error 2

It's so weird. I could build glibc in the same way last time.
Did I miss some patches? How do I fix it?

Thank you in advance.
Zheng Da




reply via email to

[Prev in Thread] Current Thread [Next in Thread]