Bug 2032704
| Summary: | [F36FTBFS]: bind fails to build from source in Fedora Rawhide with openldap-2.6 | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Simon Pichugin <spichugi> |
| Component: | bind | Assignee: | Petr Menšík <pemensik> |
| Status: | CLOSED RAWHIDE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | rawhide | CC: | aegorenk, anon.amish, dns-sig, mruprich, msehnout, pemensik, vonsch, zdohnal |
| Target Milestone: | --- | Keywords: | Triaged |
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | bind-9.16.24-2.fc36 | Doc Type: | No Doc Update |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2021-12-22 22:10:46 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
| Bug Depends On: | |||
| Bug Blocks: | 2021662 | ||
|
Description
Simon Pichugin
2021-12-15 02:38:39 UTC
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/ |