Your package fails to build with the newest openldap-2.6, which was part of a recent wide Fedora change. More information about Fedora OpenLDAP Change is available here: https://fedoraproject.org/wiki/Changes/Openldap_25#How_To_Test. Thank you for your cooperation! Additional Information: If you have an issue with libldap_r depreciation, you can use the following example for fixing your package: https://github.com/389ds/389-ds-base/commit/a3375a08a506c3b72a8a23df5238848017691350
The conflict is not caused by libldap_r directly. But build complains because dlz module uses ldap_connect static function with different parameters. Quick fix would be renaming internal functions to use unique prefix for own functions.
Relevant message from build failure at https://copr.fedorainfracloud.org/coprs/spichugi/openldap-2.6/build/3064396/ make: Leaving directory '/builddir/build/BUILD/bind-9.16.24/build/contrib/dlz/modules/filesystem' + for DIR in filesystem ldap mysql mysqldyn sqlite3 + make -C ldap 'CFLAGS=-fPIC -I../include -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 ' make: Entering directory '/builddir/build/BUILD/bind-9.16.24/build/contrib/dlz/modules/ldap' gcc -fPIC -I../include -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -c ../common/dlz_dbi.c gcc -fPIC -I../include -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -shared -o dlz_ldap_dynamic.so \ dlz_ldap_dynamic.c dlz_dbi.o -lldap dlz_ldap_dynamic.c:196:1: error: conflicting types for 'ldap_connect'; have 'isc_result_t(ldap_instance_t *, dbinstance_t *)' {aka 'unsigned int(ldap_instance_t *, struct dbinstance *)'} 196 | ldap_connect(ldap_instance_t *dbi, dbinstance_t *dbc) { | ^~~~~~~~~~~~ In file included from dlz_ldap_dynamic.c:66: /usr/include/ldap.h:1555:1: note: previous declaration of 'ldap_connect' with type 'int(LDAP *)' {aka 'int(struct ldap *)'} 1555 | ldap_connect( LDAP *ld ); | ^~~~~~~~~~~~ make: *** [Makefile:13: dlz_ldap_dynamic.so] Error 1 make: Leaving directory '/builddir/build/BUILD/bind-9.16.24/build/contrib/dlz/modules/ldap' error: Bad exit status from /var/tmp/rpm-tmp.fEWFON (%build) Bad exit status from /var/tmp/rpm-tmp.fEWFON (%build)
Built on rawhide: https://koji.fedoraproject.org/koji/taskinfo?taskID=80325725
Verified fix on COPR repo build: https://copr.fedorainfracloud.org/coprs/spichugi/openldap-2.6/build/3076834/