Package: qgo Version: 1.5.3-1 Severity: important Tags: patch Salut Cyril,
currently your package FTBFS on GNU/kFreeBSD with the following error: > i486-kfreebsd-gnu-g++ -fno-exceptions -fno-check-new -o qgo board.o > boardhandler.o gamedialog.o gamestable.o gametree.o group.o helpviewer.o > igsconnection.o imagehandler.o interfacehandler.o main.o maintable.o > mainwidget.o mainwin.o mainwindow.o mark.o matrix.o misc.o move.o > msg_handler.o noderesults.o parser.o playertable.o preferences.o qgo.o > qgo_interface.o qgtp.o qnewgamedlg.o setting.o sgfparser.o stone.o > stonehandler.o tables.o telnet.o textview.o tip.o tree.o wavfile.o wavplay.o > xmlparser.o searchpath.o clientwindow_gui.o gameinfo_gui.o gui_dialog.o > mainwidget_gui.o newgame_gui.o newlocalgame_gui.o noderesults_gui.o > normaltools_gui.o nthmove_gui.o preferences_gui.o qnewgamedlg_gui.o > scoretools_gui.o talk_gui.o textedit_gui.o textview_gui.o noderesults.moc.o > parser.moc.o mainwin.moc.o gamestable.moc.o qnewgamedlg.moc.o > mainwidget.moc.o maintable.moc.o tip.moc.o tables.moc.o gametree.moc.o > qgtp.moc.o helpviewer.moc.o gamedialog.moc.o igsconnection.moc.o board.moc.o > ma! inwindow.moc.o qgo_interface.moc.o playertable.moc.o telnet.moc.o preferences.moc.o qgo.moc.o searchpath.moc.o textview.moc.o -L/usr/lib -lresolv /usr/lib/libqt-mt.so -L/usr/X11R6/lib -lfontconfig -laudio -lXt /usr/lib/libjpeg.so -lXi -lXrender -lXrandr -lXcursor -lXinerama -lXft /usr/lib/libfreetype.so -lfontconfig -ldl -lpng -lz -lm -lXext -lX11 -lresolv -lSM -lICE -lpthread > qgo.o: In function `qGo::playClick()': > qgo.cpp:(.text+0x1ea): undefined reference to `play' > qgo.o: In function `qGo::playDisConnectSound()': > qgo.cpp:(.text+0x2a8): undefined reference to `play' > qgo.o: In function `qGo::playConnectSound()': > qgo.cpp:(.text+0x366): undefined reference to `play' > qgo.o: In function `qGo::playLeaveSound()': > qgo.cpp:(.text+0x424): undefined reference to `play' > qgo.o: In function `qGo::playEnterSound()': > qgo.cpp:(.text+0x4e2): undefined reference to `play' > qgo.o:qgo.cpp:(.text+0x5a0): more undefined references to `play' follow > collect2: ld returned 1 exit status > make[4]: *** [qgo] Error 1 Full build logs are available at <http://experimental.ftbfs.de/build.php?arch=kfreebsd-i386&pkg=qgo>. Please find attached a patch to fix this, based on the __GLIBC__ macro defined on the GNU/k*BSD platforms. You could also use __FreeBSD_kernel__, though it is less portable. Cheers, -- Cyril Brulebois
--- qgo-1.5.3/src/qgo.cpp 2007-03-16 15:07:14.083550000 +0100 +++ qgo-1.5.3/src/qgo.cpp 2007-03-16 15:09:47.000000000 +0100 @@ -304,7 +304,7 @@ { if (clickSound) //setting->readBoolEntry("SOUND_STONE") && clickSound) { //added eb 7 -#ifdef Q_OS_LINUX +#if defined(Q_OS_LINUX) || defined(__GLIBC__) if (!clickSound->isAvailable()) play(clickSound->fileName().latin1()); else @@ -317,7 +317,7 @@ { if (setting->readBoolEntry("SOUND_AUTOPLAY") && clickSound) { //added eb 7 -#ifdef Q_OS_LINUX +#if defined(Q_OS_LINUX) || defined(__GLIBC__) if (!clickSound->isAvailable()) play(clickSound->fileName().latin1()); else @@ -330,7 +330,7 @@ { if (setting->readBoolEntry("SOUND_TALK") && talkSound) { //added eb 7 -#ifdef Q_OS_LINUX +#if defined(Q_OS_LINUX) || defined(__GLIBC__) if (!talkSound->isAvailable()) play(talkSound->fileName().latin1()); else @@ -343,7 +343,7 @@ { if (setting->readBoolEntry("SOUND_MATCH") && matchSound) { //added eb 7 -#ifdef Q_OS_LINUX +#if defined(Q_OS_LINUX) || defined(__GLIBC__) if (!matchSound->isAvailable()) play(matchSound->fileName().latin1()); else @@ -356,7 +356,7 @@ { if (setting->readBoolEntry("SOUND_PASS") && passSound) { //added eb 7 -#ifdef Q_OS_LINUX +#if defined(Q_OS_LINUX) || defined(__GLIBC__) if (!passSound->isAvailable()) play(passSound->fileName().latin1()); else @@ -369,7 +369,7 @@ { if (setting->readBoolEntry("SOUND_GAMEEND") && gameEndSound) { //added eb 7 -#ifdef Q_OS_LINUX +#if defined(Q_OS_LINUX) || defined(__GLIBC__) if (!gameEndSound->isAvailable()) play(gameEndSound->fileName().latin1()); else @@ -382,7 +382,7 @@ { if (setting->readBoolEntry("SOUND_TIME") && timeSound) { //added eb 7 -#ifdef Q_OS_LINUX +#if defined(Q_OS_LINUX) || defined(__GLIBC__) if (!timeSound->isAvailable()) play(timeSound->fileName().latin1()); else @@ -395,7 +395,7 @@ { if (setting->readBoolEntry("SOUND_SAY") && saySound) { //added eb 7 -#ifdef Q_OS_LINUX +#if defined(Q_OS_LINUX) || defined(__GLIBC__) if (!saySound->isAvailable()) play(saySound->fileName().latin1()); else @@ -408,7 +408,7 @@ { if (setting->readBoolEntry("SOUND_ENTER") && enterSound) { //added eb 7 -#ifdef Q_OS_LINUX +#if defined(Q_OS_LINUX) || defined(__GLIBC__) if (!enterSound->isAvailable()) play(enterSound->fileName().latin1()); else @@ -421,7 +421,7 @@ { if (setting->readBoolEntry("SOUND_LEAVE") && leaveSound) { //added eb 7 -#ifdef Q_OS_LINUX +#if defined(Q_OS_LINUX) || defined(__GLIBC__) if (!leaveSound->isAvailable()) play(leaveSound->fileName().latin1()); else @@ -436,7 +436,7 @@ if (setting->readBoolEntry("SOUND_CONNECT") && connectSound) { //added eb 7 -#ifdef Q_OS_LINUX +#if defined(Q_OS_LINUX) || defined(__GLIBC__) if (!connectSound->isAvailable()) play(connectSound->fileName().latin1()); else @@ -449,7 +449,7 @@ { if (setting->readBoolEntry("SOUND_DISCONNECT") && connectSound) { //added eb 7 -#ifdef Q_OS_LINUX +#if defined(Q_OS_LINUX) || defined(__GLIBC__) if (!connectSound->isAvailable()) play(connectSound->fileName().latin1()); else --- qgo-1.5.3/src/qgo.h 2007-03-16 15:10:21.965539000 +0100 +++ qgo-1.5.3/src/qgo.h 2007-03-16 15:10:36.000000000 +0100 @@ -17,7 +17,7 @@ #include <qfiledialog.h> #endif -#ifdef Q_OS_LINUX +#if defined(Q_OS_LINUX) || defined(__GLIBC__) #include "wavplay.h" #endif --- qgo-1.5.3/src/wavfile.c 2007-03-16 15:12:28.494916000 +0100 +++ qgo-1.5.3/src/wavfile.c 2007-03-16 15:13:17.000000000 +0100 @@ -41,7 +41,7 @@ * wavplay project. */ -#ifdef __linux__ +#if defined(__linux__) || defined(__GLIBC__) static const char rcsid[] = "@(#)wavfile.c $Revision: 1.8 $"; @@ -60,8 +60,11 @@ #include <sys/ipc.h> #include <sys/ioctl.h> #include <assert.h> -#include <linux/soundcard.h> - +#if defined(__linux__) +# include <linux/soundcard.h> +#else +# include <sys/soundcard.h> +#endif --- qgo-1.5.3/src/wavplay.c 2007-03-16 15:12:28.570625000 +0100 +++ qgo-1.5.3/src/wavplay.c 2007-03-16 15:13:57.000000000 +0100 @@ -54,7 +54,7 @@ * */ -#ifdef __linux__ +#if defined(__linux__) || defined(__GLIBC__) static const char rcsid[] = "@(#)recplay.c $Revision: 1.8 $"; @@ -66,7 +66,11 @@ #include <fcntl.h> #include <errno.h> #include <sys/stat.h> -#include <linux/soundcard.h> +#if defined(__linux__) +# include <linux/soundcard.h> +#else +# include <sys/soundcard.h> +#endif #include "wavplay.h" /*/#include "server.h"*/