This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Compiling error
- From: ""De Azcárraga, Joaquín""<jdu46659 at GlaxoWellcome dot co dot uk>
- To: gcc at gcc dot gnu dot org
- Date: Thu, 11 Dec 2003 17:41:42 -0000
- Subject: Compiling error
Hi.
I'm trying to compile openldap on a sparc/Solaris 8 System with gnu's gcc.
First of it I try to configure it:
CC="gcc" LIBS="/usr/local/lib/" ./configure
--prefix=/export/apache-inst/librerias_ldap
But everytime I do it, I get the following error message:
configure: error: installation or configuration problem: C compiler cannot
create executables.
If I look at the config.log file, I get:
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
configure:878: checking host system type
configure:919: checking target system type
configure:959: checking build system type
configure:1036: checking for a BSD compatible install
configure:1093: checking whether build environment is sane
configure:1154: checking for mawk
configure:1154: checking for gawk
configure:1154: checking for nawk
configure:1184: checking whether make sets ${MAKE}
configure:1224: checking for working aclocal
configure:1237: checking for working autoconf
configure:1250: checking for working automake
configure:1263: checking for working autoheader
configure:1276: checking for working makeinfo
configure:1296: checking for gnutar
configure:1296: checking for gtar
configure:1296: checking for tar
configure:1366: checking configure arguments
configure:2852: checking for a BSD compatible install
configure:3027: checking for ar
configure:3077: checking for Cygwin environment
configure:3093: gcc -c conftest.c 1>&5
configure: In function `main':
configure:3089: error: `__CYGWIN32__' undeclared (first use in this
function)
configure:3089: error: (Each undeclared identifier is reported only once
configure:3089: error: for each function it appears in.)
configure: failed program was:
#line 3082 "configure"
#include "confdefs.h"
int main() {
#ifndef __CYGWIN__
#define __CYGWIN__ __CYGWIN32__
#endif
return __CYGWIN__;
; return 0; }
configure:3109: checking for mingw32 environment
configure:3121: gcc -c conftest.c 1>&5
configure: In function `main':
configure:3117: error: `__MINGW32__' undeclared (first use in this function)
configure:3117: error: (Each undeclared identifier is reported only once
configure:3117: error: for each function it appears in.)
configure: failed program was:
#line 3114 "configure"
#include "confdefs.h"
int main() {
return __MINGW32__;
; return 0; }
configure:3137: checking for EMX OS/2 environment
configure:3149: gcc -c conftest.c 1>&5
configure: In function `main':
configure:3145: error: `__EMX__' undeclared (first use in this function)
configure:3145: error: (Each undeclared identifier is reported only once
configure:3145: error: for each function it appears in.)
configure: failed program was:
#line 3142 "configure"
#include "confdefs.h"
int main() {
return __EMX__;
; return 0; }
configure:3165: checking how to run the C preprocessor
configure:3186: gcc -E conftest.c >/dev/null 2>conftest.out
configure:3270: checking for gcc
configure:3383: checking whether the C compiler (gcc ) works
configure:3399: gcc -o conftest conftest.c /usr/local/lib/ 1>&5
ld: fatal: file /usr/local/lib/: unknown file type
ld: fatal: File processing errors. No output written to conftest
collect2: ld returned 1 exit status
configure: failed program was:
#line 3394 "configure"
#include "confdefs.h"
main(){return(0);}
Can you help me, please?