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

Re: ldif2ldbm doesn't make db files



Hi,

I have found a workaround for this problem.

The reason seems to be in glibc-2.1. When db_open is called, it expects
to be the "environment" NULL or the cachesize 0. Seems previous releases
didn't do so. (Details can be found in a mail I have sent to openldap-bugs.)

The workaround is setting cachesize to 0 which will let the DB2
implementation choose a reasonable cachesize automatically.

Attached you find

  - a SPECS file
  - two patch files and
  - an openldap.init file

To build OpenLDAP with RH 6.0 (or any other RPM based system), do the
following:

  - Save the SPECS file in /usr/src/redhat/SPECS
  - Save the other files in /usr/src/redhat/SOURCES
  - Edit the SPECS file to match your version of the OpenLDAP server.
    For example, use

	%define ldapver 990504

    or

	%define ldapver 1.2.1

  - Run the compiler:

	rpm -ba /usr/src/redhat/SPECS/openldap.spec

    This will build files

	/usr/src/redhat/RPMS/i386/openldap-<version>-2.src.rpm
	/usr/src/redhat/SRPMS/i386/openldap-<version>-2.i386.rpm

  - The former can be installed with

	rpm -i /usr/src/redhat/RPMS/i386/openldap-<version>-2.src.rpm


Bye,

Jochen


-- 
Jochen Wiedmann						joe@ispsoft.de
How come the .45 is the worlds only functional		+49 7123 14887
point and click interface? (Alan Cox)

Attachment: openldap-990504-cachesize.patch
Description: Binary data

Attachment: openldap-990504-strdup.patch
Description: Binary data

Attachment: openldap.init
Description: Binary data

Attachment: openldap.spec
Description: Binary data