Package: aqualung Severity: important Tags: patch Hi,
currently your package FTBFS on GNU/kFreeBSD with the following error: > if i486-kfreebsd-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.. > -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 > -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 > -I/usr/lib/glib-2.0/include -I/usr/include/freetype2 -I/usr/include/libpng12 > -pthread -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include > -I/usr/include/libxml2 -I/usr/include/taglib -O2 -Wall > -DAQUALUNG_SKINDIR=\"/usr/share/aqualung/skin\" > -DAQUALUNG_LOCALEDIR=\"/usr/share/locale\" > -DAQUALUNG_DATADIR=\"/usr/share/aqualung\" -D_GNU_SOURCE -MT core.o -MD -MP > -MF ".deps/core.Tpo" -c -o core.o core.c; \ > then mv -f ".deps/core.Tpo" ".deps/core.Po"; else rm -f > ".deps/core.Tpo"; exit 1; fi > core.c:54:29: error: linux/soundcard.h: No such file or directory > core.c: In function 'oss_init': > core.c:994: error: 'SOUND_PCM_WRITE_BITS' undeclared (first use in this > function) > core.c:994: error: (Each undeclared identifier is reported only once > core.c:994: error: for each function it appears in.) > core.c:1009: error: 'SOUND_PCM_WRITE_CHANNELS' undeclared (first use in this > function) > core.c:1024: error: 'SOUND_PCM_WRITE_RATE' undeclared (first use in this > function) > core.c: In function 'main': > core.c:2608: error: 'SNDCTL_DSP_RESET' undeclared (first use in this function) > make[4]: *** [core.o] Error 1 Full build logs are available at <http://experimental.ftbfs.de/build.php?arch=kfreebsd-i386&pkg=aqualung>. Please find attached a patch to fix this and make the build run fine on GNU/kFreeBSD, and which shouldn't harm Linux ones. Cheers, -- Cyril Brulebois
--- aqualung-0.9~beta6/src/core.c 2007-03-10 05:31:38.469223000 +0100 +++ aqualung-0.9~beta6/src/core.c 2007-03-10 05:32:00.000000000 +0100 @@ -48,7 +48,7 @@ #ifdef HAVE_OSS #include <sys/ioctl.h> #include <sys/types.h> -#ifdef __FreeBSD__ +#if defined(__FreeBSD__) || defined(__FreeBSD_kernel__) #include <sys/soundcard.h> #else #include <linux/soundcard.h>

