[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Compile Errors
From: |
Ayan Chakrabarti |
Subject: |
Re: Compile Errors |
Date: |
Wed, 09 Feb 2005 21:29:08 +0530 |
User-agent: |
Mozilla Thunderbird 1.0 (X11/20050130) |
Hi,
I configured with,
autoreconf -i -f -s
/configure --enable-maintainer-mode --prefix=/home/ayan/l4
and the make failed with,
if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../include -D_GNU_SOURCE=1
-I./pthread -I../libc-parts -I./sysdeps/l4/hurd/ia32 -I./sysdeps/l4/ia32
-I./sysdeps/l4/hurd -I./sysdeps/l4 -I./sysdeps/hurd -I./sysdeps/ia32
-I./sysdeps/generic -I./sysdeps/posix -I./pthread -I./include -imacros
./include/libc-symbols.h -std=gnu99 -Wall -g -O3 -MT pt-timedblock.o
-MD -MP -MF ".deps/pt-timedblock.Tpo" -c -o pt-timedblock.o
./sysdeps/l4/pt-timedblock.c; \
then mv -f ".deps/pt-timedblock.Tpo" ".deps/pt-timedblock.Po"; else rm
-f ".deps/pt-timedblock.Tpo"; exit 1; fi
In file included from ../include/pthread/pthread.h:326,
from ../include/pthread.h:2,
from ../include/bits/pthreadtypes.h:27,
from /usr/include/bits/types.h:143,
from /usr/include/time.h:56,
from ./sysdeps/l4/pt-timedblock.c:22:
../include/bits/condition-attr.h:29: error: parse error before "clockid_t"
In file included from ../include/pthread.h:2,
from ../include/bits/pthreadtypes.h:27,
from /usr/include/bits/types.h:143,
from /usr/include/time.h:56,
from ./sysdeps/l4/pt-timedblock.c:22:
../include/pthread/pthread.h:340: error: parse error before "clockid_t"
../include/pthread/pthread.h:344: error: parse error before "clockid_t"
In file included from ../include/pthread.h:2,
from ../include/bits/pthreadtypes.h:27,
from /usr/include/bits/types.h:143,
from /usr/include/time.h:56,
from ./sysdeps/l4/pt-timedblock.c:22:
../include/pthread/pthread.h:673: error: parse error before "clockid_t"
./pthread/pt-internal.h:263: error: storage size of
`__pthread_default_condattr' isn't known
make[2]: *** [pt-timedblock.o] Error 1
I did a grep clockid_t /usr/include/* -r, and found some definitions for
_clockid_t but not for clockid_t anywhere (nor #defines that defined
clockid_t to be _clockid_t).
A "typedef int clockthread_t;" in hurd-l4/include/pthread/pthread.h
seems to have fixed everything and the build worked (i still have to try
booting it with qemu), but I'm not sure why that was required though. I
guess this still qualifies as a bug-report :)
Thanks,
--ayan