[nagiosplug] Fix Debian bug #463322: Use deprecated libldap API
"Holger Weiss" <[email protected]>
| Newsgroups | gmane.network.nagios.plugins.cvs |
|---|---|
| Message-ID | <[email protected]> |
Module: nagiosplug Branch: master Commit: 1fe0f16d34e369f1a9e2dbefe1acc7448a1e1b53 Author: Holger Weiss <[email protected]> Date: Sun Apr 11 09:51:21 2010 +0200 URL: http://nagiosplug.git.sf.net/git/gitweb.cgi?p=nagiosplug/nagiosplug;a=commit;h=1fe0f16 Fix Debian bug #463322: Use deprecated libldap API | Our automated build log filter[1] detected a problem that is likely to | cause your package to segfault on architectures where the size of a | pointer is greater than the size of an integer, such as ia64 and | amd64. | | This is often due to a missing function prototype definition. For | more information, see [2]. | | Function `ldap_init' implicitly converted to pointer at | check_ldap.c:124 | | [1] http://people.debian.org/~dannf/check-implicit-pointer-functions | [2] http://wiki.debian.org/ImplicitPointerConversions | | The libldap API has been updated and many functions used by the ldap | plugin are now deprecated. This package should either update to the | new API or define LDAP_DEPRECATED to continue using the deprecated | interfaces. | | This patch implements the lazy solution. [ http://bugs.debian.org/463322 ] (Contributed by Dann Frazier, forwarded by Jan Wagner.) --- THANKS.in | 1 + plugins/check_ldap.c | 1 + 2 files changed, 2 insertions(+), 0 deletions(-) diff --git a/THANKS.in b/THANKS.in index ee75f33..cc6e194 100644 --- a/THANKS.in +++ b/THANKS.in @@ -261,3 +261,4 @@ Bryan Irvine Jimmy Bergman Konstantin Khomoutov Josip Rodin +Dann Frazier diff --git a/plugins/check_ldap.c b/plugins/check_ldap.c index 25432de..4928394 100644 --- a/plugins/check_ldap.c +++ b/plugins/check_ldap.c @@ -36,6 +36,7 @@ const char *email = "[email protected]"; #include "utils.h" #include <lber.h> +#define LDAP_DEPRECATED 1 #include <ldap.h> enum { ------------------------------------------------------------------------------ Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev