FC-5 question about gcc, g++



I'm trying to compile nmap on a FC-5 system, latest kernel, gcc version:

Using built-in specs.
Target: i386-redhat-linux
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=posix --enable-checking=release --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-libgcj-multifile --enable-languages=c,c++,objc,obj-c++,java,fortran,ada --enable-java-awt=gtk --disable-dssi --with-java-home=/usr/lib/jvm/java-1.4.2-gcj-1.4.2.0/jre --with-cpu=generic --host=i386-redhat-linux
Thread model: posix
gcc version 4.1.1 20060525 (Red Hat 4.1.1-1)

The nmap configure script fails, saying that I don't have a c++ compiler. If I use ./configure CXX=/usr/bin/gcc it'll get part of the way through then choke at:

checking whether we are using the GNU C++ compiler... no
checking whether /usr/bin/gcc accepts -g... no
checking dependency style of /usr/bin/gcc... none
checking how to run the C++ preprocessor... /lib/cpp
configure: error: C++ preprocessor "/lib/cpp" fails sanity check

What am I missing? Thanks much.

--
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list



Relevant Pages

  • Re: Error checking with execlp()
    ... |>> I'm not saying that it is incorrect to include it. ... is to quash a compiler warning, usually about a possibly uninitialized variable ... enough to know that no path could be followed that would not assigne it. ... was a way to assert to the compiler that a variable really has been assigned ...
    (comp.unix.programmer)
  • Re: [Lit.] Buffer overruns
    ... > don't even have to bother swapping out the compiler. ... It does not take an adversary to create a security hole, ... And those errors abound. ... That is a far cry from saying that it is secure and can be ...
    (sci.crypt)
  • Re: C# Nullable types
    ... string x = null; ... compiler that by using the language specific word called "null". ... so we are given a keyword to state our intentions as the ... I am saying that I don't want x to have any value and I am "ok" with that. ...
    (microsoft.public.dotnet.framework)
  • Re: Flexible arrays - v confused
    ... and that includes using a C++ compiler (which has stricter type ... Or are you saying that anything superfluous, ... posts, you've known my counter argument before this post. ...
    (comp.lang.c)
  • Re: .NET 3.0
    ... I know that CodeGear wants to emphasize that the Delphi 2007 .NET compiler is a CLI 2.0 compiler but IMO there is little or nothing to gained marketing-wise by engaging in long-winded arguments such as the one in this thread saying that somehow 3.0 and 3.5 are not new versions. ... Perhaps CodeGear should publish a white paper with examples of how to use the Delphi for .NET 2007 compiler and IDE to generate useful applications utilizing the features of .NET 3.0 and 3.5. ...
    (borland.public.delphi.non-technical)