File: 33_526176-ldap.patch

package info (click to toggle)
xymon 4.3.30-4
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 11,288 kB
  • sloc: ansic: 69,112; sh: 3,595; makefile: 857; javascript: 452; perl: 48
file content (45 lines) | stat: -rw-r--r-- 1,792 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
From: dann frazier <dannf@debian.org>
Subject: #526176: xymon: ldap_init implicitly converted to pointer
Date: Wed, 29 Apr 2009 12:18:00 -0600
Bug-Debian: https://bugs.debian.org/526176
Forwarded: no
Last-Update: 2015-09-10
Reviewed-By: Axel Beckert <abe@debian.org>

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.

  Function `ldap_init' implicitly converted to pointer at test-ldap.c:25

  This is often due to a missing function prototype definition.
  For more information, see [2].

  Though it is guaranteed that this codepath will cause a segfault on certain
  architectures, it is not guaranteed that this codepath would ever be executed
  (e.g., if the returned pointer is never dereferenced). However, this bug
  does prevent the ia64 buildd from successfully building this package, resulting
  in a practical FTBFS issue and warranting the serious severity.

  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.

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

Index: xymon/build/test-ldap.c
===================================================================
--- xymon.orig/build/test-ldap.c	2012-07-23 23:39:37.000000000 +0200
+++ xymon/build/test-ldap.c	2012-07-23 23:40:51.000000000 +0200
@@ -2,6 +2,7 @@
 #include <sys/time.h>
 #include <stdio.h>
 
+#define LDAP_DEPRECATED 1
 #include <ldap.h>
 #include <lber.h>