PDA

View Full Version : Knoppix 3.4 compiling problems cpp



Frost
06-08-2004, 11:28 AM
hi,
most of the time when I try to compile a program I get the following message:


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


I reinstalled cpp with apt-get. And I'm running from a HD install with kernel 2.6.5.

/lib/cpp --version


cpp (GCC) 3.3.3 (Debian 20040422)
Copyright (C) 2003 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.


Someone who knows how to solve this?

thx,
F.

fingers99
06-08-2004, 09:10 PM
Which cpp did you get?

Could it be that gcc and cpp are different versions?

Have you tried removing cpp and compiling?


I'm a bit puzzled by this as I've never, on any Linux system, had to install cpp as a seperate entity. Even when I've had to install gcc the pre processor has been sorted by whichever/whatever installation tool I used.

A. Jorge Garcia
06-08-2004, 11:11 PM
Try g++ from GCC which is included in KNOPPIX. I never had a problem with it!

Good Luck,
AJG

Frost
06-09-2004, 10:50 AM
cpp, gcc and g++ are all version 3.3.3, I have removed and reinstalled these packages but without result. (apt-get)

How can I use g++ instead of cpp, or what do you mean AJG? I'm just doing ./configure, and that's what's giving me the CPP errror...

thx for the response so far,
F.

fingers99
06-09-2004, 05:07 PM
I wonder if you're using the wrong version of GCC for that particular package?

Generally, the later the version of GCC is, the more ansi compliant (and the fussier) it is, especially with regard to C++.

What's the output of

gcc -v

?

You'll probably find there's a symlink in /usr/bin: you could try pointing that to the other version (or re-setting the environment).

If all else fails, contact the developer of the package.

Frost
06-09-2004, 07:39 PM
gcc -v gives:


Reading specs from /usr/lib/gcc-lib/i486-linux/3.3.3/specs
Configured with: ../src/configure -v --enable-languages=c,c++,java,f77,pascal,objc,ada,treelang --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-gxx-include-dir=/usr/include/c++/3.3 --enable-shared --with-system-zlib --enable-nls --without-included-gettext --enable-__cxa_atexit --enable-clocale=gnu --enable-debug --enable-java-gc=boehm --enable-java-awt=xlib --enable-objc-gc i486-linux
Thread model: posix
gcc versie 3.3.3 (Debian 20040422)


ls -al /usr/bin/gcc* gives:


lrwxrwxrwx 1 root root 7 2004-06-03 22:40 /usr/bin/gcc -> gcc-3.3
-rwxr-xr-x 1 root root 80716 2003-12-23 12:35 /usr/bin/gcc-3.2
-rwxr-xr-x 1 root root 85164 2004-05-23 15:44 /usr/bin/gcc-3.3
lrwxrwxrwx 1 root root 10 2004-05-27 14:02 /usr/bin/gccbug -> gccbug-3.3
-rwxr-xr-x 1 root root 15886 2003-12-23 11:20 /usr/bin/gccbug-3.2
-rwxr-xr-x 1 root root 15995 2004-05-23 15:38 /usr/bin/gccbug-3.3


I really don't see what's wrong... (maybe 'cause I'm not really poweruser...but I'm working on it...:P)

c ya,
F.

A. Jorge Garcia
06-09-2004, 08:40 PM
What are you trying to compile?

Regards,
AJG

Frost
06-09-2004, 08:59 PM
I tried several sources to compile, kbootsplash, modules for my printer/scanner, lirc, muse, some tv apps, ... most of the things are also available in debian packages but not all of them...