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

openldap on aix



Title: openldap on aix

hello all,

some time ago I asked several questions about openldap on AIX 4.3.3.
evetually it works (at least I got it running, adding data, serching)
I'd like to thank the persons who provided help.

for those who might be interested by the configuration for aix,
here's the way I did it (I'm not saying it's THE way it should be and
all comments are wellcome)

the problems I had were:
* env variables (MKDEP not set by ./configure)
* nasty problems with dynamic libs which I disabled
* nastier problem with 'getaddrinfo' which does not seem to work with ipv4

to solve the latter, I had to modify the configure script

shell> diff configure.original configure.modified
5498a5499,5502
> # ####################################################################
> eval "ac_cv_func_$ac_func=no"
> # ####################################################################
>
5510d5513
<
shell>

then:

shell> make clean

# gdbm in installed by ./configure --prefix=/home/szmurlo1/usr
# ldap will be in /home/szmurlo1/ldap/inst

shell> export MKDEP=/home/szmurlo1/ldap/openldap-2.0.6/build/mkdep.aix
shell> export CPPFLAGS=-UHAVE_GETADDRINFO\ -I/home/szmurlo1/usr/include
shell> export LDFLAGS=-L/home/szmurlo1/usr/lib
shell> ./configure --prefix=/home/szmurlo1/ldap/inst --with-ldbm-api=gdbm --disable-shared --disable-ipv6
shell> make depend
shell> make
shell> make test
shell> make install

unsetting HAVE_GETADDRINFO (by -U) very probably is not necessary as
getaddrinfo is not detected. just a security... :-). on the other hand, unsetting
HAVE_GETADDRINFO without modification of the configure script still makes
that the getaddrinfo function is called

maurice