You are not logged in.
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
What does config.log said? The error message is probably there.
Offline
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
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
Something's wrong with your installation. /usr/include/sys/cdefs.h is a part of glibc package (so try to reinstall it).
Offline
Oh wow thank you so much. I was afraid I would have to reinstall the whole system. Thank you!
Offline