Hi,
I am using Debian Woody on an AMD Duron PC. Things are running
smoothly, except that I can't compile anything.
When running any configure-script, I receive errors like the following:
=================================================
Latest PHP5 snapshot:
checking for gcc... gcc
checking whether the C compiler (gcc ) works... no
configure: error: installation or configuration problem: C compiler
cannot create executables.
config.log:
configure: In function `main':
configure:1592: `__MINGW32__' undeclared (first use in this function)
...
configure:1940: checking whether the C compiler (gcc ) works
configure:1956: gcc -o conftest conftest.c 1>&5
/usr/bin/ld: cannot open crt1.o: No such file or directory
collect2: ld returned 1 exit status
configure: failed program was:
#line 1951 "configure"
#include "confdefs.h"
---
Apache 2.0.43
checking for gcc... gcc
checking for C compiler default output... configure: error: C compiler
cannot create executables
config.log:
no relevant info
---
Proftpd 1.2.8rc1
checking for gcc... gcc
checking for C compiler default output... configure: error: C compiler
cannot create executables
config.log:
configure:1784: checking for C compiler default output
configure:1787: gcc conftest.c >&5
/usr/bin/ld: cannot open crt1.o: No such file or directory
collect2: ld returned 1 exit status
configure:1790: $? = 1
configure: failed program was:
#line 1767 "configure"
#include "confdefs.h"
=================================================
According to packages.debian.org, the file that is missing according to
the config.logs (crt1.o) is contained in the libc6-dev package. The file is
missing on my system, so I attempt to install it:
Isildur:/# apt-get install libc6-dev
...
Sorry, but the following packages have unmet dependencies:
libc6-dev: Depends: libc6 (= 2.2.5-11.2) but 2.3.1-9 is to be installed
E: Sorry, broken packages
The above message confuses me, though. Does that mean that I have 2.2.5
installed
and need 2.3.1, or is it the other way around? And why can't I find the
file crt1.o?
Anyway, this is as far as I have come. Seems like I need to install something,
need to pass an option to the compiler or need to up/downgrade my libc6.
Does anyone have a clue?
/achton
=================================================
Relevant info (maybe):
Isildur:/# gcc -v
Reading specs from /usr/lib/gcc-lib/i386-linux/2.95.4/specs
gcc version 2.95.4 20011002 (Debian prerelease)
Isildur:/# gcc -print-search-dirs
install: /usr/lib/gcc-lib/i386-linux/2.95.4/
programs:
/usr/lib/gcc-lib/i386-linux/2.95.4/:/usr/lib/gcc-lib/i386-linux/:/usr/lib/gcc/i386-linux/2.95.4/:/usr/lib/gcc/i386-linux/:/usr/i386-linux/bin/i386-linux/2.95.4/:/usr/i386-linux/bin/
libraries:
/usr/lib/gcc-lib/i386-linux/2.95.4/:/usr/lib/gcc/i386-linux/2.95.4/:/usr/i386-linux/lib/i386-linux/2.95.4/:/usr/i386-linux/lib/:/usr/lib/i386-linux/2.95.4/:/usr/lib/:/lib/i386-linux/2.95.4/:/lib/:/usr/lib/i386-linux/2.95.4/:/usr/lib/
Isildur:/# gcc -print-libgcc-file-name
/usr/lib/gcc-lib/i386-linux/2.95.4/libgcc.a
=================================================
END of mail
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
- Re: Compiler error: C compiler cannot create executa... Achton N. Netherclift
- Re: Compiler error: C compiler cannot create ex... Eric G. Miller
- Re: Compiler error: C compiler cannot creat... Richard Cobbe
- Re: Compiler error: C compiler cannot c... Achton N. Netherclift
- Re: Compiler error: C compiler cann... Stephen Gran
- Re: Compiler error: C compiler... Achton N. Netherclift
- Re: Compiler error: C comp... Rob Weir