hi everybody,
i'm trying to compile postfix with ldap support. I've successfully
compiled and installed berkeleydb and openldap.

this is my configuration string:

make makefiles CCARGS="-DHAS_DB -I/usr/local/BerkeleyDB-4.6.21/include
-DHAS_LDAP -I/usr/local/openldap-2.4.11/include" AUXIBS="-llber
-L/usr/local/BereleyDB-4.6.21/lib -ldb -lldap
-L/usr/local/openldap-2.4.11/lib"

to succeed compiling  with -ldb i had to sylink /usr/lib/libdb.so ->
/usr/local/BerkeleyDB-4.6.21/lib/libdb.so (not so great but it works),
but the ldap error is very hard for me to understand:

[..]
gcc -Wmissing-prototypes -Wformat -DHAS_DB
-I/usr/local/BerkeleyDB-4.6.21/include -DHAS_LDAP
-I/usr/local/openldap-2.4.11/include -g -O -I. -I../../include -DLINUX2
-o error error.o ../../lib/libmaster.a ../../lib/libglobal.a
../../lib/libutil.a -ldb -lnsl -lresolv

../../lib/libglobal.a(dict_ldap.o): In function `dict_ldap_get_errno':
/usr/src/postfix-2.5.5/src/global/dict_ldap.c:399: undefined reference
to `ldap_get_option'
../../lib/libglobal.a(dict_ldap.o): In function `dict_ldap_vendor_version':
/usr/src/postfix-2.5.5/src/global/dict_ldap.c:301: undefined reference
to `ldap_get_option'
../../lib/libglobal.a(dict_ldap.o): In function `dict_ldap_open':
/usr/src/postfix-2.5.5/src/global/dict_ldap.c:1390: undefined reference
to `ldap_is_ldap_url'
/usr/src/postfix-2.5.5/src/global/dict_ldap.c:1394: undefined reference
to `ldap_url_parse'
/usr/src/postfix-2.5.5/src/global/dict_ldap.c:1395: undefined reference
to `ldap_err2string'
/usr/src/postfix-2.5.5/src/global/dict_ldap.c:1407: undefined reference
to `ldap_free_urldesc'
../../lib/libglobal.a(dict_ldap.o): In function `dict_ldap_close':
/usr/src/postfix-2.5.5/src/global/dict_ldap.c:1297: undefined reference
to `ldap_unbind_ext'
../../lib/libglobal.a(dict_ldap.o): In function `dict_ldap_result':
/usr/src/postfix-2.5.5/src/global/dict_ldap.c:420: undefined reference
to `ldap_result'
/usr/src/postfix-2.5.5/src/global/dict_ldap.c:424: undefined reference
to `ldap_abandon_ext'
../../lib/libglobal.a(dict_ldap.o): In function `dict_ldap_set_errno':
/usr/src/postfix-2.5.5/src/global/dict_ldap.c:406: undefined reference
to `ldap_set_option'
../../lib/libglobal.a(dict_ldap.o): In function `dict_ldap_connect':
/usr/src/postfix-2.5.5/src/global/dict_ldap.c:573: undefined reference
to `ber_set_option'
/usr/src/postfix-2.5.5/src/global/dict_ldap.c:578: undefined reference
to `ber_set_option'
/usr/src/postfix-2.5.5/src/global/dict_ldap.c:582: undefined reference
to `ldap_set_option'
../../lib/libglobal.a(dict_ldap.o): In function `dict_ldap_set_tls_options':
/usr/src/postfix-2.5.5/src/global/dict_ldap.c:490: undefined reference
to `ldap_set_option'
/usr/src/postfix-2.5.5/src/global/dict_ldap.c:492: undefined reference
to `ldap_err2string'
/usr/src/postfix-2.5.5/src/global/dict_ldap.c:499: undefined reference
to `ldap_set_option'
/usr/src/postfix-2.5.5/src/global/dict_ldap.c:501: undefined reference
to `ldap_err2string'
/usr/src/postfix-2.5.5/src/global/dict_ldap.c:508: undefined reference
to `ldap_set_option'
/usr/src/postfix-2.5.5/src/global/dict_ldap.c:510: undefined reference
to `ldap_err2string'
/usr/src/postfix-2.5.5/src/global/dict_ldap.c:517: undefined reference
to `ldap_set_option'
/usr/src/postfix-2.5.5/src/global/dict_ldap.c:519: undefined reference
to `ldap_err2string'
/usr/src/postfix-2.5.5/src/global/dict_ldap.c:526: undefined reference
to `ldap_set_option'
/usr/src/postfix-2.5.5/src/global/dict_ldap.c:528: undefined reference
to `ldap_err2string'
/usr/src/postfix-2.5.5/src/global/dict_ldap.c:535: undefined reference
to `ldap_set_option'
/usr/src/postfix-2.5.5/src/global/dict_ldap.c:537: undefined reference
to `ldap_err2string'
/usr/src/postfix-2.5.5/src/global/dict_ldap.c:543: undefined reference
to `ldap_set_option'
/usr/src/postfix-2.5.5/src/global/dict_ldap.c:545: undefined reference
to `ldap_err2string'
../../lib/libglobal.a(dict_ldap.o): In function `dict_ldap_connect':
/usr/src/postfix-2.5.5/src/global/dict_ldap.c:612: undefined reference
to `ldap_set_option'
/usr/src/postfix-2.5.5/src/global/dict_ldap.c:615: undefined reference
to `ldap_unbind_ext'
/usr/src/postfix-2.5.5/src/global/dict_ldap.c:651: undefined reference
to `ldap_set_option'
/usr/src/postfix-2.5.5/src/global/dict_ldap.c:654: undefined reference
to `ldap_unbind_ext'
/usr/src/postfix-2.5.5/src/global/dict_ldap.c:657: undefined reference
to `ldap_get_option'
/usr/src/postfix-2.5.5/src/global/dict_ldap.c:671: undefined reference
to `ldap_set_option'
/usr/src/postfix-2.5.5/src/global/dict_ldap.c:675: undefined reference
to `ldap_unbind_ext'
/usr/src/postfix-2.5.5/src/global/dict_ldap.c:683: undefined reference
to `ldap_set_option'
/usr/src/postfix-2.5.5/src/global/dict_ldap.c:690: undefined reference
to `ber_pvt_opt_on'
/usr/src/postfix-2.5.5/src/global/dict_ldap.c:690: undefined reference
to `ldap_set_option'
/usr/src/postfix-2.5.5/src/global/dict_ldap.c:694: undefined reference
to `ldap_unbind_ext'
/usr/src/postfix-2.5.5/src/global/dict_ldap.c:707: undefined reference
to `ldap_unbind_ext'
/usr/src/postfix-2.5.5/src/global/dict_ldap.c:711: undefined reference
to `ldap_start_tls_s'
/usr/src/postfix-2.5.5/src/global/dict_ldap.c:726: undefined reference
to `ldap_err2string'
../../lib/libglobal.a(dict_ldap.o): In function `dict_ldap_bind_st':
/usr/src/postfix-2.5.5/src/global/dict_ldap.c:441: undefined reference
to `ldap_sasl_bind'
/usr/src/postfix-2.5.5/src/global/dict_ldap.c:450: undefined reference
to `ldap_parse_sasl_bind_result'
../../lib/libglobal.a(dict_ldap.o): In function `dict_ldap_connect':
/usr/src/postfix-2.5.5/src/global/dict_ldap.c:746: undefined reference
to `ldap_err2string'
/usr/src/postfix-2.5.5/src/global/dict_ldap.c:749: undefined reference
to `ldap_unbind_ext'
/usr/src/postfix-2.5.5/src/global/dict_ldap.c:599: undefined reference
to `ldap_initialize'
../../lib/libglobal.a(dict_ldap.o): In function `search_st':
/usr/src/postfix-2.5.5/src/global/dict_ldap.c:469: undefined reference
to `ldap_search_ext'
/usr/src/postfix-2.5.5/src/global/dict_ldap.c:478: undefined reference
to `ldap_parse_result'
../../lib/libglobal.a(dict_ldap.o): In function `dict_ldap_get_values':
/usr/src/postfix-2.5.5/src/global/dict_ldap.c:851: undefined reference
to `ldap_count_entries'
/usr/src/postfix-2.5.5/src/global/dict_ldap.c:854: undefined reference
to `ldap_first_entry'
/usr/src/postfix-2.5.5/src/global/dict_ldap.c:879: undefined reference
to `ldap_get_values_len'
/usr/src/postfix-2.5.5/src/global/dict_ldap.c:881: undefined reference
to `ldap_count_values_len'
/usr/src/postfix-2.5.5/src/global/dict_ldap.c:882: undefined reference
to `ldap_value_free_len'
/usr/src/postfix-2.5.5/src/global/dict_ldap.c:897: undefined reference
to `ldap_get_values_len'
/usr/src/postfix-2.5.5/src/global/dict_ldap.c:899: undefined reference
to `ldap_count_values_len'
/usr/src/postfix-2.5.5/src/global/dict_ldap.c:900: undefined reference
to `ldap_value_free_len'
/usr/src/postfix-2.5.5/src/global/dict_ldap.c:905: undefined reference
to `ldap_first_attribute'
/usr/src/postfix-2.5.5/src/global/dict_ldap.c:909: undefined reference
to `ldap_get_values_len'
/usr/src/postfix-2.5.5/src/global/dict_ldap.c:916: undefined reference
to `ldap_count_values_len'
/usr/src/postfix-2.5.5/src/global/dict_ldap.c:928: undefined reference
to `ldap_value_free_len'
/usr/src/postfix-2.5.5/src/global/dict_ldap.c:987: undefined reference
to `ldap_is_ldap_url'
/usr/src/postfix-2.5.5/src/global/dict_ldap.c:991: undefined reference
to `ldap_url_parse'
/usr/src/postfix-2.5.5/src/global/dict_ldap.c:997: undefined reference
to `ldap_free_urldesc'
/usr/src/postfix-2.5.5/src/global/dict_ldap.c:1022: undefined reference
to `ldap_err2string'
/usr/src/postfix-2.5.5/src/global/dict_ldap.c:1029: undefined reference
to `ldap_msgfree'
/usr/src/postfix-2.5.5/src/global/dict_ldap.c:1047: undefined reference
to `ldap_value_free_len'
/usr/src/postfix-2.5.5/src/global/dict_ldap.c:907: undefined reference
to `ldap_memfree'
/usr/src/postfix-2.5.5/src/global/dict_ldap.c:907: undefined reference
to `ldap_next_attribute'
/usr/src/postfix-2.5.5/src/global/dict_ldap.c:1050: undefined reference
to `ber_free'
/usr/src/postfix-2.5.5/src/global/dict_ldap.c:855: undefined reference
to `ldap_next_entry'
../../lib/libglobal.a(dict_ldap.o): In function `dict_ldap_lookup':
/usr/src/postfix-2.5.5/src/global/dict_ldap.c:1142: undefined reference
to `ldap_set_option'
/usr/src/postfix-2.5.5/src/global/dict_ldap.c:1190: undefined reference
to `ldap_unbind_ext'
/usr/src/postfix-2.5.5/src/global/dict_ldap.c:1222: undefined reference
to `ldap_err2string'
/usr/src/postfix-2.5.5/src/global/dict_ldap.c:1242: undefined reference
to `ldap_err2string'
/usr/src/postfix-2.5.5/src/global/dict_ldap.c:1253: undefined reference
to `ldap_err2string'
/usr/src/postfix-2.5.5/src/global/dict_ldap.c:1260: undefined reference
to `ldap_unbind_ext'
/usr/src/postfix-2.5.5/src/global/dict_ldap.c:1274: undefined reference
to `ldap_msgfree'
collect2: ld returned 1 exit status
make: *** [error] Error 1
make: *** [update] Error 1


Someone can help?
cheers,
Tommaso

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

Reply via email to