LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 07-07-2005, 05:36 AM   #1
richardji
LQ Newbie
 
Registered: Jul 2005
Location: China
Posts: 10

Rep: Reputation: 0
A quertion about ./configure


I am installing the linux software, after tar the soft, I did ./configure,but got warning message:
checking how to run the C preprocessor... /lib/cpp
configure: error: C preprocessor "/lib/cpp" fails sanity check

Who can tell me why? thanks!
 
Old 07-07-2005, 06:06 AM   #2
Chromezero
Member
 
Registered: Nov 2004
Location: Arizona
Distribution: Slackware, RHEL, others
Posts: 470

Rep: Reputation: 40
I could be wrong on this one, but I think you're missing the gcc or g++ compiler. I'd check to make sure you have these installed and give it another go.
 
Old 07-07-2005, 06:18 AM   #3
richardji
LQ Newbie
 
Registered: Jul 2005
Location: China
Posts: 10

Original Poster
Rep: Reputation: 0
I have checked that I have gcc and g++, the version is 3.2.2-5.
 
Old 07-07-2005, 08:33 AM   #4
Chromezero
Member
 
Registered: Nov 2004
Location: Arizona
Distribution: Slackware, RHEL, others
Posts: 470

Rep: Reputation: 40
Not sure if it'll help, but you may want to look at threadid=124961&highlight=cpp. That's all I can come up with at the moment.
 
Old 07-07-2005, 09:47 AM   #5
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 10,659
Blog Entries: 4

Rep: Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941
The configure-script should produce a log file in the current directory.

You can also look at the file itself (e.g. less configure), and look for the word "sanity check." You can thereby see exactly what configure is trying to do, and why it is failing.
 
Old 07-08-2005, 02:10 AM   #6
__J
Senior Member
 
Registered: Dec 2004
Distribution: Slackware, ROCK
Posts: 1,973

Rep: Reputation: 46
you are missing something from your development environment, unless you post the relevant portion of the config.log ( in the source directory you ran ./configure from) it's hard to say what it is. if the software needs the kernel headers and you don't have them installed it will do this, as well as other things but check the above.
 
Old 07-08-2005, 02:21 AM   #7
richardji
LQ Newbie
 
Registered: Jul 2005
Location: China
Posts: 10

Original Poster
Rep: Reputation: 0
Hi, __J, I can't paste the configure.log,can we chat in MSN?
My MSN: jiliinsupcom@hotmail.com
 
Old 07-08-2005, 02:38 AM   #8
richardji
LQ Newbie
 
Registered: Jul 2005
Location: China
Posts: 10

Original Poster
Rep: Reputation: 0
Well, I find these in configure.log
Syntax error
configure:4002: /lib/cpp conftest.c
In file include from /usr/lib/gcc-lib/i386-redhat-linux/3.2.2/include/syslimits.h:7
from /usr/lib/gcc-lib/i386-redhat-linux/3.2.2/include/limits.h:11,
from conftest.c:13:
/usr/lib/gcc-lib/i386-redhat-linux/3.2.2/include/limits.h:132:75: limits.h: No such file or
directory

so how to get limits.h?
 
Old 07-08-2005, 03:35 AM   #9
__J
Senior Member
 
Registered: Dec 2004
Distribution: Slackware, ROCK
Posts: 1,973

Rep: Reputation: 46
limits.h IIRC comes from glibc, if you are on an rpm or debian based distro, you may need to install a package called glibc-devel. it could also come from the kernel-headers package ( sorry, I'm transferring music to portable right now on windows so I can't double check for a few more min.) note that the kernel-headers package is not the same as the kernel-source package, and when installing either glibc-devel or kernel-headers packages, you must make sure they are the correct ones ( do not install a mandrivia kernel-headers package on say a suse 9.3 system, or a suse 9.2 kernel-headers package on suse 9.3, your best bet when installing system packages like these is to grab them straight off of your install cd's/dvd or a official mirror for your distro and version).

as soon as my files get done transferring, I'll double check where that header file comes from.
 
Old 07-08-2005, 03:45 AM   #10
__J
Senior Member
 
Registered: Dec 2004
Distribution: Slackware, ROCK
Posts: 1,973

Rep: Reputation: 46
double checked and limits.h comes from glibc, make sure if your running a distro like explained above that you have glibc-devel installed.
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Configure dhcpd (Configure DHCP Server) hanserver2004 LinuxQuestions.org Member Success Stories 3 10-23-2006 06:39 AM
ardour wont configure: configure: error: C preprocessor "/lib/cpp" fails sanity check disciple061 Linux - Software 4 01-22-2005 12:35 PM
Configure dhcpd (Configure DHCP Server) hanserver2004 General 1 08-16-2004 01:39 PM
How to use GNU autoconf to generate a new configure from configure.in ?? vanhelsing Programming 5 08-05-2004 10:02 AM
configure: error: when trying to install / configure new software ? met tomfer007 Linux - Software 1 07-25-2004 03:52 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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