LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-02-2008, 05:38 AM   #1
hagdanan
LQ Newbie
 
Registered: Apr 2008
Posts: 3

Rep: Reputation: 0
Unhappy configure: error: C++ preprocessor "/lib/cpp" fails sanity check


I am try to install Synergy. but encountered this error:

configure: error: C++ preprocessor "/lib/cpp" fails sanity check

I not familiar with linux and this is what we use.
Linux 2.6.25-rc2 i686

Some suggest to look for the package gcc-c++ but I dont know what package to use.. because I usually see for fedora.. slackware..


this is the error in the config.log:

configure:4422: checking how to run the C++ preprocessor
configure:4453: g++ -E conftest.cc
In file included from /usr/include/bits/posix1_lim.h:153,
from /usr/include/limits.h:145,
from conftest.cc:17:
/usr/include/bits/local_lim.h:36:26: error: linux/limits.h: No such file or dire
ctory
configure:4459: $? = 1
configure: failed program was:
| /* confdefs.h. */
|
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE "synergy"
| #define VERSION "1.3.1"
| #ifdef __cplusplus
| extern "C" void exit (int) throw ();
| #endif
| #define HAVE_PTHREAD 1
| #define HAVE_NANOSLEEP 1
| /* end confdefs.h. */
| #ifdef __STDC__
| # include <limits.h>
| #else
| # include <assert.h>
| #endif
| Syntax error
configure:4453: g++ -E conftest.cc
In file included from /usr/include/bits/posix1_lim.h:153,
from /usr/include/limits.h:145,
from conftest.cc:17:
/usr/include/bits/local_lim.h:36:26: error: linux/limits.h: No such file or dire
ctory
configure:4459: $? = 1
configure: failed program was:
| /* confdefs.h. */
|
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
 
Old 04-02-2008, 01:43 PM   #2
kilgoretrout
Senior Member
 
Registered: Oct 2003
Posts: 2,474

Rep: Reputation: 189Reputation: 189
Post what distro you are using. You probably don't have all the necessary C++ , gcc development packages installed for compiling that application. Without knowing exactly which distro you are using, it's impossible to offer further help.
 
Old 04-02-2008, 10:53 PM   #3
hagdanan
LQ Newbie
 
Registered: Apr 2008
Posts: 3

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by kilgoretrout View Post
Post what distro you are using. You probably don't have all the necessary C++ , gcc development packages installed for compiling that application. Without knowing exactly which distro you are using, it's impossible to offer further help.
That is also my problem.. because I don't know what distro this is.. I think this is from scratch.. i am not sure thought.. how can I check?

result form uname -a

Linux xxx.xx.xx.xxx 2.6.25-rc2 #19 SMP PREEMPT Wed Feb 20 08:19:09 SGT 20
08 i686 GNU/Linux
 
Old 05-02-2008, 04:55 AM   #4
newtovanilla
Member
 
Registered: Apr 2008
Posts: 267

Rep: Reputation: 30
You can find out if you have GCC on your system. Someone explained to me how to do this. You use the "gcc --version" command. If you get it to tell you what version of gcc you have then you have gcc installed. If you try "g++ --version" and you get a version, then you have g++ installed.

GCC has a web: http://gnu.gcc.org

You can download GCC if you do not have it, but you need GCC to bulid it unless you can find a package rpm for your distribution. I had GCC 4.2, but I got errors when trying to compile the Linux kernel 2.4.36 and had to get an earlier version of GCC.
 
  


Reply


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
configure: error: C++ preprocessor "/lib/cpp" fails sanity check Mugatu Linux - Software 53 03-10-2016 03:17 AM
configure: error: C preprocessor "/lib/cpp" fails sanity check vennaas Linux - Newbie 1 02-06-2008 06:21 PM
configure: error: C preprocessor "/lib/cpp" fails sanity check rundata Linux - Newbie 2 01-16-2008 04:01 AM
configure: error: C++ preprocessor "/lib/cpp" fails sanity check the1wraith Linux - Software 1 02-18-2007 02:55 PM
configure: error: C++ preprocessor "/lib/cpp" fails sanity check HELP Ckesey Linux - Software 0 10-04-2004 10:49 AM


All times are GMT -5. The time now is 08:36 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration