HI!!

if u r using solaris u can use
ldd /usr/lib/libldap.so to check if all the function calls are resolved.
Any other system find out the corresponding command.

By
Himanshu

On Tue, 16 Oct 2001, John Cope wrote:

> Hello Everyone.
>
> I'm having compile problems with qmail-ldap and I was wondering if you good
> give me some clues as to what might be the problem.  Here is a printout of
> what I did:
>
> I patched a clean qmail source with the latest qmail-ldap patch then I
> edited the Makefile as follows:
>
> # vi Makefile
> "Makefile" 2414 lines, 73136 characters
> # Edit this few lines to configure your ldap stuff and checkpassword
>
> # to enable some additional for qmail-ldap stuff put it on the LDAPFLAGS
> line
> # -DLDAP_ESCAPE_BUG should be added as long as the ldap servers have
> # problems with the escapeing of LDAP filters (fixed with OpenLDAP 1.2.7)
> # -DQLDAP_CLUSTER for enabling cluster support
> # to enable the dash_ext patch for extended mail addresses add
> # -DDASH_EXT to the LDAPFLAGS
> # to use cleartext passwords (a bad idea on production systems) add
> # -DCLEARTEXTPASSWD to the LDAPFLAGS
> LDAPFLAGS=-DQLDAP_CLUSTER
> # Perhaps you have different ldap libraries, change them here
> #LDAPLIBS=-L/usr/local/lib -lldap -llber lnsl -lresolv
> # and change the location of the include files here
> #LDAPINCLUDES=-I/usr/local/include
> # Perhaps you have different ldap libraries, change them here
> #LDAPLIBS=-L/inst/build/qmail/netscape/lib -lldap -llber -lresolv
> # and change the location of the include files here
> #LDAPINCLUDES=-I/inst/build/qmail/netscape/include
> # on Slowaris you need -lresolv and probably a LD_RUN_PATH added like this:
> LDAPLIBS=-L/inst/build/qmail/netscape/lib -lldap -llber -lnsl -lresolv
> -R/inst/build/qmail/netscape/lib
> # for example on my Linux box I use:
> #LDAPLIBS=-L/opt/OpenLDAP/lib -lldap -llber
> # if you need a special include-directory for ldap headers enable this
> LDAPINCLUDES=-I/inst/build/qmail/netscape/include
>
> # TLS (SMTP encryption) in qmail-smtpd and qmail-remote, see TLS.readme
> # You need OpenSSL for this
> # TLS enable
> #TLSON=-DTLS
> # Path to OpenSSL includes
> #TLSINCLUDES=-I/usr/local/include
> # Path to OpenSSL libraries
> #TLSLIBS=-L/usr/local/lib -lssl -lcrypto
> # Path to OpenSSL binary
> #OPENSSLBIN=/usr/local/bin/openssl
>
> # to make the Netscape download progress bar work with qmail-pop3d
> # uncomment the next line (allready done)
> MNW=-DMAKE_NETSCAPE_WORK
>
> # to enable the auto-maildir-make feature uncomment the next line
> MDIRMAKE=-DAUTOMAILDIRMAKE
>
> # to enable the auto-homedir-make feature uncomment the next line
> "Makefile" 2414 lines, 73137 characters
> # make setup check
> ./load qmail-lspawn spawn.o prot.o slurpclose.o coe.o control.o \
> check.o qldap-ldaplib.o qldap-debug.o output.o sig.a strerr.a constmap.o \
> getln.a wait.a case.a cdb.a fd.a seek.a open.a env.a stralloc.a alloc.a \
> substdio.a str.a qldap-errno.o error.a fs.a auto_qmail.o \
> auto_uids.o auto_usera.o auto_spawn.o auto_break.o
> -L/inst/build/qmail/netscape/lib -lldap -llber -lnsl -lresolv
> -R/inst/build/qmail/netscape/lib
> Undefined                       first referenced
>  symbol                             in file
> SSL_library_init                    /usr/local/lib/libldap.so
> ERR_error_string                    /usr/local/lib/libldap.so
> SSL_CTX_set_cipher_list             /usr/local/lib/libldap.so
> SSL_CIPHER_get_bits                 /usr/local/lib/libldap.so
> CRYPTO_free                         /usr/local/lib/libldap.so
> X509V3_add_standard_extensions      /usr/local/lib/libldap.so
> X509_get_issuer_name                /usr/local/lib/libldap.so
> SSLv23_method                       /usr/local/lib/libldap.so
> X509_STORE_CTX_get_current_cert     /usr/local/lib/libldap.so
> SSL_shutdown                        /usr/local/lib/libldap.so
> X509_free                           /usr/local/lib/libldap.so
> SSL_state_string_long               /usr/local/lib/libldap.so
> X509_STORE_CTX_get_error_depth      /usr/local/lib/libldap.so
> SSL_CTX_use_PrivateKey_file         /usr/local/lib/libldap.so
> RAND_load_file                      /usr/local/lib/libldap.so
> SSL_CTX_set_tmp_rsa_callback        /usr/local/lib/libldap.so
> SSL_CTX_set_verify                  /usr/local/lib/libldap.so
> X509_STORE_CTX_get_error            /usr/local/lib/libldap.so
> SSL_CTX_check_private_key           /usr/local/lib/libldap.so
> SSL_CTX_free                        /usr/local/lib/libldap.so
> SSL_alert_type_string_long          /usr/local/lib/libldap.so
> SSL_set_info_callback               /usr/local/lib/libldap.so
> SSL_load_error_strings              /usr/local/lib/libldap.so
> SSL_alert_desc_string_long          /usr/local/lib/libldap.so
> SSL_get_current_cipher              /usr/local/lib/libldap.so
> RAND_status                         /usr/local/lib/libldap.so
> SSL_CTX_set_client_CA_list          /usr/local/lib/libldap.so
> RAND_egd                            /usr/local/lib/libldap.so
> SSL_CTX_use_certificate_file        /usr/local/lib/libldap.so
> SSL_set_bio                         /usr/local/lib/libldap.so
> SSL_connect                         /usr/local/lib/libldap.so
> RAND_file_name                      /usr/local/lib/libldap.so
> SSL_CTX_new                         /usr/local/lib/libldap.so
> X509_get_subject_name               /usr/local/lib/libldap.so
> RSA_generate_key                    /usr/local/lib/libldap.so
> SSL_CTX_set_default_verify_paths    /usr/local/lib/libldap.so
> SSL_write                           /usr/local/lib/libldap.so
> SSL_CTX_load_verify_locations       /usr/local/lib/libldap.so
> SSL_new                             /usr/local/lib/libldap.so
> BIO_new                             /usr/local/lib/libldap.so
> SSL_get_error                       /usr/local/lib/libldap.so
> ERR_get_error_line                  /usr/local/lib/libldap.so
> SSL_load_client_CA_file             /usr/local/lib/libldap.so
> SSL_free                            /usr/local/lib/libldap.so
> SSL_pending                         /usr/local/lib/libldap.so
> ERR_peek_error                      /usr/local/lib/libldap.so
> SSL_get_peer_certificate            /usr/local/lib/libldap.so
> SSL_read                            /usr/local/lib/libldap.so
> SSL_accept                          /usr/local/lib/libldap.so
> X509_NAME_oneline                   /usr/local/lib/libldap.so
> ld: fatal: Symbol referencing errors. No output written to qmail-lspawn
> collect2: ld returned 1 exit status
> make: *** [qmail-lspawn] Error 1
>
> Well that's it so far, any clues?
>
> - John Cope
>

Reply via email to