LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 10-02-2008, 10:55 AM   #46
brianL
LQ 5k Club
 
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Slackware64 15; SlackwareARM-current (aarch64); Debian 12
Posts: 8,302
Blog Entries: 61

Rep: Reputation: Disabled

If you're new to Slackware, and not sure what you will need, always do a full install.
 
Old 10-09-2008, 10:01 PM   #47
cocobear
LQ Newbie
 
Registered: May 2005
Posts: 1

Rep: Reputation: 0
Quote:
Originally Posted by wvragga View Post
Greetings All,

this had me tearing my hair out for a while.....

The solution for me was to create 2 missing symbolic links, I got the info from the GCC install howto.

My error was that linux/limits.h did not exist .

In the dir usr/include linux should be linked to /linux/include/linux in the kernel source dir, and asm should be linked to linux/include/asm also in kernel source dir.

My commands needed were:

ln -s /usr/src/linux/include/linux /usr/include/linux

ln -s /usr/src/linux/include/asm /usr/include/asm

This assumes that you have a symbolic link in usr/src (or wherever your source is) linux that links to /linux-2.6.whatever your kernel is ;-)

Configure was looking for these links, as soon as I created them I was all good!

Respects,
Ragga ;-)
Thanks for your post, I also got the same error , my solution is :

ln -s /usr/src/kernels/2.6.25-14.fc9.x86_64/include/linux /usr/include/linux
 
Old 10-17-2008, 09:15 AM   #48
alainscribot
LQ Newbie
 
Registered: Jun 2008
Location: France (Paris area)
Distribution: Slackware
Posts: 4

Rep: Reputation: 0
Well, thanks for your advice.
My first problem was that "slackbuilds" clean up after use, including the configure.log file and leave nothing to look at. So I got something else to compile, i.e. wine-1.1.6. This generated a config.log which produced a number of lines similar to those below :


configure:3759: $? = 1
configure: failed program was:
| /* confdefs.h. */
| #define PACKAGE_NAME "Wine"
| #define PACKAGE_TARNAME "wine"
| #define PACKAGE_VERSION "1.1.6"
| #define PACKAGE_STRING "Wine 1.1.6"
| #define PACKAGE_BUGREPORT "wine-devel@winehq.org"
| /* end confdefs.h. */
| #ifdef __STDC__
| # include <limits.h>
| #else
| # include <assert.h>
| #endif
| Syntax error
configure:3753: gcc -E conftest.c
In file included from /usr/include/bits/posix1_lim.h:153,
from /usr/include/limits.h:145,
from /usr/lib/gcc/i486-slackware-linux/4.2.3/include/limits.h:1
22,
from /usr/lib/gcc/i486-slackware-linux/4.2.3/include/syslimits.
h:7,
from /usr/lib/gcc/i486-slackware-linux/4.2.3/include/limits.h:1
1,
from conftest.c:9:
/usr/include/bits/local_lim.h:36:26: error: linux/limits.h: No such file or directory


I'm supposing a way out is to create a link concerning "limits.h" somewhere, but I'm not sure about this, what would you do?

Cheers & thanks, A
 
Old 04-25-2009, 07:30 AM   #49
lolenchy
LQ Newbie
 
Registered: Apr 2009
Posts: 1

Rep: Reputation: 0
Quote:
Originally Posted by zip View Post
Thank you for posting this solution.
I had the same problem.
Who would have known that cc1 is cc1plus?
This is for Debian 3.1. ./configuration for a Graphire 4 graphics tablet.

asus:/usr/bin# ln -s /usr/lib/gcc/i486-linux-gnu/4.0.3/cc1 cc1plus

Hi,
I had this same issue on Freebsd for months and it's now solved. If using Freebsd do:

ln -s /usr/libexec/cc1 /usr/bin/cc1plus and you should be fine.
 
Old 05-05-2010, 02:58 AM   #50
123zacp
LQ Newbie
 
Registered: May 2010
Posts: 1

Rep: Reputation: 0
Unhappy

Quote:
Originally Posted by stevenking66 View Post
Hello

Not sure if this you proiblem, but for the benefit of the world in general, you can get the same error message if you do not have the kernel-source installed. My clue was in the config.log:

configure:3620: result: /lib/cpp
configure:3644: /lib/cpp conftest.c
In file included from /usr/include/bits/posix1_lim.h:130,
from /usr/include/limits.h:144,
from /usr/lib/gcc-lib/i586-suse-linux/3.3.3/include/limits.h:122,
from /usr/lib/gcc-lib/i586-suse-linux/3.3.3/include/syslimits.h:7,
from /usr/lib/gcc-lib/i586-suse-linux/3.3.3/include/limits.h:11,
from conftest.c:12:
/usr/include/bits/local_lim.h:36:26: linux/limits.h: No such file or directory


Hope this is helpful to someone

Steve
configure: error: C++ preprocessor "/lib/cpp" fails sanity check
See `config.log' for more details.
i get this when i install a program that i need help ??
 
Old 12-29-2011, 04:12 AM   #51
amigoadkar
LQ Newbie
 
Registered: Dec 2011
Posts: 1

Rep: Reputation: Disabled
Possible problem

/usr/include/limits.h
file was empty

I was able to solve problem by creating link
ln -s /usr/include/linux/limits.h /usr/include/limits.h
 
Old 04-11-2012, 10:59 AM   #52
Gadien
LQ Newbie
 
Registered: Apr 2012
Posts: 1

Rep: Reputation: Disabled
Quote:
Originally Posted by Tinkster View Post
Have another look

gcc = C compiler
g++ = C++ compiler ...

I'm almost certain that Mandreck comes
with more than one gcc option to install.


Cheers,
Tink
Yep. solved my problem
 
Old 05-31-2012, 10:27 AM   #53
hobbitses
LQ Newbie
 
Registered: May 2012
Posts: 1

Rep: Reputation: Disabled
Cool This guy knows what's up

Quote:
Originally Posted by imanassypov View Post
Dudes,

You are missing the g++ package. Just do 'apt-get install g++'.
This will definitely get you going with your /.configure



-igor
This solved my issue. And, it's the easiest solution.
 
Old 03-10-2016, 02:17 AM   #54
flos
Member
 
Registered: Feb 2009
Location: Shropshire, UK
Distribution: Mint
Posts: 30

Rep: Reputation: 2
gcc v g++ thanks

Thanks, Tinkster, your explanation of gcc versus g++ helped me, too.
Flos
 
Old 11-09-2017, 07:34 AM   #55
dedec0
Senior Member
 
Registered: May 2007
Posts: 1,372

Rep: Reputation: 51
Today, in some machine, I came accross the same problem. As this thread started several years back, I decided to make this post, that can eventually be useful to people - like this thread was to me, right now.

Some comments seem wrong (at least compared to my solution) or - possibly - just different, because they are old enough.

OS:
Debian 9 (just to mention, the name which I never remember and prefer not to use is: Debian Stretch)
Linux debian 4.9.0-3-amd64 #1 SMP Debian 4.9.30-2+deb9u2 (2017-06-26) x86_64

Problem: ./configure 'ing a project (which should not matter much for the issue, as long it is/contains c++) the following error happens:

Code:
$ ./configure

[[[[[ there are several lines before the following one,
but I removed them here, should not matter ]]]]]

configure: error: C++ preprocessor "/lib/cpp" fails sanity check
See `config.log' for more details.
The installed package that solved the issue is 'g++'.

'/var/log/apt/history.log' last lines are:

Code:
Start-Date: 2017-11-09  10:53:47
Commandline: /usr/sbin/synaptic
Requested-By: u ( [[[uid number]]] )
Install: g++:amd64 (4:6.3.0-4), g++-6:amd64 (6.3.0-18, automatic),
         libstdc++-6-dev:amd64 (6.3.0-18, automatic)
End-Date: 2017-11-09  10:53:48

Now I am into the next step for that source. (:

Last edited by dedec0; 11-09-2017 at 11:04 AM.
 
  


Reply

Tags
cpp



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
error: C++ preprocessor "/lib/cpp" fails sanity check marek345 Linux - Software 4 11-06-2008 09:49 AM
ardour wont configure: configure: error: C preprocessor "/lib/cpp" fails sanity check disciple061 Linux - Software 4 01-22-2005 12:35 PM
configure: error: C++ preprocessor "/lib/cpp" fails sanity check HELP Ckesey Linux - Newbie 3 10-04-2004 01:58 PM
configure: error: C++ preprocessor "/lib/cpp" fails sanity check HELP Ckesey Linux - Software 0 10-04-2004 09:49 AM
configure: error: C++ preprocessor "/lib/cpp" fails sanity check raela Linux - Software 6 03-16-2004 05:59 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:29 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