Package: sylpheed-claws
Version: 1.0.5-5.2
Severity: important
Tags: patch
Usertags: implicit-pointer-conversion

Our automated buildd 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].

[1] http://people.debian.org/~dannf/check-implicit-pointer-functions
[2] http://wiki.debian.org/ImplicitPointerConversions

  Function `ldap_get_values' implicitly converted to pointer at ldapquery.c:458
  Function `ldap_init' implicitly converted to pointer at ldapquery.c:709
  Function `ldap_get_values' implicitly converted to pointer at ldaputil.c:89
  Function `ldap_init' implicitly converted to pointer at ldaputil.c:210
  Function `ldap_open' implicitly converted to pointer at ldaputil.c:247

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.

diff -urpN sylpheed-claws-1.0.5.orig/src/ldapquery.h 
sylpheed-claws-1.0.5/src/ldapquery.h
--- sylpheed-claws-1.0.5.orig/src/ldapquery.h   2005-06-27 05:50:13.000000000 
-0600
+++ sylpheed-claws-1.0.5/src/ldapquery.h        2008-01-31 00:00:08.000000000 
-0700
@@ -30,6 +30,7 @@
 #include <stdio.h>
 #include <sys/time.h>
 #include <pthread.h>
+#define LDAP_DEPRECATED 1
 #include <ldap.h>
 
 #include "addrquery.h"
--- sylpheed-claws-1.0.5.orig/src/ldaputil.c    2005-06-27 05:50:13.000000000 
-0600
+++ sylpheed-claws-1.0.5/src/ldaputil.c 2008-01-31 00:00:18.000000000 -0700
@@ -30,6 +30,7 @@
 #include <glib.h>
 #include <string.h>
 #include <sys/time.h>
+#define LDAP_DEPRECATED 1
 #include <ldap.h>
 #include <lber.h>
 



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to