https://bugs.openldap.org/show_bug.cgi?id=9332
--- Comment #4 from Jordan Brown openldap@jordan.maileater.net --- This is not a compiler problem at all.
The missing entry in LDAP_LDO_TLS_NULLARG causes all subsequent initializers to be misaligned with the structure members, eventually leading to an attempt to initialize a scalar structure member with a brace-enclosed list of initializers.
The exact circumstances will vary depending on compilation options and system-supplied macro values. In this case, I believe that one of the members in ldo_sasl_secprops ends up matched with a brace-enclosed initializer from LDAP_LDO_MUTEX_NULLARG intended for ldo_mutex.