On Thu, 20 Apr 2000, Paul D. Smith wrote:
> %% Regarding Building Make on NeXTSTEP 3.3; you wrote:
> 
>   jc> This happens with any version of make I try to build.  This NeXT
>   jc> station is running NeXTSTEP 3.3 developer with a variant of
>   jc> gcc-2.5.8 as the compiler.
> 
>   jc> When I try to compile make-3.79 I get the following error:
> 
>   jc> cc -DHAVE_CONFIG_H -I. -I. -I..     -g -O2 -c glob.c
>   jc> ./glob.h:54: undefined type, found `__SIZE_TYPE__'
> 
> So, "cc" is really gcc?  Please run "cc -v" and provide the results.


hemlock.alpine.com:8# cc -v
Reading specs from /lib/m68k/specs
NeXT Computer, Inc. version cc-437.2.6, gcc version 2.5.8
hemlock.alpine.com:9# 




> 
> This error means your configuration is screwed up somehow, I think.
> 
> This line should never be compiled unless your compiler is GCC 2.x:
> 
>   #ifndef __size_t
>   # if defined __GNUC__ && __GNUC__ >= 2
>   typedef __SIZE_TYPE__ __size_t;
>   # else
> 
> And all versions of GCC 2.x should define that value in stddef.h:
> 
>   #ifndef __SIZE_TYPE__
>   #define __SIZE_TYPE__ long unsigned int
>   #endif
> 
> However, this is buried in a lot of ifdef's so maybe something about
> your system is invalidating it.
> 
> If you can't figure this out, run this command:
> 
>   $ cd glob
>   $ cc -v -DHAVE_CONFIG_H -I. -I. -I..     -g -O2 -E -dD glob.c >mk.out 2>&1


Here is the output of that command above.


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__' 




> 
> then compress the output file (mk.out) and email it to me.
> 
> Also, you can try this:
> 
>   $ make CFLAGS='-D__size_t=unsigned long'
> 
> and see if it helps.


Here is the output of trying the above:

hemlock.alpine.com:18# make CFLAGS='-D__size_t=unsigned long'
cc -DHAVE_CONFIG_H -I. -I. -I..     -D__size_t=unsigned long -c glob.c
cc: long: No such file or directory
*** Exit 1
*** `glob.o' removed
Stop.                                                             


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