You are not logged in.

#1 2009-04-23 02:19:26

chetan51
Member
Registered: 2009-04-23
Posts: 14

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

I keep getting this error message when I try to makepkg many AUR packages (for example, this one: http://aur.archlinux.org/packages.php?ID=24113):

checking how to run the C preprocessor... /lib/cpp
configure: error: in `/home/chetan/Builds/notify-osd-bzr/src/notify-osd-build':
configure: error: C preprocessor "/lib/cpp" fails sanity check
See `config.log' for more details.
==> ERROR: Build Failed.
    Aborting...

I tried reinstalling my kernel-headers package but that didn't help. Any ideas please?

Offline

#2 2009-04-23 05:38:22

Snowman
Developer/Forum Fellow
From: Montreal, Canada
Registered: 2004-08-20
Posts: 5,212

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

What does config.log said?  The error message is probably there.

Offline

#3 2009-04-23 06:09:13

chetan51
Member
Registered: 2009-04-23
Posts: 14

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

In config.log, this seems to be relevant:

configure:6634: gcc -E  conftest.c
In file included from /usr/include/limits.h:27,
                 from /usr/lib/gcc/i686-pc-linux-gnu/4.3.3/include-fixed/limits.h:122,
                 from /usr/lib/gcc/i686-pc-linux-gnu/4.3.3/include-fixed/syslimits.h:7,
                 from /usr/lib/gcc/i686-pc-linux-gnu/4.3.3/include-fixed/limits.h:11,
                 from conftest.c:11:
/usr/include/features.h:330:25: error: sys/cdefs.h: No such file or directory

Why am I missing this sys/cdefs.h?

Offline

#4 2009-04-23 08:18:25

chetan51
Member
Registered: 2009-04-23
Posts: 14

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

This is a worse problem than I thought. Whenever I use gcc to compile anything, I get this error:

/usr/include/features.h:330:25: error: sys/cdefs.h: No such file or directory

Please help!

Offline

#5 2009-04-23 08:34:32

bender02
Member
From: UK
Registered: 2007-02-04
Posts: 1,328

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

Something's wrong with your installation. /usr/include/sys/cdefs.h is a part of glibc package (so try to reinstall it).

Offline

#6 2009-04-23 09:48:00

chetan51
Member
Registered: 2009-04-23
Posts: 14

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

Oh wow thank you so much. I was afraid I would have to reinstall the whole system. Thank you!

Offline

Board footer

Powered by FluxBB