(Answer) (Category) OpenLDAP Faq-O-Matic : (Category) OpenLDAP Software FAQ : (Category) Installation : (Answer) What do I do if REGEX is broken on my system?
A few systems (especially older ones) do not have POSIX regex compatible library or have a broken one. On such systems, you need to install a third party POSIX regex library.
One solution is to download and install GNU regex 0.12

Compile regex.o:
  % ./configure
  % make

Construct a library containing regex.o:
  % ar ru libgnuregex.a regex.o
  % ranlib libgnuregex.a  (not required on all systems)

Tell OpenLDAP configure to use this library
  ( in .../ldap )
  % env CPPFLAGS=-I/path/to/regex-0.12 \
    LDFLAGS=-L/path/to/regex-0.12 \
    LIBS=-lgnuregex \
Another solution is to download GNU rx (ftp://ftp.gnu.org/gnu/).
This works on HPUX 10.20
1. download, compile and install GNU Rx (replacement for regex)
2. env LIBS=-lrx ./configure
3. make depend
4. replace <regex.h> with <rxposix.h> in include/ac/regex.h
5. compile and test
[Append to This Answer]
Previous: (Answer) Can LDBM use NDBM?
Next: (Answer) How to build only a LDAP client installation?
This document is: http://www.openldap.org/faq/index.cgi?file=152
[Search] [Appearance]
This is a Faq-O-Matic 2.721.test.
© Copyright 1998-2013, OpenLDAP Foundation, info@OpenLDAP.org