PDA

View Full Version : I'm losing my sanity with /lib/cpp" fails sanity check



cruiserparts
1st June 2006, 02:53 AM
A friend of mine put a "server install" of fc5 on my machine. I have spent hours trying to fix this problem. It is happening on snort and open vpn. I have searched the forums and it seems like I have everything installed. I have removed and installed various compilers and installed the group development tools.

Can anybody help me troubleshoot this. I just don't get it. Everytime I read something I say, that will fix it. I cross my fingers and nothing changes.

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

info below. Thanks


[root@blackbox snort-2.4.4]# ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking for style of include used by make... GNU
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking dependency style of gcc... gcc3
checking for ranlib... ranlib
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ANSI C... (cached) none needed
checking dependency style of gcc... (cached) gcc3
checking build system type... i686-pc-linux-gnulibc1
checking host system type... i686-pc-linux-gnulibc1
checking whether byte ordering is bigendian... no
checking for sparc alignment... no
checking how to run the C preprocessor... /lib/cpp
configure: error: C preprocessor "/lib/cpp" fails sanity check
See `config.log' for more details.

Jman
1st June 2006, 04:17 AM
Uh, snort's in Extras.
yum install snort Done.

Look at the config.log file if you're curious, however.

cruiserparts
1st June 2006, 04:34 AM
Uh, snort's in Extras.
yum install snort Done.

Look at the config.log file if you're curious, however.

Not sure what you mean? What did I do wrong.

Yum install snort tells me "nothing to do"

I have used yum and yum extender to install snort and it never seems to work correctly. It goes through the motions and the software never shows up anywhere in the filesystem, which is why I was trying to install from the tar file.

What would I look for in my config.log file?

I'm stumped.

j

Jman
2nd June 2006, 12:42 AM
You can do a whole lot with rpm, (http://fedora.redhat.com/docs/drafts/rpm-guide-en/) including finding out where stuff is.
rpm --query --list snort

config.log should be in the same directory you ran configure from.

cruiserparts
2nd June 2006, 01:50 PM
After completely removing all parts of snort and reinstalling with yum, it now works. Thanks for the help!