This is the mail archive of the
libc-alpha@sourceware.cygnus.com
mailing list for the glibc project.
Re: Compilation failure of glibc-2.1.2-pre3 on Linux/m68k
- To: Kars de Jong <jongk@linux-m68k.org>
- Subject: Re: Compilation failure of glibc-2.1.2-pre3 on Linux/m68k
- From: Andreas Jaeger <aj@arthur.rhein-neckar.de>
- Date: 06 Sep 1999 08:59:38 +0200
- Cc: libc-alpha@sourceware.cygnus.com
- References: <199909060037.CAA07784@rincewind.discworld.org>
Please don't send emails to both libc-alpha and bugs@gnu.org - one
address is enough.
>>>>> Kars de Jong writes:
>> Description:
> The file nis/nis_creategroup.c fails to compile on this system. The error message:
> make: Entering directory `/usr/src/lib/glibc-2.1.2pre3/nis'
> egcs nis_creategroup.c -c -O2 -Wall -Winline -Wstrict-prototypes -Wwrite-strings -m68060 -fpic -I../include -I. -I/usr/src/lib/glibc-2.1.2pre3/objs/nis -I.. -I../libio -I/usr/src/lib/glibc-2.1.2pre3/objs -I../sysdeps/m68k/elf -I../crypt/sysdeps/unix -I../linuxthreads/sysdeps/unix/sysv/linux -I../linuxthreads/sysdeps/pthread -I../linuxthreads/sysdeps/unix/sysv -I../linuxthreads/sysdeps/unix -I../linuxthreads/sysdeps/m68k -I../sysdeps/unix/sysv/linux/m68k -I../sysdeps/unix/sysv/linux -I../sysdeps/gnu -I../sysdeps/unix/common -I../sysdeps/unix/mman -I../sysdeps/unix/inet -I../sysdeps/unix/sysv -I../sysdeps/unix -I../sysdeps/posix -I../sysdeps/m68k/m68020 -I../sysdeps/m68k/fpu -I../sysdeps/m68k -I../sysdeps/wordsize-32 -I../sysdeps/ieee754 -I../sysdeps/libm-ieee754 -I../sysdeps/generic/elf -I../sysdeps/generic -D_LIBC_REENTRANT -include ../include/libc-symbols.h -DPIC -o /usr/src/lib/glibc-2.1.2pre3/objs/nis/nis_creategroup.os
> In file included from ../include/time.h:5,
> from nis_creategroup.c:20:
> ../time/time.h:122: parse error before `time'
> ../time/time.h:122: parse error before `*'
It seems that time_t isn't declared:-(.
Please run the file through the preprocessor only (cd to /usr/src/lib/glibc-2.1.2pre3/nis
first, and then use the command line with -E and perhaps other flags
added) to find out why time_t isn't declared on your system.
[...]
>> How-To-Repeat:
> Just by trying to build it.
Works fine on ix86;-).
>> Fix:
> The included header include/time.h uses time_t, whereas at this
> point only __time_t appears to
That's strange. time/time.h has a
typedef __time_t time_t;
> be defined. But there is also a time.h header in time, which
> appears to be the one that gets installed. Strange? Is that
> include/time.h file supposed to be there?
include/time.h is correct. It's included first and then include
time/time.h. include/time.h defines then additionally some internal
stuff.
Btw. do you have a clean copy of glibc 2.1.2pre3?
Andreas
--
Andreas Jaeger aj@arthur.rhein-neckar.de jaeger@informatik.uni-kl.de
for pgp-key finger ajaeger@aixd1.rhrk.uni-kl.de