Package: vsound Severity: important Tags: patch On GNU/kFreeBSD, including <sys/soundcard.h> automaticaly drags in <sys/ioctl.h>, and so the standard ioctl() declaration, which conflicts with the hacked ioctl() vsound provides.
The attached patch should fix the problem using pre-processor hacks. Also, a libtool update is needed. Please see #242950 for details. Could you notify upstream on both of these issues? Thanks! -- System Information: Debian Release: testing/unstable Architecture: kfreebsd-i386 (i686) Shell: /bin/sh linked to /bin/bash Kernel: GNU/kFreeBSD 5.3-1 Locale: LANG=en_US, LC_CTYPE=en_US (charmap=ANSI_X3.4-1968) (ignored: LC_ALL set to C)
diff -ur vsound-0.6.old/vsound.c vsound-0.6/vsound.c --- vsound-0.6.old/vsound.c 2004-07-10 23:29:33.000000000 +0200 +++ vsound-0.6/vsound.c 2005-09-07 13:28:03.000000000 +0200 @@ -46,6 +46,8 @@ #include "config.h" #endif +/* Hack to avoid ioctl() declaration */ +#define ioctl __dummy_ioctl #ifdef HAVE_MACHINE_SOUNDCARD_H #include <machine/soundcard.h> #else @@ -55,6 +57,7 @@ #include <sys/soundcard.h> #endif #endif +#undef ioctl /* It seems that Debian Woody (and possibly others) do not define RTLD_NEXT. */ #include <dlfcn.h>