[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
Re: Problems compiling 2/27/2002 cvs
- To: Anthony Brock <abrock@georgefox.edu>
- Subject: Re: Problems compiling 2/27/2002 cvs
- From: Albert Chin <openldap-devel@thewrittenword.com>
- Date: Fri, 1 Mar 2002 03:37:33 -0600
- Cc: Open LDAP Development <openldap-devel@OpenLDAP.org>
- Content-disposition: inline
- In-reply-to: <5.1.0.14.2.20020227075654.02b99840@mail.georgefox.edu>; from abrock@georgefox.edu on Wed, Feb 27, 2002 at 08:02:34AM -0800
- References: <5.1.0.14.2.20020227075654.02b99840@mail.georgefox.edu>
- User-agent: Mutt/1.2.5i
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)