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
On Fri, 22 Aug 2008, Philip Gabrielsen wrote:
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
Whoa, really? This is a Linux system that hasn't been updated since the 1990's? Or do you have some cross-compilation tools installed in your path?
If it really is that old, then your first step needs to be "upgrade to a newer Linux distribution". Such an old system does not have correct thread support.
...
checking for gcc... /usr/lib/gcc/i486-linux-gnu/4.0.3/cc1
This is bogus: cc1 is not a C compiler, but rather just _part_ of a C compiler. It's normally invokved by the compilation driver program, 'gcc' or 'cc'. The errors after that stem from that incorrect choice, as cc1 doesn't take the same arguments as cc or gcc and only generates assembler output and not object files.
If I'm reading the configure script correctly, then the ac_ct_CC environment variable is somehow being set to that value, which would be wrong. What's the output of env | grep ^ac and echo $PATH ?
...
I run this as root....
<falls over>
Gah! Don't! You should only run stuff as root when you have a specific reason to do so! Didn't you see all those "don't do stuff as root" statements in any of the docs you read when you set this system up? If not, then you need to go read some UNIX/Linux administration books, ASAP.
Philip Guenther
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
openldap-software@openldap.org