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

Re: Trouble compiling CVS with GCC 3.0.4

I see the following in config.log:

configure:8211: gcc -Xc -D__EXTENSIONS__ -c -g -I/usr/local/include -I/usr/local/ssl/include -I/usr/include conftest.c 1>&5
gcc: unrecognized option `-Xc'
configure: In function `f':
configure:8192: `__builtin_va_alist' undeclared (first use in this function)
configure:8192: (Each undeclared identifier is reported only once
configure:8192: for each function it appears in.)
configure: failed program was:
#line 8174 "configure"
#include "confdefs.h"
#include <stdarg.h>
#include <stdio.h>
#include <sys/types.h>
#include <sys/stat.h>
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
struct buf { int x; };
FILE * (*rcsopen) (struct buf *, struct stat *, int);
static char *e (p, i)
char **p;
int i;
return p[i];
static char *f (char * (*g) (char **, int), char **p, ...)
char *s;
va_list v;
va_start (v,p);
s = g (p, va_arg (v,int));
va_end (v);
return s;
int test (int i, double x);
struct s1 {int (*f) (int a);};
struct s2 {int (*f) (double a);};
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
int argc;
char **argv;

int main() {

return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];

; return 0; }


At 02:01 PM 04/22/2002 -0700, you wrote:
At 01:28 PM 2002-04-22, Anthony Brock wrote:
>>When configuring the latest CVS (7am on April 22, 2002) with gcc 3.0.4,
>I am now seeing:
>>checking for gcc option to accept ANSI C... no
>>configure: error: OpenLDAP required compiler to support STDC constructs.

config.log should tell you exactly why the test failed.

****************************************************************************** * Anthony Brock abrock@georgefox.edu * * Director of Network Services George Fox University * ******************************************************************************