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

Re: Problems compiling 2/27/2002 cvs



On Wed, Feb 27, 2002 at 08:02:34AM -0800, Anthony Brock wrote:
> I have updated via cvs this morning, and attempted to compile. However, the 
> compile dies with the following error:
> 
> cc -xO3 -xtarget=native -Xa -xdepend -I../../include 
> -I../../include   -I/usr/local/include -I/usr/local/BerkeleyDB/include 
> -I/usr/local/krb5/include -I/usr/local/ssl/include     -c -o oc.o oc.c
> cc -xO3 -xtarget=native -Xa -xdepend -I../../include 
> -I../../include   -I/usr/local/include -I/usr/local/BerkeleyDB/include 
> -I/usr/local/krb5/include -I/usr/local/ssl/include     -c -o saslauthz.o 
> saslauthz.c
> "saslauthz.c", line 491: non-constant initializer: op "U&"
> cc: acomp failed for saslauthz.c

Try replacing line 491ff with:
  	slap_callback cb = {sasl_sc_r, sasl_sc_s, sasl_sc_smatch, NULL};
  	Operation op = {0};

  	cb[3] = &sm;

  #ifdef NEW_LOGGING
  ...

GCC will happily compile the offending code but it is not C89
conformant.

-- 
albert chin (china@thewrittenword.com)