On Thu, 20 Apr 2000, Paul D. Smith wrote:
> %% 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.
> 


I'm pretty sure I did cuz I copied it directly from the email using cut and
paste.  To be sure though here is another

hemlock.alpine.com:29#  cc -v -DHAVE_CONFIG_H -I. -I. -I.. -g -O2 -E -dD glob.c
Reading specs from /lib/m68k/specs
NeXT Computer, Inc. version cc-437.2.6, gcc version 2.5.8
 /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
NeXT DevKit-based CPP 3.1
./glob.h:54: undefined type, found `__SIZE_TYPE__'                              


>   >> $ 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"'
>


When I try the above  I get this.

hemlock.alpine.com:36# make CFLAGS='-D__size_t="unsigned long"'
make  all-recursive
Making all in glob
rm -f libglob.a
ar cru libglob.a glob.o fnmatch.o
ranlib libglob.a
Making all in i18n
cc -DALIASPATH=\"/Net/share/locale:.\" -DLOCALEDIR=\"/Net/share/locale\" 
-DLIBDIR=\"/Net/lib\" -DINCLUDEDIR=\"/Net/include\" -DHAVE_CONFIG_H -I. -I. -I./glob
 -g -O2 -c dir.c
./glob/glob.h:54: undefined type, found `__SIZE_TYPE__'
*** Exit 1
Stop.
*** Exit 1
Stop.
*** Exit 1
Stop.                                    


> 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.

I'll be checking those later tonight. 

Thanks.

 > 
> -- 
> -------------------------------------------------------------------------------
>  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
-- 
Juan Casero
IFX Corporation
15050 NW 79th CT
Miami Lakes, FL   33016

Reply via email to