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
KERNEL-INSTALL(8)						  kernel-install						 KERNEL-INSTALL(8)

NAME
kernel-install - Add and remove kernel and initramfs images to and from /boot SYNOPSIS
kernel-install COMMAND KERNEL-VERSION [KERNEL-IMAGE] DESCRIPTION
kernel-install is used to install and remove kernel and initramfs images to and from /boot. kernel-install will execute the files located in the directory /usr/lib/kernel/install.d/ and the local administration directory /etc/kernel/install.d/. All files are collectively sorted and executed in lexical order, regardless of the directory in which they live. However, files with identical filenames replace each other. Files in /etc/kernel/install.d/ take precedence over files with the same name in /usr/lib/kernel/install.d/. This can be used to override a system-supplied executables with a local file if needed; a symbolic link in /etc/kernel/install.d/ with the same name as an executable in /usr/lib/kernel/install.d/, pointing to /dev/null, disables the executable entirely. Executables must have the extension ".install"; other extensions are ignored. An executable should return 0 on success. It may also return 77 to cause the whole operation to terminate (executables later in lexical order will be skipped). COMMANDS
The following commands are understood: add KERNEL-VERSION KERNEL-IMAGE kernel-install creates the directory /boot/MACHINE-ID/KERNEL-VERSION/ and calls executables from /usr/lib/kernel/install.d/*.install and /etc/kernel/install.d/*.install with the arguments add KERNEL-VERSION /boot/MACHINE-ID/KERNEL-VERSION/ KERNEL-IMAGE The kernel-install plugin 50-depmod.install runs depmod for the KERNEL-VERSION. The kernel-install plugin 90-loaderentry.install copies KERNEL-IMAGE to /boot/MACHINE-ID/KERNEL-VERSION/linux. It also creates a boot loader entry according to the boot loader specification in /boot/loader/entries/MACHINE-ID-KERNEL-VERSION.conf. The title of the entry is the PRETTY_NAME parameter specified in /etc/os-release or /usr/lib/os-release (if the former is missing), or "Linux KERNEL-VERSION", if unset. If the file initrd is found next to the linux file, the initrd will be added to the configuration. remove KERNEL-VERSION Calls executables from /usr/lib/kernel/install.d/*.install and /etc/kernel/install.d/*.install with the arguments remove KERNEL-VERSION /boot/MACHINE-ID/KERNEL-VERSION/ kernel-install removes the entire directory /boot/MACHINE-ID/KERNEL-VERSION/ afterwards. The kernel-install plugin 90-loaderentry.install removes the file /boot/loader/entries/MACHINE-ID-KERNEL-VERSION.conf. EXIT STATUS
If every executable returns 0 or 77, 0 is returned, and a non-zero failure code otherwise. FILES
/usr/lib/kernel/install.d/*.install /etc/kernel/install.d/*.install Drop-in files which are executed by kernel-install. /etc/kernel/cmdline /proc/cmdline The content of the file /etc/kernel/cmdline specifies the kernel command line to use. If that file does not exist, /proc/cmdline is used. /etc/machine-id The content of the file specifies the machine identification MACHINE-ID. /etc/os-release /usr/lib/os-release The content of the file specifies the operating system title PRETTY_NAME. SEE ALSO
machine-id(5), os-release(5), Boot loader specification[1] NOTES
1. Boot loader specification https://www.freedesktop.org/wiki/Specifications/BootLoaderSpec systemd 237 KERNEL-INSTALL(8)
All times are GMT -4. The time now is 02:13 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy