LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-31-2009, 04:19 PM   #1
portia
Member
 
Registered: Oct 2009
Distribution: Slackware
Posts: 112

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


I upgraded my Slackware 13 to Slackware current. I also compiled a new kernel. I've been using it for a week or so and everything seems fine.
The problem is that when I try to compile something, it gives me errors.

When I tried to compile qtparted, I got:
Code:
configure: error: C preprocessor "/lib/cpp" fails sanity check
Thank you
 
Old 11-01-2009, 05:36 AM   #2
portia
Member
 
Registered: Oct 2009
Distribution: Slackware
Posts: 112

Original Poster
Rep: Reputation: 20
I also get the error:
Code:
In file included from /usr/include/bits/posix1_lim.h:153,
                 from /usr/include/dirent.h:232,
                 from resources.cpp:3:
/usr/include/bits/local_lim.h:39:26: error: linux/limits.h: No such file or directory
So I assume the headers or something are missing. I checked the slackware website and the testing section has got packages for kerel 30.5.

If I installed the kernel from source, do I still need to install any headers/sources? Isn't it just a question of making some symlinks?

I made a symlink (/usr/src/linux) of the kernel directory (/usr/src/linux-2.6.31.5). Was it a good thing to do?
 
Old 11-01-2009, 08:55 AM   #3
portia
Member
 
Registered: Oct 2009
Distribution: Slackware
Posts: 112

Original Poster
Rep: Reputation: 20
Ok, it seems to be sorted. What I needed to do is install the headers for the old kernel. I don't actually understand it, but it works. If I'm running my custom kernel (31.5), why the hell do I need to install the headers for the kernel that I removed?
It really doesn't make sense to me.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
configure: error: C++ preprocessor "/lib/cpp" fails sanity check Mugatu Linux - Software 54 11-09-2017 08:34 AM
configure: error: C preprocessor "/lib/cpp" fails sanity check vennaas Linux - Newbie 1 02-06-2008 06:21 PM
configure: error: C preprocessor "/lib/cpp" fails sanity check rundata Linux - Newbie 2 01-16-2008 04:01 AM
configure: error: C preprocessor "/lib/cpp" fails sanity check vikiugu Linux - Newbie 1 12-22-2007 01:06 PM
configure: error: C++ preprocessor "/lib/cpp" fails sanity check HELP Ckesey Linux - Software 0 10-04-2004 10:49 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:50 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration