This sounds like the same bug you reported to me
some time ago.
tried to add this line:
#include <sys/types.h>
to every .c file that has:
#include /usr/include/sys/dirent.h
(make sure that types.h is included on a line
preceeding dirent.h)
This is a problem that often pops up on Mac mailing lists
and is to do with Apple shipping corrupt system header files.
I thought I had fixed this in the 0.95 release but obviously
not ...
As to why you get this problem on one machine and not on the other
I have no clue.
Cheers,
Benjamin
----- Originalnachricht -----
Von: Michael Barton <michael.barton@asu.edu>
Datum: Mittwoch, 27. Juli 2005 0:40 am
Betreff: Gem compiling error
Benjamin,
I¹m a bit baffled. I had no problem compiling gem on myG5 desk.
However,when I tried it on my G4 PowerBook it didn¹t work. I¹m
sending the output
below. Maybe you can shed some light before I start digging somewhat
randomly.Both are running OSX 10.3.9 and (I think) have the same version of
Developer¹s Tools (though there may be some difference I¹m not
seeing).
Thanks for your help.
Michael
____________________
C. Michael Barton, Professor of Anthropology
School of Human Evolution and Social Change
PO Box 872402
Arizona State University
Tempe, AZ 85287-2402
USAPhone: 480-965-6262
Fax: 480-965-7671
www: <www.public.asu.edu/~cmbarton>- - - compile errors - - - -
cmb-powerbook:~ cmbarton$ cd /downloads/gem-0.95
cmb-powerbook:/downloads/gem-0.95 cmbarton$ make
gcc -c at_exit_funcs.c -Wall
gcc -c error.c -Wall
gcc -c tools.c -Wall
gcc -c reg_deps.c -Wall
gcc -c reg_entries.c -Wall
/usr/include/sys/dirent.h:73: undefined type, found `u_int32_t'
/usr/include/sys/dirent.h:74: undefined type, found `u_int16_t'
/usr/include/sys/dirent.h:75: undefined type, found `u_int8_t'
/usr/include/sys/dirent.h:76: undefined type, found `u_int8_t'
cpp-precomp: warning: errors during smart preprocessing, retrying
in basic
mode
In file included from /usr/include/dirent.h:64,
from reg_entries.c:25:
/usr/include/sys/dirent.h:73: parse error before "u_int32_t"
/usr/include/sys/dirent.h:75: parse error before "d_type"
/usr/include/sys/dirent.h:76: parse error before "d_namlen"
/usr/include/sys/dirent.h:83: parse error before '}' token
reg_entries.c: In function `restore_entries_gisman':
reg_entries.c:650: dereferencing pointer to incomplete type
reg_entries.c:652: dereferencing pointer to incomplete type
reg_entries.c:652: dereferencing pointer to incomplete type
reg_entries.c:702: dereferencing pointer to incomplete type
reg_entries.c:703: dereferencing pointer to incomplete type
reg_entries.c:703: dereferencing pointer to incomplete type
make: *** [reg_entries.o] Error 1
cmb-powerbook:/downloads/gem-0.95 cmbarton$