LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux > 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

Tags used in this thread
Popular LQ Tags

Reply
 
Thread Tools
Old 10-02-2008, 11:55 AM   #46
brianL
Senior Member
 
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Laptop: Slackware 13.0 // Desktop: ; Slackware64 13.0; Debian "lenny"
Posts: 2,921
Blog Entries: 20
Thanked: 128

[Log in to get rid of this advertisement]
If you're new to Slackware, and not sure what you will need, always do a full install.
brianL is offline     Reply With Quote
Old 10-09-2008, 11:01 PM   #47
cocobear
LQ Newbie
 
Registered: May 2005
Posts: 1
Thanked: 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
cocobear is offline     Reply With Quote
Old 10-17-2008, 10:15 AM   #48
alainscribot
LQ Newbie
 
Registered: Jun 2008
Location: France (Paris area)
Distribution: Slackware
Posts: 4
Thanked: 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
alainscribot is offline     Reply With Quote
Old 04-25-2009, 08:30 AM   #49
lolenchy
LQ Newbie
 
Registered: Apr 2009
Posts: 1
Thanked: 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.
lolenchy is offline     Reply With Quote

Reply

Bookmarks


Thread Tools

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 11:57 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
RSS2  LQ Podcast
RSS2  LQ Radio
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration