Bug 397484

Summary: Compilation failure due to prototype mismatching
Product: [Frameworks and Libraries] kldap Reporter: Bart Ribbers <bribbers>
Component: generalAssignee: kdepim bugs <kdepim-bugs>
Status: RESOLVED FIXED    
Severity: normal CC: montel
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:
Attachments: Compilation error

Description Bart Ribbers 2018-08-15 12:53:09 UTC
I'm trying to compile/package kldap for postmarketOS (https://postmarketos.org), which uses Alpine Linux and thus Musl rather than glibc. However, compilation fails because of the attached error.

This happens using the latest unstable version (18.07.90).
Comment 1 Bart Ribbers 2018-08-15 12:53:50 UTC
Created attachment 114444 [details]
Compilation error
Comment 2 Laurent Montel 2018-08-16 07:36:38 UTC
it seems that you don't have Ldap devel file.
Please install it
Comment 3 Bart Ribbers 2018-08-17 13:02:25 UTC
You seem to be completely right, installing openldap-dev fixed it, thanks. May I suggest adding a check for it in CMakeLists.txt?
Comment 4 Laurent Montel 2018-08-17 13:31:13 UTC
(In reply to Bart Ribbers from comment #3)
> You seem to be completely right, installing openldap-dev fixed it, thanks.
> May I suggest adding a check for it in CMakeLists.txt?

We already did a check but we didn't test compile without it from very long time :)
it seems that it doesn't build without it.

I can look at a day how to fix it or make it required.