Package: digitaldj Severity: important Tags: patch Hi,
currently your package FTBFS on GNU/kFreeBSD with the following error: > i486-kfreebsd-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I/usr/include > `gtk-config --cflags` `gnome-config --cflags gdk_pixbuf` -I/usr/include/mysql > -DAUXDIR=\"/usr/share/digitaldj\" -g -O2 -c `test -f 'ddj.c' || echo > './'`ddj.c > In file included from ddj.c:46: > mixer.h:5:29: error: linux/soundcard.h: No such file or directory > make[3]: *** [ddj.o] Error 1 > make[3]: Leaving directory `/build/buildd/digitaldj-0.7.5/src' > make[2]: *** [all-recursive] Error 1 > make[2]: Leaving directory `/build/buildd/digitaldj-0.7.5' > make[1]: *** [all] Error 2 > make[1]: Leaving directory `/build/buildd/digitaldj-0.7.5' > make: *** [build-stamp] Error 2 Full build logs are available at <http://experimental.ftbfs.de/build.php?arch=kfreebsd-i386&pkg=digitaldj>. Please find attached a patch to fix this. I also checked that the build on Linux wasn't broken when it is applied. Cheers, -- Cyril Brulebois
--- digitaldj-0.7.5/src/ddj.c 2007-03-08 01:34:11.827822000 +0100 +++ digitaldj-0.7.5/src/ddj.c 2007-03-08 01:36:49.000000000 +0100 @@ -64,6 +64,11 @@ #include "lirc.h" #endif +/* Needed because of the use of CLK_TCK */ +#ifndef CLK_TCK +#define CLK_TCK CLOCKS_PER_SEC +#endif + static void ShutDown(GtkWidget *widget, GdkEvent *event, gpointer data); void Debug(char *fmt,...); static void IncVolume(void); --- digitaldj-0.7.5/src/mixer.h 2007-03-08 01:34:11.901525000 +0100 +++ digitaldj-0.7.5/src/mixer.h 2007-03-08 01:38:39.000000000 +0100 @@ -1,5 +1,11 @@ -/* hack for now */ +/* hack for now, but less than before + * Notice: beware of the ifdef/if mess below... + */ +#if (defined __linux__) #define HAVE_LINUX_SOUNDCARD_H +#elif (defined __FreeBSD_kernel__) +#define HAVE_SYS_SOUNDCARD_H 1 +#endif #ifdef HAVE_LINUX_SOUNDCARD_H #include <linux/soundcard.h>