LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   SUSE / openSUSE (https://www.linuxquestions.org/questions/suse-opensuse-60/)
-   -   Problem with gcc: configure: error: C compiler cannot create executable (https://www.linuxquestions.org/questions/suse-opensuse-60/problem-with-gcc-configure-error-c-compiler-cannot-create-executable-322427/)

abefroman 05-11-2005 12:02 PM

Problem with gcc: configure: error: C compiler cannot create executable
 
I get this error even though I have gcc
configure: error: C compiler cannot create executable

linux:~/ettercap-NG-0.7.2 # which gcc
/usr/bin/gcc
linux:~/ettercap-NG-0.7.2 # rpm -q gcc
gcc-3.3.4-11
linux:~/ettercap-NG-0.7.2 # ./configure
checking whether to enable maintainer-specific portions of Makefiles... no

Configuring ettercap NG-0.7.2...

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)... no
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking for gcc... gcc
checking for C compiler default output file name... configure: error: C compiler cannot create executables
See `config.log' for more details.
linux:~/ettercap-NG-0.7.2 #

How do I get gcc to create executables?

abisko00 05-11-2005 12:06 PM

Not sure about this, but maybe you need glibc-devel as well.

abefroman 05-11-2005 01:09 PM

Thanks, but I get the same error:
checking for C compiler default output file name... configure: error: C compiler cannot create executables
See `config.log' for more details.
linux:~/ettercap-NG-0.7.2 # rpm -q glibc
glibc-2.3.3-97

abefroman 05-11-2005 02:49 PM

Is it saying its not working because it can't find the file conftest.c ? How do I get that file?
Using built-in specs.
Configured with: ../configure --enable-threads=posix --prefix=/usr --with-local-prefix=/usr/local --infodir=/usr/share/info --mandir=/usr/share/man --enable-languages=c,c++,f77,objc,java,ada --disable-checking --libdir=/usr/lib --enable-libgcj --with-gxx-include-dir=/usr/include/g++ --with-slibdir=/lib --with-system-zlib --enable-shared --enable-__cxa_atexit i586-suse-linux
Thread model: posix
gcc version 3.3.4 (pre 3.3.5 20040809)
configure:2808: $? = 0
configure:2810: gcc -V </dev/null >&5
gcc: `-V' option must have argument
configure:2813: $? = 1
configure:2836: checking for C compiler default output file name
configure:2839: gcc conftest.c >&5
gcc: installation problem, cannot exec `cc1': No such file or directory
configure:2842: $? = 1
configure: failed program was:
| /* confdefs.h. */

osvaldomarques 05-11-2005 06:12 PM

Hi Abefroman,

It is saying you don't have cc1 which must be on /usr/lib/gcc-lib/<your-distrbution>/3.3.4/ directory. The file conftest.c is created by "configure" which is a shell script.

Be sure you have a recent ethercap package. This appears to be some incompatibility between your configure and the gcc compiler. The first mistake the script does is "gcc -V". I suppose the correct option is "-v" (lower case) which informs the compiler version and the directory where the compiler specs are.

You may try to hack the configure script changing the case of the option and look the result.

Good luck,

Osvaldo.


All times are GMT -5. The time now is 11:31 PM.