./configure is broken - /lib/cpp fails sanity check


 
Thread Tools Search this Thread
Operating Systems Linux Debian ./configure is broken - /lib/cpp fails sanity check
# 8  
Old 12-13-2007
Quote:
Originally Posted by Virtuality
I figure that's the libc6-dev package?
Sounds good!
# 9  
Old 12-13-2007
I guess not : /

Quote:
0x1:/# apt-get install libc6-dev
Reading package lists... Done
Building dependency tree... Done
libc6-dev is already the newest version.
Could it be that my kernel source is improperly configured?

Because then we're kind of stuck in a loop...

Originally I was having errors during "make menuconfig" that had me trying to install glibc, the latest gcc, g++, cpp, (I have them, but one update behind) which produced the 'lib/cpp sanity check' errors.

Could cpp be missing a symbolic link? I wouldn't know where to start with that, and I doubt it but it's food for thought.

Anyway, when I try and run 'make menuconfig' from /usr/src/linux I get:

Code:
name:/usr/src/linux# make menuconfig
  HOSTCC  scripts/basic/fixdep
In file included from /usr/local/include/features.h:354,
                 from /usr/include/sys/types.h:27,
                 from scripts/basic/fixdep.c:105:
/usr/local/include/gnu/stubs.h:7:27: error: gnu/stubs-32.h: No such file or directory
make[1]: *** [scripts/basic/fixdep] Error 1
make: *** [scripts_basic] Error 2

In /usr/local/include/gnu/ there is a file called 'libc-version.h' and 'stubs.h'. Is it expecting stubs-32.h? I don't know where to get it or what has it.

So... what do I do?
# 10  
Old 12-13-2007
Well I guess I 'cheated' but it's resolved.

What happened is I thought I'd try installing wine, and it said a package was missing so I installed it via apt-get install... something to do with a digital camera, I don't remember the name and it installed a lot of packages (which I'd been trying to install before) along with it.

Then I had a problem with my graphics so I installed the latest graphics drivers which also compiled a kernel for me.

Heh. It works now at least.
# 11  
Old 12-13-2007
Quote:
Originally Posted by Virtuality
Heh. It works now at least.
By hook or by crook, eh?
# 12  
Old 12-24-2007
Hey,

I've got the same problem with this CPP.

I'm running Debian and I want to develop some software. When I try to compile, he gives a lot of errors:

webcar-host@debian:/var/www/webcar$ gcc -c com.c -o com
In file included from /usr/local/include/features.h:354,
from /usr/include/stdio.h:28,
from com.c:1:
/usr/local/include/gnu/stubs.h:7:27: error: gnu/stubs-32.h: No such file or directory
In file included from com.c:1:
/usr/include/stdio.h:46: error: expected ‘=', ‘,', ‘;', ‘asm' or ‘__attribute__' before ‘typedef'
/usr/include/stdio.h:51: error: expected ‘=', ‘,', ‘;', ‘asm' or ‘__attribute__' before ‘__USING_NAMESPACE_STD'
In file included from /usr/include/_G_config.h:44,
from /usr/include/libio.h:32,
from /usr/include/stdio.h:72,
from com.c:1:
/usr/include/gconv.h:176: error: expected ‘:', ‘,', ‘;', ‘}' or ‘__attribute__' before ‘__flexarr'
In file included from com.c:1:
/usr/include/stdio.h:88: error: expected ‘=', ‘,', ‘;', ‘asm' or ‘__attribute__' before ‘typedef'
In file included from com.c:1:
/usr/include/stdio.h:142: error: expected ‘=', ‘,', ‘;', ‘asm' or ‘__attribute__' before ‘extern'
/usr/include/stdio.h:152: error: expected ‘=', ‘,', ‘;', ‘asm' or ‘__attribute__' before ‘extern'
/usr/include/stdio.h:158: error: expected ‘=', ‘,', ‘;', ‘asm' or ‘__attribute__' before ‘__BEGIN_NAMESPACE_STD'
/usr/include/stdio.h:184: error: expected ‘=', ‘,', ‘;', ‘asm' or ‘__attribute__' before ‘extern'
/usr/include/stdio.h: In function ‘tempnam':

and so on...

So I thought maybe I need to install the gnu C lib. And when configuring this one, I get the same error message as you. I checked all the programs (gcc, cpp, make, binutils, libc6-dev) and they are all the newest version possible. So maybe using the command 'configure --disable-sanity-checks' could help. But still the same.

The problem is, that in stdio.h, he wants to include features.h, but not the one in /usr/include, but the one in /usr/local/include. And in this header, when you include gnu/stubs.h, this file wants to include a file that is not existing. But in /usr/include/gnu/stubs.h, there are just some defs.

So, how do I get the configure to use only those headers (from /usr/include) --> which options must I add.

Thanks for any reply...

Javi
# 13  
Old 02-26-2008
Well, after a lot of research, basically the thing to do is reinstall the complete OS. Apparently installing different versions of for example gcc or cpp creates errors because every version has its one library. Those libraries are thus not compatible and what you see are errors that cannot be explained well.

So I removed everything off my hard-disk, and restarted. Installed the necessary packages for c-development (build-essential should do the job) and checked some packages were still missing. After installing some libraries (libc ect...), the compiling worked.

Greetz,
ElJavi
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. BSD

X -configure fails on NetBSD: Number of created screens does not ...

Hello, my system is NetBSD 6.1.5 on AMD64. 'X -configure' prints following message: "Number of created screens does not match number of detected devices" Only motherboard's on-board graphic is using. xorg.conf.new Section "ServerLayout" Identifier "X.org Configured" ... (7 Replies)
Discussion started by: temp-usr
7 Replies

2. Homework & Coursework Questions

Script performs the right task but fails against check

Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted! 1. The problem statement, all variables and given/known data: Write a script checkFiles.sh that takes an arbitrary number of file paths from the command line and carries ... (5 Replies)
Discussion started by: Ezraek
5 Replies

3. Shell Programming and Scripting

Cron job fails with [DataDirect][ODBC lib] Connection not open error

Hi, When run the script directly...it executes as expected. But when put it in crontab the job fails with this error: Connection not open 08003: Connection not open Unable to connect to the database... how come it is not able to connect when cron job fires?... Do I need to... (7 Replies)
Discussion started by: nuthakki
7 Replies

4. Cybersecurity

iptables rule sanity check?

why would: iptables -A INPUT -s 180.0.0.0/8 -j DROP along with /etc/hosts.deny rule of ALL: 180.0.0.0/8 not stop traffic to/from 180.x.x.x, which I still see by running iftop? Or could iftop just be showing an artifact and is there a better way to monitor connections real-time? (3 Replies)
Discussion started by: unclecameron
3 Replies

5. Cybersecurity

LDAP - sanity check

I have recently changed jobs and where i used to work we had kerberos. Here they have nothing resembling central password management or Network Authentication. I have started looking at LDAP but wonder if that is a good choice. we have a solaris/centos environment (no windows whoo hooo) with 4... (2 Replies)
Discussion started by: oly_r
2 Replies

6. Solaris

PING broken check

Dear All, Required a script which will check the PING response from my source file(tmp/PingStatus.txt) containing the hostnames. If ping response is not responding(i.e when hostname is not alive) then this cmd to be executed : opcmsg object=PING a=OS msg_grp=win-ping severity=critical... (20 Replies)
Discussion started by: mjoshi87
20 Replies

7. Solaris

lib/cpp fails sanity check

I'm trying to install a new library for php but everytime I run configure I got the following error "lib/cpp" fails sanity check. My OS is solaris 10 Any help on how to solve this issue would be highly appreciated (3 Replies)
Discussion started by: dahr
3 Replies

8. Solaris

How to check disk broken

Dear all, I have system that have 2 disk, and 1 off disk is broken, how can I check if the disk is broken or other problem. I'm using Solaris 10 x86. Thank you, Best Regards, Heru (4 Replies)
Discussion started by: heru_90
4 Replies

9. UNIX for Advanced & Expert Users

*** [Gentoo] sanity check failed! ***

I faced the following error while configuring the spine for cacti. Can any one help me to sort out this problem: hecking how to run the C++ preprocessor... g++ -E checking for g77... g77 checking whether we are using the GNU Fortran 77 compiler... yes checking whether g77 accepts -g... yes... (1 Reply)
Discussion started by: praveen_b744
1 Replies
Login or Register to Ask a Question