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

Re: solaris-2.8, openldap-2.0.x(with config.log)



At 09:34 PM 2001-09-17, Gayathri.A wrote:
>        thanks for your reply. I have pasted the tail portion of my config.log. There is a -Xc option to gcc in which -X is found to be unrecognized. Any suggestions????????????/

The problem is before this, your gcc failed this test.
You might try removing -I/usr/include from CPPFLAGS.


>configure:3732: checking for gcc option to accept ANSI C
>configure:3786: gcc  -c -g -O2 -I/usr/include -I/usr/local/include -I/usr/local/
>BerkeleyDB.3.1/include -R/usr/local/BerkeleyDB.3.1/include/ conftest.c 1>&5
>configure: In function `f':
>configure:3767: `__builtin_va_alist' undeclared (first use in this function)
>configure:3767: (Each undeclared identifier is reported only once
>configure:3767: for each function it appears in.)
>configure: failed program was:
>#line 3749 "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, i
>nt);
>int argc;
>char **argv;
> 
>int main() {
> 
>return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
> 
>; return 0; }