LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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, 11:55 AM   #46
brianL
LQ 5k Club
 
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Slackware & Slackware64 14.1
Posts: 7,081
Blog Entries: 52

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, 11: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, 10: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, 08: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, 03: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, 05: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, 11: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, 11: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.
 
  


Reply

Tags
cpp


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


All times are GMT -5. The time now is 10:43 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration