[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
compilation problem in liblber/decode.c
Hi,
I am running on solaris 2.7 using native cc and
latest openldap from the repository. I am getting
compilation errors on the instantiation of a structure.
"/nfs/globus2/MEI/nPROJ_CC/OpenLDAP/OpenLDAP-dev/ldap/libraries/
liblber/decode.c", line 732: non-constant initializer: op "NAME"
"/nfs/globus2/MEI/nPROJ_CC/OpenLDAP/OpenLDAP-dev/ldap/libraries/
liblber/decode.c", line 741: non-constant initializer: op "NAME"
"/nfs/globus2/MEI/nPROJ_CC/OpenLDAP/OpenLDAP-dev/ldap/libraries/
liblber/decode.c", line 750: non-constant initializer: op "NAME"
"/nfs/globus2/MEI/nPROJ_CC/OpenLDAP/OpenLDAP-dev/ldap/libraries/
liblber/decode.c", line 763: non-constant initializer: op "NAME"
"/nfs/globus2/MEI/nPROJ_CC/OpenLDAP/OpenLDAP-dev/ldap/libraries/
liblber/decode.c", line 904: cannot recover from previous errors
and the problem line is
case 'V': /* sequence of strings + lengths */
{
--------->>>>> bgbvr cookie = { ber, BvVec };
cookie.res.bv = va_arg( ap, struct berval *** );
cookie.alloc = 1;
rc = ber_get_stringbvr( &cookie, 0 );
break;
}
I had no problem with gcc on linux but solaris compiler does
not like it.
mei