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/0968baa6195f26bafeaa364cd331ba39f7435fed%5E...c73148c46f174d701377f243ea82c731a24fb6ac.patch
> 
> Aki


-- 
Best regards,
Lafiel
mailto:laf...@elven.pw
_______________________________________________
dovecot mailing list -- dovecot@dovecot.org
To unsubscribe send an email to dovecot-le...@dovecot.org

Reply via email to