configure: error: C preprocessor "/lib/cpp" fails

Find out how to get that @*&^$&@ thing to compile!

configure: error: C preprocessor "/lib/cpp" fails

Postby lanemyers » Mon Feb 17, 2003 4:18 pm

I'm trying to compile Crystal Space an Open source game engine but keep getting this error.

checking how to run the C preprocessor... /lib/cpp
configure: error: C preprocessor "/lib/cpp" fails sanity check
See `config.log' for more details.


-here's the config.log file
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

It was created by Crystal Space configure 0.96, which was
generated by GNU Autoconf 2.57. Invocation command line was

$ ./configure --prefix=/Users/alejandr/Applications/crystal

## --------- ##
## Platform. ##
## --------- ##

hostname = Alejandro-Patrones-Computer.local.
uname -m = Power Macintosh
uname -r = 6.0
uname -s = Darwin
uname -v = Darwin Kernel Version 6.0: Sat Jul 27 13:18:52 PDT 2002; root:xnu/xnu
-344.obj~1/RELEASE_PPC

/usr/bin/uname -p = powerpc
/bin/uname -X = unknown

/bin/arch = unknown
/usr/bin/arch -k = unknown
/usr/convex/getsysinfo = unknown
hostinfo = Mach kernel version:
Darwin Kernel Version 6.0:
Sat Jul 27 13:18:52 PDT 2002; root:xnu/xnu-344.obj~1/RELEASE_PPC


Kernel configured for up to 2 processors.
1 processor is physically available.
Processor type: ppc750 (PowerPC 750)
Processor active: 0
Primary memory available: 128.00 megabytes.
Default processor set: 47 tasks, 111 threads, 1 processors
Load average: 0.89, Mach factor: 0.51
unknown
/bin/machine = unknown
/usr/bin/oslevel = unknown
/bin/universe = unknown

PATH: /sw/bin
PATH: /sw/sbin
PATH: /sw/bin
PATH: /sw/sbin
PATH: /bin
PATH: /sbin
PATH: /usr/bin
PATH: /usr/sbin
PATH: /usr/X11R6/bin
PATH: /usr/X11R6/bin


## ----------- ##
## Core tests. ##
## ----------- ##

configure:1414: checking build system type
configure:1432: result: powerpc-apple-darwin6.0
configure:1440: checking host system type
configure:1454: result: powerpc-apple-darwin6.0
configure:1514: checking for gcc
configure:1530: found /usr/bin/gcc
configure:1540: result: gcc
configure:1784: checking for C compiler version
configure:1787: gcc --version </dev/null >&5
gcc (GCC) 3.1 20020420 (prerelease)
Copyright (C) 2002 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

configure:1790: $? = 0
configure:1792: gcc -v </dev/null >&5
Reading specs from /usr/libexec/gcc/darwin/ppc/3.1/specs
Thread model: posix
Apple Computer, Inc. GCC version 1175, based on gcc version 3.1 20020420 (prerel
ease)
configure:1795: $? = 0
configure:1797: gcc -V </dev/null >&5
gcc: argument to `-V' is missing
configure:1800: $? = 1
configure:1824: checking for C compiler default output
configure:1827: gcc conftest.c >&5
configure:1830: $? = 0
configure:1876: result: a.out
configure:1881: checking whether the C compiler works
configure:1887: ./a.out
configure:1890: $? = 0
configure:1907: result: yes
configure:1914: checking whether we are cross compiling
configure:1916: result: no
configure:1919: checking for suffix of executables
configure:1921: gcc -o conftest conftest.c >&5
configure:1924: $? = 0
configure:1949: result:
configure:1955: checking for suffix of object files
configure:1977: gcc -c conftest.c >&5
configure:1980: $? = 0
configure:2002: result: o
configure:2006: checking whether we are using the GNU C compiler
configure:2031: gcc -c conftest.c >&5
configure:2034: $? = 0
configure:2037: test -s conftest.o
configure:2040: $? = 0
configure:2053: result: yes
configure:2059: checking whether gcc accepts -g
configure:2081: gcc -c -g conftest.c >&5
configure:2084: $? = 0
configure:2087: test -s conftest.o
configure:2090: $? = 0
configure:2101: result: yes
configure:2118: checking for gcc option to accept ANSI C
configure:2179: gcc -c -g -O2 conftest.c >&5
/usr/include/stdio.h:64: header file 'sys/types.h' not found
/usr/include/stdio.h:67: header file 'sys/cdefs.h' not found
/usr/include/stdio.h:69: header file 'machine/ansi.h' not found
/usr/include/stdio.h:72: undefined type, found `_BSD_SIZE_T_'
/usr/include/stdio.h:91: undefined type, found `off_t'
/usr/include/stdio.h:149: illegal declaration, missing `;' after `)'
/usr/include/stdio.h:149: syntax error, found `void'
/usr/include/stdio.h:149: illegal member declaration, missing name, found `)'
/usr/include/stdio.h:150: illegal declaration, missing `;' after `)'
/usr/include/stdio.h:150: syntax error, found `void'
/usr/include/stdio.h:150: illegal member declaration, missing name, found `)'
/usr/include/stdio.h:151: illegal declaration, missing `;' after `)'


anyone know how to correct this?
lanemyers
 
Posts: 1
Joined: Mon Feb 17, 2003 8:00 pm
Location: New York

Return to Compile Problems

Who is online

Users browsing this forum: No registered users and 2 guests

cron