Jump to content

C preprocessor "/lib/cpp" fails sanity check


Recommended Posts

I'm trying to get some DVD authoring tools installed, and in the massive string of dependancies I came to libdv. I have the tarball for libdv1.0.0, but it won't install. I get the following error when I try to run ./configure. It comes up if I'm root too:

[urza9814@Arochone libdv-1.0.0]$ ./configure
checking build system type... i686-pc-linux-gnulibc1
checking host system type... i686-pc-linux-gnulibc1
checking target system type... i686-pc-linux-gnulibc1
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 ISO C89... unsupported
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking for a BSD-compatible install... /usr/bin/install -c
checking for a sed that does not truncate output... /bin/sed
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/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... /lib/cpp
configure: error: C preprocessor "/lib/cpp" fails sanity check
See `config.log' for more details.

 

Here's my gcc info:

[urza9814@Arochone libdv-1.0.0]$ gcc -v
Using built-in specs.
Target: i586-mandriva-linux-gnu
Configured with: ../configure --prefix=/usr --libexecdir=/usr/lib --with-slibdir=/lib --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=posix --disable-checking --enable-languages=c,c++,ada,f95,objc,java --host=i586-mandriva-linux-gnu --with-system-zlib --enable-long-long --enable-__cxa_atexit --enable-clocale=gnu --disable-libunwind-exceptions --enable-java-awt=gtk --with-java-home=/usr/lib/jvm/java-1.4.2-gcj-1.4.2.0/jre --enable-gtk-cairo --disable-libjava-multilib
Thread model: posix
gcc version 4.0.1 (4.0.1-5mdk for Mandriva Linux release 2006.0)

 

Anyone know what's going on?

 

 

[moved from Software by spinynorman]

Link to comment
Share on other sites

Post the output of:

 

$ rpm -qa | grep gcc

 

Here's what I get on LE2005:

 

$ rpm -qa | grep gcc
gcc-c++-3.4.3-7mdk
gcc-cpp-3.4.3-7mdk
gcc-3.4.3-7mdk
libgcc1-3.4.3-7mdk

 

Also, have you configured your urpmi sources to include the plf-free and the plf-nonfree repos(see above easy-urpmi link)? They have most of the dvd authoring/video stuff so you may not need to compile from source. It's one of the nicer things about mandriva.

Edited by pmpatrick
Link to comment
Share on other sites

I'm on Mandriva 2006

 

[urza9814@Arochone ~]$ rpm -qa | grep gcc
gcc-c++-4.0.1-5mdk
gcc-4.0.1-5mdk
gcc2.96-cpp-2.96-0.83mdk
libgcc1-4.0.1-5mdk
gcc-cpp-4.0.1-5mdk
[urza9814@Arochone ~]$

 

I tried urpmi, but it didn't have any of the packages. I have plf-free and nonfree set up.

Actually, no, it does have libdv4 and libdvdread3, but it says both are already installed, and mjpegtools still says failed dependancy libdv. Not sure why urpmi has libdv4 though...latest I could find online is 1.0.0?

Edited by Urza9814
Link to comment
Share on other sites

So I'm having problems with other things too. Trying to compile a newer version of Python (2.5) I got the same error. Turns out to be this:

/usr/lib/gcc/i586-mandriva-linux-gnu/4.0.1/include/limits.h:122:61: error: no include path in which to search for limits.h

 

Does that help any?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...