[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: Error during ./configure



It sounds like you have a invalid compiler or your system has some permissions problems or read only disk mounts.  

check with your system admin and see if they can update your gcc compiler.

Sellers

On Aug 22, 2008, at 9:11 AM, Philip Gabrielsen wrote:

Hi

I get an error i can't get away from, when running ./configure

Error i get:
philip@zimba:/usr/local/openldap-2.4.11$ ./configure 
Configuring OpenLDAP 2.4.11-Release ...
checking build system type... i686-pc-linux-gnulibc1
checking host system type... i686-pc-linux-gnulibc1
checking target system type... i686-pc-linux-gnulibc1
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking configure arguments... done
checking for ar... ar
checking for style of include used by make... GNU
checking for gcc... /usr/lib/gcc/i486-linux-gnu/4.0.3/cc1
checking for C compiler default output file name... conftest.s
checking whether the C compiler works... configure: error: cannot run C compiled programs.
If you meant to cross compile, use `--host'.
See `config.log' for more details.

Config.log (interesting place) gives me:
configure:4052: checking for style of include used by make
configure:4080: result: GNU
configure:4151: checking for gcc
configure:4177: result: /usr/lib/gcc/i486-linux-gnu/4.0.3/cc1
configure:4421: checking for C compiler version
configure:4424: /usr/lib/gcc/i486-linux-gnu/4.0.3/cc1 --version </dev/null >&5
GNU C version 4.0.3 (Ubuntu 4.0.3-1ubuntu5) (i486-linux-gnu)
        compiled by GNU C version 4.0.3 (Ubuntu 4.0.3-1ubuntu5).
GGC heuristics: --param ggc-min-expand=64 --param ggc-min-heapsize=64440
configure:4427: $? = 0
configure:4429: /usr/lib/gcc/i486-linux-gnu/4.0.3/cc1 -v </dev/null >&5
ignoring nonexistent directory "/usr/local/include/i486-linux-gnu"
ignoring nonexistent directory "/usr/include/i486-linux-gnu"
#include "..." search starts here:
#include <...> search starts here:
 /usr/local/include
 /usr/lib/gcc/i486-linux-gnu/4.0.3/include
 /usr/include 
End of search list.

Execution times (seconds)  
 TOTAL                 :   0.01             0.00             0.01
configure:4432: $? = 0
configure:4434: /usr/lib/gcc/i486-linux-gnu/4.0.3/cc1 -V </dev/null >&5
cc1: error: unrecognized command line option "-V"

Execution times (seconds)  
 TOTAL                 :   0.00             0.00             0.00
configure:4437: $? = 1
configure:4460: checking for C compiler default output file name
configure:4463: /usr/lib/gcc/i486-linux-gnu/4.0.3/cc1    conftest.c  >&5
 main

Execution times (seconds)  
 TOTAL                 :   0.00             0.02             0.01
configure:4466: $? = 0
configure:4512: result: conftest.s
configure:4517: checking whether the C compiler works
configure:4523: ./conftest.s
./configure: line 4524: ./conftest.s: Permission denied
configure:4526: $? = 126
configure:4535: error: cannot run C compiled programs.
If you meant to cross compile, use `--host'.
See `config.log' for more details.

I run this as root....


Best Regards
Philip Gabrielsen
Mob: 99384335

++++++++++++++++++++++++++++++++++++++
Chris G. Sellers |  Internet Engineer      |   NITLE
734.661.2318 |  chris.sellers@nitle.org
Jabber: csellers@nitle.org  | AIM: imthewherd