Source: sip-tester
Version: 1:3.5.1-2
Severity: important
Justification: Fails to build from source (but built in the past)
User: debian-al...@lists.debian.org
Usertags: ftbfs
Tags: patch

sip-tester FTBFS on Alpha due to the sipp_socklen_t being set to int
instead of socklen_t in the include/socket.hpp header file which
ultimately results in the following build failure [1]:

src/call.cpp: In member function 'char* 
call::createSendingMessage(SendingMessage*, int, char*, int, int*)':
src/call.cpp:2153:63: error: invalid conversion from 'int*' to 'socklen_t* {aka 
unsigned int*}' [-fpermissive]
                         (sockaddr *)(void *)&server_sockaddr, &len));

I attach a patch to fix this.

Cheers
Michael.

[1]
https://buildd.debian.org/status/fetch.php?pkg=sip-tester&arch=alpha&ver=1%3A3.5.1-2&stamp=1497567454&raw=0
Index: sip-tester-3.5.1/include/socket.hpp
===================================================================
--- sip-tester-3.5.1.orig/include/socket.hpp	2016-03-17 21:05:49.000000000 +1300
+++ sip-tester-3.5.1/include/socket.hpp	2018-06-22 21:20:31.931559588 +1200
@@ -132,7 +132,7 @@
 #define WS_BUFFER 2 /* Buffer the message if there is no room for writing the message. */
 
 
-#if defined (__hpux) || defined (__alpha) && !defined (__FreeBSD__)
+#if defined (__hpux) || (defined (__alpha) && !defined (__FreeBSD__) && !defined (__linux__))
 #define sipp_socklen_t  int
 #else
 #define sipp_socklen_t  socklen_t

Reply via email to