|
From: | Eric Blake |
Subject: | Re: test-sched build error on CentOS 5 |
Date: | Mon, 19 Sep 2011 14:00:17 -0600 |
User-agent: | Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.22) Gecko/20110906 Fedora/3.1.14-1.fc14 Lightning/1.0b3pre Mnenhy/0.8.3 Thunderbird/3.1.14 |
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 address@hidden +1-801-349-2682 Libvirt virtualization library http://libvirt.org
[Prev in Thread] | Current Thread | [Next in Thread] |