Package: amideco
Severity: normal
Tags: patch

Dear Maintainer,

amideco currently FTBFS with clang 3.1 (see the full build log at 
http://clang.debian.net/logs/2012-06-23/amideco_0.31e-3.1_unstable_clang.log). 
The following 2 patches fix this issue.

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
--- src/Makefile.orig	2012-09-04 02:17:36.335709989 +0200
+++ src/Makefile	2012-09-04 02:18:20.091711108 +0200
@@ -4,17 +4,18 @@
 #
 
 MAKE = make
+CC?=gcc
 
 all: amideco
 
 amideco: amifunc kernel
-	gcc amideco.c amifunc.o kernel.o -fpack-struct -o amideco
+	$(CC) amideco.c amifunc.o kernel.o -fpack-struct -o amideco
 
 amifunc:
-	gcc amifunc.c -c -o amifunc.o -fpack-struct
+	$(CC) amifunc.c -c -o amifunc.o -fpack-struct
 
 kernel:
-	gcc kernel.c -c -o kernel.o -fpack-struct
+	$(CC) kernel.c -c -o kernel.o -fpack-struct
 
 clean: 
 	rm -f *.o
--- amideco-0.31e.orig/src/amideco.c	2012-09-04 02:14:17.271704890 +0200
+++ amideco-0.31e/src/amideco.c	2012-09-04 02:21:39.327716212 +0200
@@ -42,7 +42,7 @@
 #include	"./amiver.h"
 #include	"./amihelp.h"
 
-int main(byte argc, byte *argv[])
+int main(int argc, char *argv[])
 	{
 
 		FILE *ptx, *pto;

Reply via email to