-
Notifications
You must be signed in to change notification settings - Fork 126
python-ldap declares ldap_init_fd #353
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Apparently, |
tiran
added a commit
to tiran/python-ldap
that referenced
this issue
Jun 9, 2020
OpenLDAP 2.4.48 added openldap.h, which defines ldap_init_fd. Use the header file with 2.4.48 and define the function for older versions. The patch also cleans up #include. All OpenLDAP includes are now in common.h and use global includes ``#include <ldap.h>`` instead of local includes ``#include "ldap.h"``. Fixes: python-ldap#353 See: https://bugs.openldap.org/show_bug.cgi?id=8671 Signed-off-by: Christian Heimes <cheimes@redhat.com>
tiran
added a commit
to tiran/python-ldap
that referenced
this issue
Jun 9, 2020
OpenLDAP 2.4.48 added openldap.h, which defines ldap_init_fd. Use the header file with 2.4.48 and define the function for older versions. The patch also cleans up #include. All OpenLDAP includes are now in common.h and use global includes ``#include <ldap.h>`` instead of local includes ``#include "ldap.h"``. Fixes: python-ldap#353 See: https://bugs.openldap.org/show_bug.cgi?id=8671 Signed-off-by: Christian Heimes <cheimes@redhat.com>
tiran
added a commit
to tiran/python-ldap
that referenced
this issue
Jun 9, 2020
OpenLDAP 2.4.48 added openldap.h, which defines ldap_init_fd. Use the header file with 2.4.48 and define the function for older versions. The patch also cleans up #include. All OpenLDAP includes are now in common.h and use global includes ``#include <ldap.h>`` instead of local includes ``#include "ldap.h"``. Fixes: python-ldap#353 See: https://bugs.openldap.org/show_bug.cgi?id=8671 Signed-off-by: Christian Heimes <cheimes@redhat.com>
encukou
pushed a commit
that referenced
this issue
Jun 18, 2020
OpenLDAP 2.4.48 added openldap.h, which defines ldap_init_fd. Use the header file with 2.4.48 and define the function for older versions. The patch also cleans up #include. All OpenLDAP includes are now in common.h and use global includes ``#include <ldap.h>`` instead of local includes ``#include "ldap.h"``. Fixes: #353 See: https://bugs.openldap.org/show_bug.cgi?id=8671 Signed-off-by: Christian Heimes <cheimes@redhat.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Currently, python-ldap carries a declaration of OpenLDAP's
ldap_init_fd
:python-ldap/Modules/functions.c
Lines 47 to 48 in c00694e
This function is documented and declared in in
openldap.h
, but apparently distros don't shipopenldap.h
.Unless there is some complication that I don't see, we should not declare this function. Distros should either ship
openldap.h
, or they could patchpython-ldap
to provide the declaration.The text was updated successfully, but these errors were encountered: