./configure: error: "/lib/cpp" fails sanity check Hello, Installing a Graphire 4 on Debian 3.1 with a 4.2.27 custom kernel. Configure fails as shown below. One problem is that it can both find and not find cpp and gpp. I've read through the cpp and gcc faqs, docs, readmes, change logs, google "./configuration" etc., wacom project howto and mailing list archives. This rare problem is sometimes related to dependencies not being available or found. Actual use of cpp and gpp is way over my head. Below are some of the things that have been done, screen output and parts of configure.log. Prefer not to use the .deb packages, they are over a year old and the Graphire 4 is a new model. Also would like to stick with this kernel, upgrading that with drivers is another big project. Any suggestions? Thank you for your time reading this. Brent =============================================== After failure, upgraded or installed these: Setting up libncursesw5-dev (5.4-4) ... Setting up libxext-dev (4.3.0.dfsg.1-14sarge1) ... Setting up libxi-dev (4.3.0.dfsg.1-14sarge1) ... Setting up libx11-dev (4.3.0.dfsg.1-14sarge1) ... Setting up libxv-dev (4.3.0.dfsg.1-14sarge1) ... Setting up xlibs-static-dev (4.3.0.dfsg.1-14sarge1) ... Setting up gcc-4.0-base (4.0.2-7) ... Setting up libgcc1 (4.0.2-7) ... Setting up libstdc++6 (4.0.2-7) ... Setting up cpp-4.0 (4.0.2-7) ... Setting up binutils (2.16.1cvs20051214-1) ... Setting up gcc-4.0 (4.0.2-7) ... Setting up libmudflap0 (4.0.2-7) ... Setting up libmudflap0-dev (4.0.2-7) ... After writing this, installed: Setting up g++-3.4 (3.4.3-13) ... Setting up libstdc++6-dev (3.4.3-13) ... but still no change ============================================= Updated symlinks in /usr/bin: lrwxrwxrwx 1 root root 16 Jan 16 10:34 gcc -> /usr/bin/gcc-4.0 lrwxrwxrwx 1 root root 7 Jan 15 13:29 cpp -> cpp-4.0 ============================================= Checked for tcl and tk: /usr/lib/tcl8.3 /usr/lib/tk8.3 installed tcl8.3-dev ============================================ Checked for header files and source in /usr/src: drwxr-xr-x 17 root root 4096 Jan 7 17:15 kernel-source-2.4.27 drwxr-xr-x 5 root root 4096 Dec 15 18:35 kernel-headers-2.4.27-2 drwxr-xr-x 4 root root 4096 Dec 15 18:35 kernel-headers-2.4.27-2-k7 lrwxrwxrwx 1 root src 20 Jan 15 13:41 linux -> kernel-source-2.4.27 ============================================ Below are screen printout then parts of config.log asus:/usr/src/linuxwacom-0.7.2# ./configure --enable-wacom checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for gawk... gawk checking whether make sets $(MAKE)... yes checking whether to enable maintainer-specific portions of Makefiles... no checking for gcc... gcc checking for C compiler default output file name... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ANSI C... none needed checking for style of include used by make... GNU checking dependency style of gcc... gcc3 checking for gawk... (cached) gawk checking build system type... i686-pc-linux-gnu checking host system type... i686-pc-linux-gnu checking for a sed that does not truncate output... /bin/sed checking for egrep... grep -E checking for ld used by gcc... /usr/bin/ld checking if the linker (/usr/bin/ld) is GNU ld... yes checking for /usr/bin/ld option to reload object files... -r checking for BSD-compatible nm... /usr/bin/nm -B checking whether ln -s works... yes checking how to recognise dependent libraries... pass_all checking how to run the C preprocessor... gcc -E checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking dlfcn.h usability... yes checking dlfcn.h presence... yes checking for dlfcn.h... yes checking for g++... no checking for c++... no checking for gpp... no checking for aCC... no checking for CC... no checking for cxx... no checking for cc++... no checking for cl... no checking for FCC... no checking for KCC... no checking for RCC... no checking for xlC_r... no checking for xlC... no checking whether we are using the GNU C++ compiler... no checking whether g++ accepts -g... no checking dependency style of g++... none checking how to run the C++ preprocessor... /lib/cpp configure: error: C++ preprocessor "/lib/cpp" fails sanity check See `config.log' for more details. ======================================= Parts of config.log configure:1567: checking for a BSD-compatible install configure:1622: result: /usr/bin/install -c configure:1633: checking whether build environment is sane configure:1676: result: yes configure:1741: checking for gawk configure:1757: found /usr/bin/gawk configure:1767: result: gawk configure:1777: checking whether make sets $(MAKE) configure:1797: result: yes configure:1965: checking whether to enable maintainer-specific portions of Makef iles configure:1974: result: no configure:2035: checking for gcc configure:2051: found /usr/bin/gcc configure:2061: result: gcc configure:2305: checking for C compiler version configure:2308: gcc --version </dev/null >&5 gcc (GCC) 4.0.3 20060115 (prerelease) (Debian 4.0.2-7) configure:2780: gcc -c -g -O2 conftest.c >&5 conftest.c:2: error: syntax error before 'me' configure:2786: $? = 1 configure: failed program was: | #ifndef __cplusplus | choke me | #endif configure:4088: gcc -E conftest.c conftest.c:11:28: error: ac_nonexistent.h: No such file or directory configure:4094: $? = 1 configure: failed program was: | /* confdefs.h. */ | | #define PACKAGE_NAME "" | #define PACKAGE_TARNAME "" | #define PACKAGE_VERSION "" | #define PACKAGE_STRING "" | #define PACKAGE_BUGREPORT "" | #define PACKAGE "linuxwacom" | #define VERSION "0.7.2" | /* end confdefs.h. */ | #include <ac_nonexistent.h> configure:4575: checking for g++ configure:4604: result: no configure:4575: checking for c++ configure:4604: result: no configure:4575: checking for gpp configure:4604: result: no configure:4575: checking for aCC configure:4604: result: no configure:4575: checking for CC configure:4604: result: no configure:4575: checking for cxx configure:4604: result: no configure:4575: checking for cc++ configure:4604: result: no configure:4575: checking for cl configure:4604: result: no configure:4575: checking for FCC configure:4604: result: no configure:4575: checking for KCC configure:4604: result: no configure:4575: checking for RCC configure:4604: result: no configure:4575: checking for xlC_r configure:4604: result: no configure:4575: checking for xlC configure:4604: result: no configure:4617: checking for C++ compiler version configure:4620: g++ --version </dev/null >&5 ./configure: line 1: g++: command not found configure:4623: $? = 127 #ifdef __cplusplus | void exit (int); | #endif | /* end confdefs.h. */ | #ifdef __STDC__ | # include <limits.h> | #else | # include <assert.h> | #endif | Syntax error configure:5023: /lib/cpp conftest.cc cpp: installation problem, cannot exec 'cc1plus': No such file or directory configure:5029: $? = 1 configure: failed program was: | /* confdefs.h. */ #ifdef __STDC__ | # include <limits.h> | #else | # include <assert.h> | #endif | Syntax error configure:5023: /lib/cpp conftest.cc cpp: installation problem, cannot exec 'cc1plus': No such file or directory configure:5029: $? = 1 #ifdef __cplusplus | void exit (int); | #endif | /* end confdefs.h. */ | #ifdef __STDC__ | # include <limits.h> | #else | # include <assert.h> | #endif | Syntax error configure:5106: result: /lib/cpp configure:5130: /lib/cpp conftest.cc cpp: installation problem, cannot exec 'cc1plus': No such file or directory configure:5136: $? = 1 #ifdef __cplusplus | void exit (int); | #endif | /* end confdefs.h. */ | #ifdef __STDC__ | # include <limits.h> | #else | # include <assert.h> | #endif | Syntax error configure:5130: /lib/cpp conftest.cc cpp: installation problem, cannot exec 'cc1plus': No such file or directory configure:5136: $? = 1 | # include <limits.h> | #else | # include <assert.h> | #endif | Syntax error configure:5130: /lib/cpp conftest.cc cpp: installation problem, cannot exec 'cc1plus': No such file or directory configure:5136: $? = 1 #ifdef __cplusplus | void exit (int); | #endif | /* end confdefs.h. */ | #ifdef __STDC__ | # include <limits.h> | #else | # include <assert.h> | #endif | Syntax error configure:5205: error: C++ preprocessor "/lib/cpp" fails sanity check ## ----------------- ## ## Output variables. ## ## ----------------- ## ACLOCAL='${SHELL} /usr/src/linuxwacom-0.7.2/missing --run aclocal-1.9' AMTAR='${SHELL} /usr/src/linuxwacom-0.7.2/missing --run tar' AUTOCONF='${SHELL} /usr/src/linuxwacom-0.7.2/missing --run autoconf' AUTOHEADER='${SHELL} /usr/src/linuxwacom-0.7.2/missing --run autoheader' AUTOMAKE='${SHELL} /usr/src/linuxwacom-0.7.2/missing --run automake-1.9' MAKEINFO='${SHELL} /usr/src/linuxwacom-0.7.2/missing --run makeinfo' ## ----------- ## ## confdefs.h. ## ## ----------- ## #endif #ifdef __cplusplus void exit (int); configure: exit 1 ======================================================= END