Package: dmucs
Version: 0.6.1-2
Severity: important
Tags: patch

Hi, 

I had the same problem in sh4.
This problem is caused by the fact that program doesn't 
use va_list.
I created a patch to revise.

Please check and apply.

Best regards,
 Nobuhiro

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

Kernel: Linux 2.6.29-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=ja_JP.UTF-8, LC_CTYPE=ja_JP.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
#! /bin/sh /usr/share/dpatch/dpatch-run
## 00_build_fail.dpatch by Nobuhiro Iwamatsu <[email protected]>
##
## DP: FTBFS : incompatible type for argument 3 of 'vsprintf'

@DPATCH@
diff -urNad dmucs-0.6.1~/COSMIC/HDR/sockets.h dmucs-0.6.1/COSMIC/HDR/sockets.h
--- dmucs-0.6.1~/COSMIC/HDR/sockets.h	2009-08-17 13:27:29.000000000 +0900
+++ dmucs-0.6.1/COSMIC/HDR/sockets.h	2009-08-17 15:24:06.000000000 +0900
@@ -437,7 +437,7 @@
 int Sscanf(Socket *,char *,...);                                                                                    /* Sscanf.c        */
 int Stest(Socket *);                                                                                                /* Stest.c         */
 int Stimeoutwait(Socket *,long,long);                                                                               /* Stimeoutwait.c  */
-int Svprintf( Socket *, char *, void *);                                                                            /* Svprintf.c      */
+int Svprintf( Socket *, char *, va_list);                                                                            /* Svprintf.c      */
 int Swait(Socket *);                                                                                                /* Swait.c         */
 int Swrite( Socket *,  const void *,  int);                                                                               /* Swrite.c        */
 #else
diff -urNad dmucs-0.6.1~/COSMIC/Svprintf.c dmucs-0.6.1/COSMIC/Svprintf.c
--- dmucs-0.6.1~/COSMIC/Svprintf.c	2009-08-17 14:56:53.000000000 +0900
+++ dmucs-0.6.1/COSMIC/Svprintf.c	2009-08-17 15:23:04.000000000 +0900
@@ -33,12 +33,12 @@
 int Svprintf(
   Socket *skt,
   char   *fmt,
-  void   *args)
+  va_list args)
 #else
 int Svprintf(skt,fmt,args)
 Socket *skt;
 char   *fmt;
-void   *args;
+va_list args;
 #endif
 {
 int         ret;
@@ -53,7 +53,7 @@
 #ifdef AS400
 ret= vsprintf(buf,fmt,__va_list args);
 #else
-ret= vsprintf(buf,fmt,(void*) args);
+ret= vsprintf(buf,fmt,args);
 #endif
 Swrite(skt,buf,strlen(buf)+1);	/* send the null byte, too */
 

Reply via email to