Build error without ldap support
Hi.
Cannot build Dovecot without LDAP support.
Configure flags: --with-ldap=no
Error: In file included from db-ldap-settings.c:9: ../../src/lib-ldap/ldap-settings-parse.h:4:10: fatal error: ldap.h: No such file or directory 4 | #include <ldap.h> | ^~~~~~~~ compilation terminated. make[3]: *** [Makefile:2138: auth-db-ldap-settings.o] Error 1
Dovecot version: 2.4.0
-- Best regards, Lafiel mailto:lafiel@elven.pw
Hi, it's a known issue in 2.4.0, and it's fixed with https://github.com/dovecot/core/commit/61fe6bbd4a8a64e0823534a57a8db483019c4...
Aki
On 13/03/2025 15:21 EET Lafiel via dovecot <dovecot@dovecot.org> wrote:
Hi.
Cannot build Dovecot without LDAP support.
Configure flags: --with-ldap=no
Error: In file included from db-ldap-settings.c:9: ../../src/lib-ldap/ldap-settings-parse.h:4:10: fatal error: ldap.h: No such file or directory 4 | #include <ldap.h> | ^~~~~~~~ compilation terminated. make[3]: *** [Makefile:2138: auth-db-ldap-settings.o] Error 1
Dovecot version: 2.4.0
-- Best regards, Lafiel mailto:lafiel@elven.pw
dovecot mailing list -- dovecot@dovecot.org To unsubscribe send an email to dovecot-leave@dovecot.org
Hi.
The patch works.
Next problem
error build pigeonhole plugin without ldap support: sieve-ldap-storage.c:6:10: fatal error: ldap-utils.h: No such file or directory
6 | #include "ldap-utils.h"
|
^~~~~~~~~~~~~~ compilation terminated.
Aki Tuomi писал(а) 2025-03-13 16:29:
Hi, it's a known issue in 2.4.0, and it's fixed with https://github.com/dovecot/core/commit/61fe6bbd4a8a64e0823534a57a8db483019c4...
Aki
-- Best regards, Lafiel mailto:lafiel@elven.pw
Fixed with https://github.com/dovecot/pigeonhole/compare/0968baa6195f26bafeaa364cd331ba... -------- Original message --------From: Lafiel via dovecot <dovecot@dovecot.org> Date: 3/14/25 09:01 (GMT+02:00) To: dovecot@dovecot.org Subject: Re: Build error without ldap support Hi.The patch works.Next problem - error build pigeonhole plugin without ldap support:sieve-ldap-storage.c:6:10: fatal error: ldap-utils.h: No such file or directory 6 | #include "ldap-utils.h" | ^~~~~~~~~~~~~~compilation terminated.Aki Tuomi писал(а) 2025-03-13 16:29:> Hi, it's a known issue in 2.4.0, and it's fixed with > https://github.com/dovecot/core/commit/61fe6bbd4a8a64e0823534a57a8db483019c4901.patch> > Aki-- Best regards,Lafielmailto:lafiel@elven.pw_______________________________________________dovecot mailing list -- dovecot@dovecot.orgTo unsubscribe send an email to dovecot-leave@dovecot.org
Fixed with https://github.com/dovecot/pigeonhole/compare/ 0968baa6195f26bafeaa364cd331ba39f7435fed%5E...c73148c46f174d701377f243ea82c731a24fb6ac.patch
Aki
-------- Original message -------- From: Lafiel via dovecot <dovecot@dovecot.org> Date: 3/14/25 09:01 (GMT+02:00) To: dovecot@dovecot.org Subject: Re: Build error without ldap support Hi. The patch works. Next problem - error build pigeonhole plugin without ldap support: sieve-ldap-storage.c:6:10: fatal error: ldap-utils.h: No such file or directory 6 | #include "ldap-utils.h" | ^~~~~~~~~~~~~~ compilation terminated. Aki Tuomi писал(а) 2025-03-13 16:29: > Hi, it's a known issue in 2.4.0, and it's fixed with > https://github.com/dovecot/core/commit/ 61fe6bbd4a8a64e0823534a57a8db483019c4901.patch > > Aki -- Best regards, Lafiel mailto:lafiel@elven.pw _______________________________________________ dovecot mailing list -- dovecot@dovecot.org To unsubscribe send an email to dovecot-leave@dovecot.org
Hi, Aki.
The patch for pigeonhole works, but the patch for dovecot is not working correctly (forgot to check last time).
Error build dovecot with enable LDAP and add patch:
dovecot> /nix/store/dh0m67pv8snfcx1ic18jzp0x4cb10zhc-binutils-2.43.1/bin/ld: auth-db-ldap.o: warning: relocation against ldap_setting_parser_info' in read-only section
.text'
dovecot> /nix/store/dh0m67pv8snfcx1ic18jzp0x4cb10zhc-binutils-2.43.1/bin/ld: auth-db-ldap.o: in function db_ldap_init': dovecot> /build/dovecot-2.4.0/src/auth/db-ldap.c:1483:(.text+0x2a6a): undefined reference to
ldap_setting_parser_info'
dovecot> /nix/store/dh0m67pv8snfcx1ic18jzp0x4cb10zhc-binutils-2.43.1/bin/ld: /build/dovecot-2.4.0/src/auth/db-ldap.c:1485:(.text+0x2ab2): undefined reference to ldap_setting_post_check' dovecot> /nix/store/dh0m67pv8snfcx1ic18jzp0x4cb10zhc-binutils-2.43.1/bin/ld: auth-passdb-ldap.o: in function
passdb_ldap_preinit':
dovecot> /build/dovecot-2.4.0/src/auth/passdb-ldap.c:445:(.text+0x135): undefined reference to ldap_pre_setting_parser_info' /nix/store/dh0m67pv8snfcx1ic18jzp0x4cb10zhc-binutils-2.43.1/bin/ld: auth-passdb-ldap.o: in function
ldap_lookup_credentials':
/build/dovecot-2.4.0/src/auth/passdb-ldap.c:415:(.text+0x4f0): undefined reference to ldap_pre_setting_parser_info' /nix/store/dh0m67pv8snfcx1ic18jzp0x4cb10zhc-binutils-2.43.1/bin/ld: /build/dovecot-2.4.0/src/auth/passdb-ldap.c:417:(.text+0x517): undefined reference to
ldap_pre_settings_post_check'
/nix/store/dh0m67pv8snfcx1ic18jzp0x4cb10zhc-binutils-2.43.1/bin/ld: auth-passdb-ldap.o: in function ldap_verify_plain': /build/dovecot-2.4.0/src/auth/passdb-ldap.c:376:(.text+0x70f): undefined reference to
ldap_pre_setting_parser_info'
/nix/store/dh0m67pv8snfcx1ic18jzp0x4cb10zhc-binutils-2.43.1/bin/ld: /build/dovecot-2.4.0/src/auth/passdb-ldap.c:378:(.text+0x733): undefined reference to ldap_pre_settings_post_check' /nix/store/dh0m67pv8snfcx1ic18jzp0x4cb10zhc-binutils-2.43.1/bin/ld: auth-userdb-ldap.o: in function
userdb_ldap_preinit':
/build/dovecot-2.4.0/src/auth/userdb-ldap.c:328:(.text+0x15b): undefined reference to ldap_post_setting_parser_info' /nix/store/dh0m67pv8snfcx1ic18jzp0x4cb10zhc-binutils-2.43.1/bin/ld: /build/dovecot-2.4.0/src/auth/userdb-ldap.c:331:(.text+0x191): undefined reference to
ldap_pre_setting_parser_info'
/nix/store/dh0m67pv8snfcx1ic18jzp0x4cb10zhc-binutils-2.43.1/bin/ld: auth-userdb-ldap.o: in function userdb_ldap_lookup': /build/dovecot-2.4.0/src/auth/userdb-ldap.c:126:(.text+0x35e): undefined reference to
ldap_pre_setting_parser_info'
/nix/store/dh0m67pv8snfcx1ic18jzp0x4cb10zhc-binutils-2.43.1/bin/ld: /build/dovecot-2.4.0/src/auth/userdb-ldap.c:128:(.text+0x399): undefined reference to ldap_pre_settings_post_check' /nix/store/dh0m67pv8snfcx1ic18jzp0x4cb10zhc-binutils-2.43.1/bin/ld: auth-userdb-ldap.o: in function
userdb_ldap_iterate_init':
/build/dovecot-2.4.0/src/auth/userdb-ldap.c:259:(.text+0x5d1): undefined reference to ldap_pre_setting_parser_info' /nix/store/dh0m67pv8snfcx1ic18jzp0x4cb10zhc-binutils-2.43.1/bin/ld: /build/dovecot-2.4.0/src/auth/userdb-ldap.c:261:(.text+0x63a): undefined reference to
ldap_pre_settings_post_check'
/nix/store/dh0m67pv8snfcx1ic18jzp0x4cb10zhc-binutils-2.43.1/bin/ld: auth-userdb-ldap.o: in function userdb_ldap_iterate_callback': /build/dovecot-2.4.0/src/auth/userdb-ldap.c:200:(.text+0xb5b): undefined reference to
ldap_post_setting_parser_info'
/nix/store/dh0m67pv8snfcx1ic18jzp0x4cb10zhc-binutils-2.43.1/bin/ld: warning: creating DT_TEXTREL in a PIE
collect2: error: ld returned 1 exit status
Build log pigeonhole with enable ldap: Install prefix . : /nix/store/c0ljd5m8hq7zbvp2nj5l2hhlf9zm07b5-dovecot-pigeonhole-2.4.0 script drivers . : file dict : -ldap
Isn't it supposed to be like this: script drivers . : file dict ldap
aki.tuomi писал(а) 2025-03-14 19:34:
Fixed with https://github.com/dovecot/pigeonhole/compare/0968baa6195f26bafeaa364cd331ba...
Aki
-- Best regards, Lafiel mailto:lafiel@elven.pw
participants (3)
-
Aki Tuomi
-
aki.tuomi
-
Lafiel