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

servers/slapd/passwd.c doesn't compile (ITS#2900)



Full_Name: Darin Broady
Version: 2.2.4
OS: Irix 6.5.19m with MIPSpro 7.4m compiler
URL: 
Submission from: (NULL) (192.146.101.11)


Compilation error:
--------------------
cc-1028 cc: ERROR File = passwd.c, Line = 40
  The expression used must have a constant value.

        slap_callback cb2 = { &cb, slap_replog_cb, NULL, NULL };
                               ^

1 error detected in the compilation of "passwd.c".


Configuration line:
---------------------
./configure --prefix=/localtools/OpenLDAP-2.2.4 --enable-crypt --enable-modules
--enable-slapi --enable-bdb --enable-monitor --with-dyngroup=mod


Potential Fix:
---------------
-	slap_callback cb2 = { &cb, slap_replog_cb, NULL, NULL };
+	slap_callback cb2 = { NULL, slap_replog_cb, NULL, NULL };
+	cb2.sc_next = &cb;