egcs-970910 on Linux with glibc-2.0.5
Sudish Joseph
sj@eng.mindspring.net
Fri Sep 12 22:40:00 GMT 1997
I'm running Linux 2.x with glibc-2.0.x.
The compile halts with:
make[1]: Entering directory `/a/src/egcs-970910/libraries/libio'
test -z "" ||\
/home/sj/src/egcs-970910/gcc/xgcc -B/home/sj/src/egcs-970910/gcc/ -c
-g -O2 -I. -I. filedoalloc.c -o pic/filedoalloc.o
/home/sj/src/egcs-970910/gcc/xgcc -B/home/sj/src/egcs-970910/gcc/ -c
-g -O2 -I. -I. filedoalloc.c
In file included from libio.h:30,
from iolibio.h:1,
from libioP.h:36,
from filedoalloc.c:48:
_G_config.h:31: two or more data types in declaration of `_G_dev_t'
_G_config.h:43: parse error before `_G_sigset_t'
_G_config.h:43: warning: data definition has no type or storage class
make[1]: *** [filedoalloc.o] Error 1
make[1]: Leaving directory `/a/src/egcs-970910/libraries/libio'
The patch at the end kluged around it and allowed me to complete the
compile and install. (I do not know where __sigset_t is to be found
when one is not using the GNU C library.) Also, the check against
__GNU_C__ before the typedefs at the head of the file seems bogus
since later uses of some of those types are not protected by the same
conditions.
Thanks,
-Sudish
--- _G_config.h~ Sat Sep 13 01:23:10 1997
+++ _G_config.h Sat Sep 13 01:38:05 1997
@@ -28,7 +28,7 @@
#endif
typedef long int _G_clock_t;
-typedef _G_ullong int _G_dev_t;
+typedef _G_ullong _G_dev_t;
typedef long int _G_fpos_t;
typedef unsigned int _G_gid_t;
typedef unsigned long _G_ino_t;
@@ -40,6 +40,7 @@
#define __PTRDIFF_TYPE__ int
#endif
typedef __PTRDIFF_TYPE__ _G_ptrdiff_t;
+#include <sigset.h>
typedef __sigset_t _G_sigset_t;
#ifndef __SIZE_TYPE__
#define __SIZE_TYPE__ unsigned int
More information about the Gcc-bugs
mailing list