I am trying to compile openLDAP 2.4.25 with TLS and cyrusSASL and following these two links
http://www.openldap.org/faq/data/cache/196.html http://www.openldap.org/pub/ksoper/OpenLDAP_TLS.html
configure and make depend works but make fails with very long list of undeclared/undefined errors in TLS.
tls_m.c:2994: warning: comparison between pointer and integer tls_m.c:2994: error: 'PR_WOULD_BLOCK_ERROR' undeclared (first use in this function) tls_m.c:2994: warning: comparison between pointer and integer tls_m.c: In function 'tlsm_sb_write': tls_m.c:3016: error: 'struct tls_data' has no member named 'session' tls_m.c:3016: error: 'PR_INTERVAL_NO_TIMEOUT' undeclared (first use in this function) tls_m.c:3019: error: 'PR_PENDING_INTERRUPT_ERROR' undeclared (first use in this function) tls_m.c:3019: warning: comparison between pointer and integer tls_m.c:3019: error: 'PR_WOULD_BLOCK_ERROR' undeclared (first use in this function) tls_m.c:3019: warning: comparison between pointer and integer make[2]: *** [tls_m.lo] Error 1 make[2]: Leaving directory `/root/Desktop/openldap-2.4.25-source/libraries/libldap' make[1]: *** [all-common] Error 1 make[1]: Leaving directory `/root/Desktop/openldap-2.4.25-source/libraries' make: *** [all-common] Error 1 [root@100x103 openldap-2.4.25-source]#
I am using ./configure --prefix=/root/Desktop/openldap-2.4.25 --with-tls=no --enable-slapd --with-cyrus-sasl --enable-crypt --enable-debug --enable-cleartext
to configure on CentOS 5.2 and have cflags and cpppflags defined.
Can someone please help me fixing this? Thanks for the help.
Thanks, Simon