%% Juan Casero <[EMAIL PROTECTED]> writes:
jc> NeXT Computer, Inc. version cc-437.2.6, gcc version 2.5.8
Hmm. Seems like this modified version of GCC is not enough different
for the code to realize it's different (apparently it still defines
__GNUC__, for example), but is enough different to not work correctly
:-/.
> $ cc -v -DHAVE_CONFIG_H -I. -I. -I.. -g -O2 -E -dD glob.c >mk.out 2>&1
jc> Reading specs from /lib/m68k/specs
jc> NeXT Computer, Inc. version cc-437.2.6, gcc version 2.5.8
jc> /lib/m68k/cpp-precomp -smart -lang-c -v -I. -I. -I.. -arch m68k -undef
-D__GNUC__=2 -D__GNU__ -Dmc68000 -Dm68k -DNeXT -Dunix -D__mc68000__ -D__m68k__
-D__NeXT__ -D__unix__ -D__MACH__ -D__BIG_ENDIAN__ -D__ARCHITECTURE__=\"m68k\"
-D__mc68000 -D__m68k -D__NeXT -D__unix -D__OPTIMIZE__ -g -dD -D__STDC__ -D_NEXT_SOURCE
-DNX_COMPILER_RELEASE_3_0=300 -DNX_COMPILER_RELEASE_3_1=310
-DNX_COMPILER_RELEASE_3_2=320 -DNX_COMPILER_RELEASE_3_3=330
-DNX_CURRENT_COMPILER_RELEASE=330 -DNS_TARGET_MINOR=2 -DNS_TARGET_MAJOR=3
-DNS_TARGET=32 -DHAVE_CONFIG_H glob.c
jc> NeXT DevKit-based CPP 3.1
jc> ./glob.h:54: undefined type, found `__SIZE_TYPE__'
Are you sure you remembered the `-E'? I don't see it on the command
line above, and the output should contain the _entire_ text of the
glob.c file, too.
>> $ make CFLAGS='-D__size_t=unsigned long'
jc> Here is the output of trying the above:
jc> hemlock.alpine.com:18# make CFLAGS='-D__size_t=unsigned long'
jc> cc -DHAVE_CONFIG_H -I. -I. -I.. -D__size_t=unsigned long -c glob.c
jc> cc: long: No such file or directory
Doh. Try this:
make CFLAGS='-D__size_t="unsigned long"'
You might also check with NeXT or any websites or newsgroups to see if
they have a FAQ about this type of thing. It's pretty obviously a
problem with the system's setup and it's very difficult for me to debug
this sort of thing long-distance.
--
-------------------------------------------------------------------------------
Paul D. Smith <[EMAIL PROTECTED]> Find some GNU make tips at:
http://www.gnu.org http://www.ultranet.com/~pauld/gmake/
"Please remain calm...I may be mad, but I am a professional." --Mad Scientist