On 09/19/2011 12:40 PM, Tom G. Christensen wrote:
Hello,

Building a full gnulib bootstrap failed on CentOS 5:
depbase=`echo test-sched.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
gcc -std=gnu99 -DHAVE_CONFIG_H -I. -DGNULIB_STRICT_CHECKING=1 -I. -I.
-I.. -I./.. -I../gllib -I./../gllib -g -O2 -Wall -MT test-sched.o -MD
-MP -MF $depbase.Tpo -c -o test-sched.o test-sched.c &&\
mv -f $depbase.Tpo $depbase.Po
test-sched.c:30: error: expected '=', ',', ';', 'asm' or '__attribute__'
before 't1'

It is caused by pid_t being undefined, adding <sys/types.h> to
test-sched.c allowed the build to complete with no further problems.

Thanks for the report. This is due to a bug in the glibc headers in use by CentOS 5, and we should be able to fix our <sched.h> replacement to work around that glibc bug (which has since been fixed in upstream glibc).

--
Eric Blake   ebl...@redhat.com    +1-801-349-2682
Libvirt virtualization library http://libvirt.org

Reply via email to