LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 04-24-2005, 02:35 AM   #1
alexrait1
Member
 
Registered: Jul 2003
Location: Israel
Distribution: slackware current kernel 2.6.9
Posts: 70

Rep: Reputation: 15
cpp sanity check


When I try to compile anything I get this error:
Code:
checking how to run the C preprocessor... /lib/cpp
configure: error: C preprocessor "/lib/cpp" fails sanity check
Now, I do have g++ installed:


Code:
bash-3.00$ cd /var/log/packages/
bash-3.00$ ls | grep g++
gcc-g++-3.3.5-i486-1
bash-3.00$
and this is the relevant part of my config.log:
Code:
/usr/include/bits/local_lim.h:36:26: linux/limits.h: No such file or directory
configure:4033: $? = 1
configure: failed program was:
| /* confdefs.h.  */
|
| #define PACKAGE_NAME "guifications"
| #define PACKAGE_TARNAME "guifications"
| #define PACKAGE_VERSION "2.10"
| #define PACKAGE_STRING "guifications 2.10"
| #define PACKAGE_BUGREPORT "guifications-devel@lists.sourceforge.net"
| #define PACKAGE "guifications"
| #define VERSION "2.10"
| /* end confdefs.h.  */ 
| #ifdef __STDC__
| # include <limits.h>
| #else
| # include <assert.h>
| #endif
|                    Syntax error
configure:4102: error: C preprocessor "/lib/cpp" fails sanity check
See `config.log' for more details.
Thanx for you help!!
 
Old 04-24-2005, 03:09 AM   #2
kodon
Member
 
Registered: Jul 2004
Location: [jax][fl][usa]
Distribution: Slackware64-current
Posts: 796

Rep: Reputation: 31
do you have the kernel headers package installed?
 
Old 04-24-2005, 03:27 AM   #3
gbonvehi
Senior Member
 
Registered: Jun 2004
Location: Argentina (SR, LP)
Distribution: Slackware
Posts: 3,145

Rep: Reputation: 53
Do you have gcc's g++ compiler installed (c++)?

That seems to cause sanity check error: http://www.linuxquestions.org/questi...5&pagenumber=1
However I think the sanity check could check for more stuff.
 
Old 04-24-2005, 03:50 AM   #4
alexrait1
Member
 
Registered: Jul 2003
Location: Israel
Distribution: slackware current kernel 2.6.9
Posts: 70

Original Poster
Rep: Reputation: 15
I have g++ installed... that's what you can see in my first message... or do you mean some other gcc.

I don't have kernel headers installed... but is it needed for these compilations? I am not compiling the kernel right now...
 
Old 04-24-2005, 04:00 AM   #5
gbonvehi
Senior Member
 
Registered: Jun 2004
Location: Argentina (SR, LP)
Distribution: Slackware
Posts: 3,145

Rep: Reputation: 53
You're right, my mistake.
I was rereading your post when I saw you pasted this: /usr/include/bits/local_lim.h:36:26: linux/limits.h: No such file or directory
And then it comes the sanity check error so I assume that missing file is what's causing it. A quick look at http://slackware.com/pb showed that the file comes with glibc package and kernel-headers package (as kodon pointed out), but the first is /usr/include/limits.h while the kernel-headers one is /usr/include/linux/limits.h which is the one you seem to be missing and I guess it's needed by cpp too. Some programs requiere kernel-headers as you can see, but not usually.

Last edited by gbonvehi; 04-24-2005 at 04:05 AM.
 
Old 04-24-2005, 07:32 AM   #6
alexrait1
Member
 
Registered: Jul 2003
Location: Israel
Distribution: slackware current kernel 2.6.9
Posts: 70

Original Poster
Rep: Reputation: 15
Thanx for your help.
How to install kernel headers? I have my own compiled kernel 2.6.10.
Should I run make kernel-headers or something like this?
By the way when I compile the 2.6.11 kernel, I get a similar error with limits.h...
 
Old 04-24-2005, 08:43 AM   #7
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
Just install the kernel 2.4 headers that shipped with Slack.
 
  


Reply



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
/lib/cpp fails sanity check problem Varius Linux - Software 1 08-26-2005 12:13 AM
cpp fails sanity check??? dinolinux Debian 2 07-30-2005 11:43 AM
cpp fails sanity check? linux-rulz Linux - Software 4 05-16-2005 04:00 AM
configure /lib/cpp fails sanity check johnlittlepeap Fedora 0 12-07-2004 05:52 AM
/lib/cpp fails sanity check? NonSumPisces Linux - Software 2 10-02-2004 07:46 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 01:09 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
Open Source Consulting | Domain Registration