dear all, i'm a newbie . when i was trying to configure OpenLDAP. i got an error saying.
the c compiler is unable to create executables . i was trying to configure it on debian etch and the c compiler installed in my machine is gcc 4.1. i do not even know whether i can post this query here as i did not find any other installation issues mailed to this list.......... please guide me on the issue thanks in advance
naveen mudunuru wrote:
dear all, i'm a newbie . when i was trying to configure OpenLDAP. i got an error saying.
the c compiler is unable to create executables .
Please check whether the configure script can find the gcc executable. Search file config.log for gcc after running configure.
Ciao, Michael.
dear michael, i did check the config.log and this is what it says.......... ## ----------- ## ## Core tests. ## ## ----------- ##
configure:1615: checking build system type configure:1633: result: i686-pc-linux-gnulibc1 configure:1641: checking host system type configure:1655: result: i686-pc-linux-gnulibc1 configure:1663: checking target system type configure:1677: result: i686-pc-linux-gnulibc1 configure:1706: checking for a BSD-compatible install configure:1761: result: /usr/bin/install -c configure:1772: checking whether build environment is sane configure:1815: result: yes configure:1880: checking for gawk configure:1909: result: no configure:1880: checking for mawk configure:1896: found /usr/bin/mawk configure:1906: result: mawk configure:1916: checking whether make sets $(MAKE) configure:1936: result: yes configure:2145: checking configure arguments configure:3722: result: done configure:3890: checking for cc configure:3906: found /usr/bin/cc configure:3916: result: cc configure:3940: checking for ar configure:3956: found /usr/bin/ar configure:3966: result: ar configure:4025: checking for style of include used by make configure:4053: result: GNU configure:4394: checking for C compiler version configure:4397: cc --version </dev/null >&5 cc (GCC) 4.1.2 20061115 (prerelease) (Debian 4.1.1-21) Copyright (C) 2006 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
configure:4400: $? = 0 configure:4402: cc -v </dev/null >&5 Using built-in specs. Target: i486-linux-gnu Configured with: ../src/configure -v --enable-languages=c,c++,fortran,objc,obj-c++,treelang --prefix=/usr --enable-shared --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --enable-nls --program-suffix=-4.1 --enable-__cxa_atexit --enable-clocale=gnu --enable-libstdcxx-debug --enable-mpfr --with-tune=i686 --enable-checking=release i486-linux-gnu Thread model: posix gcc version 4.1.2 20061115 (prerelease) (Debian 4.1.1-21) configure:4405: $? = 0 configure:4407: cc -V </dev/null >&5 cc: '-V' option must have argument configure:4410: $? = 1 configure:4433: checking for C compiler default output file name configure:4436: cc conftest.c >&5 /usr/bin/ld: crt1.o: No such file: No such file or directory collect2: ld returned 1 exit status configure:4439: $? = 1 configure: failed program was: | /* confdefs.h. */ | | #define PACKAGE_NAME "" | #define PACKAGE_TARNAME "" | #define PACKAGE_VERSION "" | #define PACKAGE_STRING "" | #define PACKAGE_BUGREPORT "" | #define OPENLDAP_PACKAGE "OpenLDAP" | #define OPENLDAP_VERSION "2.4.7" | #define LDAP_VENDOR_VERSION 20407 | #define LDAP_VENDOR_VERSION_MAJOR 2 | #define LDAP_VENDOR_VERSION_MINOR 4 | #define LDAP_VENDOR_VERSION_PATCH 7 | #define HAVE_MKVERSION 1 | /* end confdefs.h. */ | | int | main () | { | | ; | return 0; | } configure:4478: error: C compiler cannot create executables See `config.log' for more details.
what should have been wrong...........................
On Thu, Feb 14, 2008 at 5:57 PM, Michael Ströder michael@stroeder.com wrote:
naveen mudunuru wrote:
dear all, i'm a newbie . when i was trying to configure OpenLDAP. i got an error saying.
the c compiler is unable to create executables .
Please check whether the configure script can find the gcc executable. Search file config.log for gcc after running configure.
Ciao, Michael.
It looks like a gcc problem with your Debian install. I'd verify that you can compile anything on your system, and then re-install gcc using apt. I'm betting this is not OpenLDAP related.
Sellers
On Feb 14, 2008, at 11:04 PM, naveen mudunuru wrote:
sr/bin/ld: crt1.o: No such file: No such file or director
______________________________________________ Chris G. Sellers | NITLE - Technology Team 734.661.2318 | chris.sellers@nitle.org AIM: imthewherd | GoogleTalk: cgseller@gmail.com
dear chris,
the problem is set and the issue is with installation of gcc using synaptic...... when i purged and re-installed it using apt. the porblem was set. thanks to the community for support and response
On Fri, Feb 15, 2008 at 7:12 PM, Chris G. Sellers chris.sellers@nitle.org wrote:
It looks like a gcc problem with your Debian install. I'd verify that you can compile anything on your system, and then re-install gcc using apt. I'm betting this is not OpenLDAP related. Sellers
On Feb 14, 2008, at 11:04 PM, naveen mudunuru wrote:
sr/bin/ld: crt1.o: No such file: No such file or director
Chris G. Sellers | NITLE - Technology Team 734.661.2318 | chris.sellers@nitle.org AIM: imthewherd | GoogleTalk: cgseller@gmail.com
"naveen mudunuru" naveenmudunuru@gmail.com writes:
configure:1615: checking build system type configure:1633: result: i686-pc-linux-gnulibc1
This means that configure thinks you have a libc5 system. Something is probably seriously broken to give it that impression, since the chances of you really having a libc5 system that's still a Debian system and is using gcc 4.1.1 is fairly low.
I concur that there's something fundamentally broken with the development environment on that system.
openldap-software@openldap.org