Sponsored Content
Operating Systems Linux Debian ./configure is broken - /lib/cpp fails sanity check Post 302153332 by ElJavi on Monday 24th of December 2007 08:49:22 AM
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
 

9 More Discussions You Might Find Interesting

1. 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

2. 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

3. 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

4. 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

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. 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

7. 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

8. 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

9. 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
CREATE_MAKEFILE 						  [FIXME: manual]						   CREATE_MAKEFILE

NAME
create_makefile - Creates Makefile.in and Makefile from a Makefile.am SYNOPSIS
create_makefile [relativepath/Makefile] [relativepath] DESCRIPTION
create_makefile creates the Makefile.in and Makefile in a subdirectory containing a Makefile.am. This script saves time compared to re-running configure completely Note that you must supply the path to the desired MakefileMakefile.am (though the final /Makefile may be omitted). This script may be run from the toplevel directory (the one containing configure) or from one of it's subdirectories. If the source directory is different from the build directory (see the environment variables below), it will be assumed that the Makefile.am and Makefile.in belong beneath the source directory and that the Makefile belongs beneath the build directory. This utility is part of the KDE Software Development Kit. ENVIRONMENT
One of the following variables (but not both) should be set if the source directory is different from the build directory. If the build directory is simply a subdirectory of the source directory, the simpler variable OBJ_SUBDIR should be used. OBJ_SUBJDIR Indicates that the build directory is in the given subdirectory of the source directory. For instance, if the source directory is kdesdk and the build directory is kdesdk/obj-i386-linux, then OBJ_SUBDIR should be set to obj-i386-linux. OBJ_REPLACEMENT A sed expression that is used to transform the source directory into the build directory. For instance, if the source directory is ~/src/kdesdk and the build directory is ~/src/kdesdk-obj, then OBJ_REPLACEMENT should be set to s#kdesdk#kdesdk-obj#. SEE ALSO
create_makefiles(1) AUTHORS
create_makefile was written by David Faure<faure@kde.org> and others. This manual page was prepared by Ben Burton<bab@debian.org> for the Debian GNU/Linux system (but may be used by others). [FIXME: source] March 8, 2003 CREATE_MAKEFILE
All times are GMT -4. The time now is 07:59 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy