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

RE: Fix for compiling on a gcc-3.2.2/glibc-2.3.2 based system



The bug is actually that slapd assumes LDAP_SYSLOG can be defined without
LDAP_DEBUG. In fact the logging macros in include/ldap_log.h require
LDAP_DEBUG to be defined before LDAP_SYSLOG can have any effect.

  -- Howard Chu
  Chief Architect, Symas Corp.       Director, Highland Sun
  http://www.symas.com               http://highlandsun.com/hyc
  Symas: Premier OpenSource Development and Support

> -----Original Message-----
> From: owner-openldap-bugs@OpenLDAP.org
> [mailto:owner-openldap-bugs@OpenLDAP.org]On Behalf Of Tushar Teredesai
> Sent: Tuesday, March 04, 2003 2:25 PM
> To: openldap-bugs@OpenLDAP.org
> Subject: Fix for compiling on a gcc-3.2.2/glibc-2.3.2 based system
>
>
> I had to apply the following patch to get openldap to compile
> on my LFS
> system (glibc-2.3.2, gcc-3.2.2).
>
> diff -ur openldap-2.1.13.orig/servers/slapd/modify.c
> openldap-2.1.13/servers/slapd/modify.c
> --- openldap-2.1.13.orig/servers/slapd/modify.c 2003-02-10
> 13:22:47.000000000 -0600
> +++ openldap-2.1.13/servers/slapd/modify.c  2003-02-27
> 00:18:09.000000000 -0600
> @@ -279,6 +279,7 @@
>         Statslog( LDAP_DEBUG_STATS, "conn=%lu op=%lu MOD dn=\"%s\"\n",
>             op->o_connid, op->o_opid, dn.bv_val, 0, 0 );
>
> +       Modifications   *tmp;
>         for ( tmp = modlist; tmp != NULL; tmp = tmp->sml_next ) {
>             if (len + 1 + tmp->sml_type.bv_len > sizeof(abuf)) {
>                 Statslog( LDAP_DEBUG_STATS, "conn=%lu op=%lu
> MOD attr=%s\n",
> diff -ur openldap-2.1.13.orig/servers/slapd/slap.h
> openldap-2.1.13/servers/slapd/slap.h
> --- openldap-2.1.13.orig/servers/slapd/slap.h   2003-02-17
> 10:49:54.000000000 -0600
> +++ openldap-2.1.13/servers/slapd/slap.h    2003-02-26
> 23:56:05.000000000 -0600
> @@ -152,6 +152,8 @@
>
>  typedef unsigned long slap_mask_t;
>
> +extern int ldap_syslog_level;
> +
>  /* Security Strength Factor */
>  typedef unsigned slap_ssf_t;
>
> --
> Tushar Teredesai
>    http://www.linuxfromscratch.org/~tushar/
>    http://www.geocities.com/tushar/
>