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

contrib/ldaptcl/ldaperr.tcl cannot parse ldap.h (ITS#1408)

Full_Name: Mike Gerdts
Version: 2.0.15
OS: Solaris 7
URL: ftp://ftp.openldap.org/incoming/
Submission from: (NULL) (

ldaptcl will not build on 2.0.15 because it looks as though ldap.h changed at
some point.  Since ldaperr.tcl parses ldap.h itself, correct C syntax can mess
it up.  The following patch works around the problem:

*** ldaperr.tcl.orig    Fri Oct 26 08:39:05 2001
--- ldaperr.tcl Fri Oct 26 08:39:25 2001
*** 17,22 ****
--- 17,23 ----
        if {![string match "#define LDAP_*" $line]} continue
        if {[string match "*LDAP_RANGE*" $line]} continue
        lassign $line define macro value
+       if {![string match "0x*" $value]} continue
        set ldap_errcode($macro) $value
      foreach i [array names ldap_errcode] {