SUSE / openSUSE This Forum is for the discussion of Suse Linux. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
05-11-2005, 12:02 PM
|
#1
|
Senior Member
Registered: Feb 2004
Location: lost+found
Distribution: CentOS
Posts: 1,430
Rep:
|
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?
|
|
|
05-11-2005, 12:06 PM
|
#2
|
Senior Member
Registered: Mar 2004
Location: Munich
Distribution: Ubuntu
Posts: 3,517
Rep:
|
Not sure about this, but maybe you need glibc-devel as well.
|
|
|
05-11-2005, 01:09 PM
|
#3
|
Senior Member
Registered: Feb 2004
Location: lost+found
Distribution: CentOS
Posts: 1,430
Original Poster
Rep:
|
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
|
|
|
05-11-2005, 02:49 PM
|
#4
|
Senior Member
Registered: Feb 2004
Location: lost+found
Distribution: CentOS
Posts: 1,430
Original Poster
Rep:
|
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. */
|
|
|
05-11-2005, 06:12 PM
|
#5
|
Member
Registered: Jul 2004
Location: Rio de Janeiro - Brazil
Distribution: Conectiva 10 - Conectiva 8 - Slackware 9 - starting with LFS
Posts: 519
Rep:
|
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 03:43 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|