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
lint(1B)                                             SunOS/BSD Compatibility Package Commands                                             lint(1B)

NAME
lint - C program verifier SYNOPSIS
/usr/ucb/lint [options] DESCRIPTION
/usr/ucb/lint is the interface to the BSD Compatibility Package C program verifier. It is a script that looks for the link /usr/ccs/bin/ucblint to the C program verifier. /usr/ccs/bin/ucblint is available only with the SPROcc package, whose default location is /opt/SUNWspro. /usr/ucb/lint is identical to /usr/ccs/bin/ucblint, except that BSD headers are used and BSD libraries are linked before base libraries. The /opt/SUNWspro/man/man1/lint.1 man page is available only with the SPROcc package. OPTIONS
/usr/ucb/lint accepts the same options as /usr/ccs/bin/ucblint, with the following exceptions: -Idir Search dir for included files whose names do not begin with a slash (/) prior to searching the usual directories. The directories for multiple -I options are searched in the order specified. The preprocessor first searches for #include files in the directory containing sourcefile, and then in directories named with -I options (if any), then /usr/ucbinclude, and finally, in /usr/include. -Ldir Add dir to the list of directories searched for libraries by /usr/ccs/bin/ucblint. This option is passed to /usr/ccs/bin/ld. Directories specified with this option are searched before /usr/ucblib and /usr/lib. -Y P, dir Change the default directory used for finding libraries. EXIT STATUS
The following exit values are returned: 0 Successful completion. >0 An error occurred. FILES
/usr/lint/bin/ld link editor /usr/lib/libc C library /usr/ucbinclude BSD Compatibility directory for header files /usr/ucblib BSD Compatibility directory for libraries /usr/ucblib/libucb BSD Compatibility C library /usr/lib/libsocket library containing socket routines /usr/lib/libnsl library containing network functions /usr/lib/libelf library containing routines to process ELF object files /usr/lib/libaio library containing asynchronous I/O routines ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Availability |SUNWscpu | +-----------------------------+-----------------------------+ SEE ALSO
ld(1), a.out(4), attributes(5) SunOS 5.10 1 Feb 1995 lint(1B)
All times are GMT -4. The time now is 05:47 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy