]> git.sur5r.net Git - openldap/commitdiff
Update build environment:
authorKurt Zeilenga <kurt@openldap.org>
Thu, 7 Jan 1999 18:36:30 +0000 (18:36 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Thu, 7 Jan 1999 18:36:30 +0000 (18:36 +0000)
  import db2 patch
  fix --disable-slurpd
  fix make clean
  create $localstatedir
  update version file in preparation for release

CHANGES
build/db.2.64.patch [new file with mode: 0644]
build/db.2.64.patch.README [new file with mode: 0644]
build/lib.mk
build/openldap.m4
build/version
servers/slapd/Makefile.in
servers/slurpd/Makefile.in

diff --git a/CHANGES b/CHANGES
index b4138f01ca8753809e69102de12a1baf3968351d..03bbf33546670f92d2b7c7175244a8efb4794cb9 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -6,7 +6,10 @@ Changes included in OpenLDAP 1.1.x
        Fixed slapd/strtok needs mutex bug
        Fixed salpd/tcpd DoS bug
        Build environment
+               Added DB2 patch information
                Fixed doc/man reinstall bug
+               Fixed make clean
+               Fixed --disable-slurpd
 
 Changes included in OpenLDAP 1.1.2
        CVS Tag: OPENLDAP_REL_ENG_1_1_2
diff --git a/build/db.2.64.patch b/build/db.2.64.patch
new file mode 100644 (file)
index 0000000..d777593
--- /dev/null
@@ -0,0 +1,36 @@
+*** db/db.c.sleepy     Sun Jan  3 20:02:51 1999
+--- db/db.c    Sun Jan  3 20:28:25 1999
+*************** db_open(fname, type, flags, mode, dbenv,
+*** 106,112 ****
+       DB_PGINFO pginfo;
+       HASHHDR *hashm;
+       size_t cachesize;
+!      ssize_t nr;
+       u_int32_t iopsize;
+       int fd, ftype, need_fileid, restore, ret, retry_cnt, swapped;
+       char *real_name, mbuf[512];
+--- 106,112 ----
+       DB_PGINFO pginfo;
+       HASHHDR *hashm;
+       size_t cachesize;
+!      ssize_t nr = (ssize_t) 0;
+       u_int32_t iopsize;
+       int fd, ftype, need_fileid, restore, ret, retry_cnt, swapped;
+       char *real_name, mbuf[512];
+*************** open_retry:    if (LF_ISSET(DB_CREATE)) {
+*** 337,343 ****
+               if (nr != sizeof(mbuf)) {
+                       if (nr != 0) {
+                               __db_err(dbenv,
+!                                  "%s: unexpected file format", fname);
+                               goto einval;
+                       }
+                       /*
+--- 337,343 ----
+               if (nr != sizeof(mbuf)) {
+                       if (nr != 0) {
+                               __db_err(dbenv,
+!                                  "%s: unexpected file format, %d bytes read", fname, nr);
+                               goto einval;
+                       }
+                       /*
diff --git a/build/db.2.64.patch.README b/build/db.2.64.patch.README
new file mode 100644 (file)
index 0000000..5417244
--- /dev/null
@@ -0,0 +1,18 @@
+
+A bug in Sleepycat´s Berkeley DB (version 2.3.16 up to 2.6.4 beta),
+was detected, that caused failure during opening of database files
+when running a threaded slapd on a linux box, kernel version 2.0.35,
+gcc 2.7.2.1, linux threads via libpthreads.so.1.60.4.
+
+THE BUG OCCURS ONLY WHEN SLAPD IS RUN WITH THREADS ENABLED AND MAY
+ONLY OCCUR ON THE PLATFORM SPECIFIED.
+
+SINCE THE CODE OF DB_OPEN() IS THE SAME IN VERSION 2.3.16 AND 2.6.4
+WITH REPECT TO THE BUG DETECTED, DB 2.3.16 SHOULD BE PATCHED AS WELL.
+
+Apply the supported patch at the root directory of Sleepycat´s code.
+Since the bug was reported to Sleepycat, it may not appear in DB
+versions, later than 2.6.4 beta.
+
+Jan 7 1999, /KSp (ksp@openldap.org)
+
index 842967089c9bbfe7cedb9d4b76ee5e8aeaa91d7c..28c3df63d4c418f60fbc0fb6b532e49ee185c82c 100644 (file)
@@ -26,11 +26,11 @@ lint5: lint5-local FORCE
 
 clean-common:  FORCE
        $(RM) $(LIBRARY) ../$(LIBRARY) $(XLIBRARY) \
-               $(PROGRAMS) $(XPROGRAMS) $(XSRCS) \
+               $(PROGRAMS) $(XPROGRAMS) $(XSRCS) $(XXSRCS) \
                *.o *.lo a.out core version.c .libs/*
 
 depend-common: FORCE
-       $(MKDEP) $(DEFS) $(DEFINES) $(SRCS)
+       $(MKDEP) $(DEFS) $(DEFINES) $(SRCS) $(XXSRCS)
 
 lint-local: FORCE
 lint5-local: FORCE
index 7ef07906e864af5515ace2b528bec7e3a0526fc1..30b2873bd413f8d30ccf2bbe902f50b6b728892f 100644 (file)
@@ -396,3 +396,51 @@ if test $ol_cv_dcl_sys_errlist = no ; then
        AC_MSG_RESULT($ol_cv_have_sys_errlist)
 fi
 ])dnl
+
+dnl ====================================================================
+dnl Early MIPS compilers (used in Ultrix 4.2) don't like
+dnl "int x; int *volatile a = &x; *a = 0;"
+dnl    -- borrowed from PDKSH
+AC_DEFUN(OL_C_VOLATILE,
+ [AC_CACHE_CHECK(if compiler understands volatile, ol_cv_c_volatile,
+    [AC_TRY_COMPILE([int x, y, z;],
+      [volatile int a; int * volatile b = x ? &y : &z;
+      /* Older MIPS compilers (eg., in Ultrix 4.2) don't like *b = 0 */
+      *b = 0;], ol_cv_c_volatile=yes, ol_cv_c_volatile=no)])
+  if test $ol_cv_c_volatile = yes; then
+    : 
+  else
+    AC_DEFINE(volatile, )
+  fi
+ ])dnl
+
+dnl ====================================================================
+dnl Define sig_atomic_t if not defined in signal.h
+AC_DEFUN(OL_TYPE_SIG_ATOMIC_T,
+ [AC_CACHE_CHECK(for sig_atomic_t, ol_cv_type_sig_atomic_t,
+    [AC_TRY_COMPILE([#include <signal.h>], [sig_atomic_t atomic;],
+               ol_cv_type_sig_atomic_t=yes, ol_cv_type_sig_atomic_t=no)])
+  if test $ol_cv_type_sig_atomic_t = no; then
+    AC_DEFINE(sig_atomic_t, int)
+  fi
+ ])dnl
+
+dnl ====================================================================
+dnl check no of arguments for ctime_r
+AC_DEFUN(OL_FUNC_CTIME_R_NARGS,
+ [AC_CACHE_CHECK(number of arguments of ctime_r, ol_cv_func_ctime_r_nargs,
+   [AC_TRY_COMPILE([#include <time.h>],
+               [time_t ti; char *buffer; ctime_r(&ti,buffer,32);],
+                       ol_cv_func_ctime_r_nargs=3, ol_cv_func_ctime_r_nargs=0)
+               if test $ol_cv_func_ctime_r_nargs = 0 ; then
+                       AC_TRY_COMPILE([#include <time.h>],
+                               [time_t ti; char *buffer;
+                                       ctime_r(&ti,buffer);],
+                               ol_cv_func_ctime_r_nargs=2, ol_cv_func_ctime_r_nargs=0)
+               fi
+       ])
+  if test $ol_cv_func_ctime_r_nargs -gt 1 ; then
+    AC_DEFINE_UNQUOTED(CTIME_R_NARGS, $ol_cv_func_ctime_r_nargs)
+  fi
+])dnl
+
index 2a919a0e083464fdcd60a9878a14c2193364f7cb..242e79953fc9675f095477cad6f8f45107f8f9d2 100644 (file)
@@ -1 +1 @@
-1.1.2-Release
+1.1.3-Release
index 059c8f2b18d4cee9858724b37c686d72cad7e3f0..5b0c6ed0d4a36caeef64a8da5ab348f764ca3149 100644 (file)
@@ -106,6 +106,7 @@ install-local-srv: install-slapd install-conf install-tools
 
 install-slapd: FORCE
        @-$(MKDIR) $(libexecdir)
+       @-$(MKDIR) $(localstatedir)
        $(LTINSTALL) $(INSTALLFLAGS) -m 755 slapd $(libexecdir)
 
 CFFILES=slapd.conf slapd.at.conf slapd.oc.conf
index a7db275d3113acd50140de1d40324ea4639d3fb3..2e50c374b006e8d33520cd0fa18bfa853b708689 100644 (file)
@@ -22,7 +22,7 @@ LDAP_LIBDIR= ../../libraries
 BUILD_OPT = "--enable-slurpd"
 BUILD_SRV = @BUILD_SLURPD@
 
-all-local:     slurpd
+all-local-srv:         slurpd
 
 XLIBS = @SLURPD_LIBS@ -llthread @LTHREAD_LIBS@ $(KRB_LIBS) -llutil @LUTIL_LIBS@