This is the mail archive of the libc-alpha@sourceware.cygnus.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Compilation failure of glibc-2.1.2-pre3 on Linux/m68k


>Submitter-Id:	net
>Originator:	Kars de Jong
>Organization:
  ------------------------------------------------------------------------------
  Kars de Jong             Signaalkamp rules the waves!       Turrican@Discworld
  --------======]**-----|      jongk@cs.utwente.nl      |-----**[======---------
>
>Confidential:	no
>Synopsis:	Failure compiling nis/nis_creategroup.c on Linux/m68k
>Severity:	critical
>Priority:	high
>Category:	libc
>Class:		sw-bug
>Release:	libc-2.1.2-pre3
>Environment:
CPU: 68060
Host type: m68k-unknown-linux-gnu
System: Linux rincewind 2.2.10 #4 Mon Aug 16 22:37:06 CEST 1999 m68k unknown
Architecture: m68k

Addons: crypt glibc-compat linuxthreads

Build CC: egcs
Compiler version: egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)
Kernel headers: 2.2.10
Symbol versioning: yes
Build static: yes
Build shared: yes
Build pic-default: no
Build profile: no
Build omitfp: no
Build bounded: no
Build static-nss: no
Stdio: libio

>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 `*'
../time/time.h:122: warning: type defaults to `int' in declaration of `time'
../time/time.h:122: warning: function declaration isn't a prototype
../time/time.h:122: warning: data definition has no type or storage class
../time/time.h:125: parse error before `__time1'
../time/time.h:126: warning: function declaration isn't a prototype
../time/time.h:129: parse error before `mktime'
../time/time.h:129: warning: type defaults to `int' in declaration of `mktime'
../time/time.h:129: warning: data definition has no type or storage class
../time/time.h:149: warning: type defaults to `int' in declaration of `time_t'
../time/time.h:149: parse error before `*'
../time/time.h:149: warning: function declaration isn't a prototype
../time/time.h:153: warning: type defaults to `int' in declaration of `time_t'
../time/time.h:153: parse error before `*'
../time/time.h:153: warning: function declaration isn't a prototype
../time/time.h:158: warning: type defaults to `int' in declaration of `time_t'
../time/time.h:158: parse error before `*'
../time/time.h:159: warning: function declaration isn't a prototype
../time/time.h:160: warning: type defaults to `int' in declaration of `time_t'
../time/time.h:160: parse error before `*'
../time/time.h:161: warning: function declaration isn't a prototype
../time/time.h:165: warning: type defaults to `int' in declaration of `time_t'
../time/time.h:165: parse error before `*'
../time/time.h:166: warning: function declaration isn't a prototype
../time/time.h:174: warning: type defaults to `int' in declaration of `time_t'
../time/time.h:174: parse error before `*'
../time/time.h:174: warning: function declaration isn't a prototype
../time/time.h:185: warning: type defaults to `int' in declaration of `time_t'
../time/time.h:185: parse error before `*'
../time/time.h:186: warning: function declaration isn't a prototype
../time/time.h:213: warning: type defaults to `int' in declaration of `time_t'
../time/time.h:213: parse error before `*'
../time/time.h:213: warning: function declaration isn't a prototype
../time/time.h:228: parse error before `timegm'
../time/time.h:228: warning: type defaults to `int' in declaration of `timegm'
../time/time.h:228: warning: data definition has no type or storage class
../time/time.h:231: parse error before `timelocal'
../time/time.h:231: warning: type defaults to `int' in declaration of `timelocal'
../time/time.h:231: warning: data definition has no type or storage class
In file included from nis_creategroup.c:20:
../include/time.h:27: parse error before `timer'
../include/time.h:29: warning: function declaration isn't a prototype
../include/time.h:36: parse error before `__mktime_internal'
../include/time.h:37: warning: type defaults to `int' in declaration of `time_t'
../include/time.h:37: parse error before `*'
../include/time.h:38: warning: function declaration isn't a prototype
../include/time.h:39: warning: type defaults to `int' in declaration of `__mktime_internal'
../include/time.h:39: warning: function declaration isn't a prototype
../include/time.h:39: warning: data definition has no type or storage class
../include/time.h:40: warning: type defaults to `int' in declaration of `time_t'
../include/time.h:40: parse error before `*'
../include/time.h:41: warning: function declaration isn't a prototype
../include/time.h:47: warning: type defaults to `int' in declaration of `time_t'
../include/time.h:47: parse error before `*'
../include/time.h:49: warning: function declaration isn't a prototype
../include/time.h:55: warning: type defaults to `int' in declaration of `time_t'
../include/time.h:55: parse error before `*'
../include/time.h:55: warning: function declaration isn't a prototype
make: *** [/usr/src/lib/glibc-2.1.2pre3/objs/nis/nis_creategroup.os] Error 1
make: Leaving directory `/usr/src/lib/glibc-2.1.2pre3/nis'

>How-To-Repeat:
Just by trying to build it.
>Fix:
The included header include/time.h uses time_t, whereas at this point only __time_t appears to
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?


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]