version.c: libbackends.a $(OBJS) $(SLAPD_LIBDEPEND)
@-$(RM) $@
- $(MKVERSION) -c -s -n Versionstr slapd > $@
+ $(MKVERSION) -s -n Versionstr slapd > $@
depend-local-srv: FORCE
@for i in back-* shell-backends tools; do \
e->e_ndn = dn_normalize_case( ch_strdup(SLAPD_MONITOR_DN) );
e->e_private = NULL;
- val.bv_val = Versionstr;
+ val.bv_val = (char *) Versionstr;
if (( p = strchr( Versionstr, '\n' )) == NULL ) {
val.bv_len = strlen( Versionstr );
} else {
extern char *default_referral;
extern char *replogfile;
-extern char Versionstr[];
+extern const char Versionstr[];
extern int active_threads;
extern int defsize;
extern int deftime;