Bug #89365 Rebuilding RPM of 5.7 fails because missing lber.h
Submitted: 23 Jan 2018 15:42 Modified: 24 Jan 2018 3:57
Reporter: Daniël van Eeden (OCA) Email Updates:
Status: Duplicate Impact on me:
None 
Category:MySQL Server: Packaging Severity:S3 (Non-critical)
Version:5.7.21 OS:Any
Assigned to: CPU Architecture:Any
Tags: rpm

[23 Jan 2018 15:42] Daniël van Eeden
Description:
Rebuilding the RPMs fails on some systems.

Using the command from https://dev.mysql.com/doc/mysql-sourcebuild-excerpt/5.7/en/installing-source-distribution....

How to repeat:
On a system without /usr/include/lber.h (openldap-devel):
$ rpmbuild --rebuild --clean mysql-community-5.7.21-1.el7.src.rpm

RPM build errors:
    File not found: /home/dvaneeden/rpmbuild/BUILDROOT/mysql-community-5.7.21-1.el7.x86_64/usr/lib64/mysql/plugin/authentication_ldap_sasl_client.so
    File not found: /home/dvaneeden/rpmbuild/BUILDROOT/mysql-community-5.7.21-1.el7.x86_64/usr/lib64/mysql/plugin/debug/authentication_ldap_sasl_client.so
    
From the build log:
-- Required LBER library is missing. Skipping the LDAP SASL client authentication plugin.

Suggested fix:
Add openldap-devel to build dependencies.
[23 Jan 2018 17:23] Terje Røsten
Hi!

Thanks for report!

This  seems like a dup of https://bugs.mysql.com/bug.php?id=88789 ?
[23 Jan 2018 18:24] Daniël van Eeden
Yes indeed a duplicate. I searched for the plugin name, which didn't return results..
[24 Jan 2018 3:57] MySQL Verification Team
Thank you Daniël, Terje.
For now, marking it as duplicate of Bug #88789.

Thanks,
Umesh