Package: libss7
Severity: normal
Tags: patch

Dear Maintainer,

libss7 currently FTBFS with clang 3.1 (the complete build log can be found at 
http://clang.debian.net/logs/2012-06-23/libss7_1.0.2-2_unstable_clang.log).

The attached patch fixes the issue:
- it uses $(CC) if it is set, rather than gcc.
- it removes extraneous parentheses.
- it fixes what seems to be a typo.

WBR,
Cyril Roelandt.


-- System Information:
Debian Release: wheezy/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 3.2.0-3-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
--- libss7.orig/Makefile	2012-09-03 03:18:22.000000000 +0200
+++ libss7/Makefile	2012-09-03 03:01:50.764177123 +0200
@@ -1,4 +1,4 @@
-CC=gcc
+CC?=gcc
 GREP=grep
 AWK=awk
 
--- libss7.orig/mtp3.c	2012-09-03 03:18:22.000000000 +0200
+++ libss7/mtp3.c	2012-09-03 03:02:10.808177626 +0200
@@ -612,7 +612,7 @@
 	int i;
 
 	for (i = 0; i < ss7->numlinks; i++) {
-		if ((ss7->mtp2_linkstate[i] == MTP2_LINKSTATE_DOWN)) {
+		if (ss7->mtp2_linkstate[i] == MTP2_LINKSTATE_DOWN) {
 			mtp2_start(ss7->links[i], 1);
 			ss7->mtp2_linkstate[i] = MTP2_LINKSTATE_ALIGNING;
 		}
--- libss7.orig/isup.c	2012-09-03 03:18:22.000000000 +0200
+++ libss7/isup.c	2012-09-03 03:04:31.460181239 +0200
@@ -1394,7 +1394,7 @@
 
 	switch ((parm[1] >> 4) & 0xf) {
 		case 0:
-			orig_redir_reas = "Unknown/not available";
+			redir_reas = "Unknown/not available";
 			break;
 		case 1:
 			redir_reas = "User busy";

Reply via email to