New wine port (20040213) fails to build with the following error - (see also this thread: http://www.freebsdforums.org/forums/showthread.php?s=&postid=104685#post104685): cd `dirname winmm/winealsa/__depend__` && make depend ./../../tools/makedep -I. -I. -I../../../include -I../../../include -C. audio. c audio_05.c alsa.c midi.c cd `dirname winmm/winearts/__depend__` && make depend ./../../tools/makedep -I. -I. -I../../../include -I../../../include -I/usr/loca l/include/artsc -D_THREAD_SAFE -I/usr/local/include/glib-2.0 -I/usr/local/lib/gl ib-2.0/include -C. arts.c audio.c Unknown option '-D_THREAD_SAFE' Usage: ../../../tools/makedep [options] [files] Options: -Idir Search for include files in directory 'dir' -Cdir Search for source files in directory 'dir' -fxxx Store output in file 'xxx' (default: Makefile) -sxxx Use 'xxx' as separator (default: "### Dependencies") *** Error code 1 Stop in /usr/ports/emulators/wine/work/wine-20040213/dlls/winmm/winearts. *** Error code 1 Stop in /usr/ports/emulators/wine/work/wine-20040213/dlls. *** Error code 1 Stop in /usr/ports/emulators/wine/work/wine-20040213. *** Error code 1 Stop in /usr/ports/emulators/wine. Fix: I'm sorry :( How-To-Repeat: Type make in /usr/ports/emulators/wine
Responsible Changed From-To: freebsd-ports-bugs->gerald Over to maintainer.
Responsible Changed From-To: gerald->kde This is not a Wine bug. Rather, something on your system improperly adds a -D... directive to the INCLUDE variable, and I believe its the arts port.
Responsible Changed From-To: kde->gerald This is a Wine bug after all. Wine uses the output of 'artsc-config --cflags' and expects it to exclusively contain -I statements (and possibly "-pthread", which it filters out via sed in configure).
Proposed fix (untested): --- configure.orig Tue Feb 17 14:52:33 2004 +++ configure Tue Feb 17 14:53:12 2004 @@ -11188,7 +11188,7 @@ if test x$ARTSCCONFIG != x -a x$ARTSCCONFIG != x'"$ARTSCCONFIG"'; then - ARTSC_CFLAGS=`$ARTSCCONFIG --cflags | sed 's/\-pthread//'` + ARTSC_CFLAGS=`$ARTSCCONFIG --cflags | sed -e 's/\-pthread//' -e 's/-D_THREAD_SAFE//'` ARTSC_LIBS=`$ARTSCCONFIG --libs` save_CFLAGS="$CFLAGS" CFLAGS="$CFLAGS $ARTSC_CFLAGS"
Thank you very much! It seems to work now :) ps: that was fast!
State Changed From-To: open->closed This should be fixed by an update to the emulators/wine port which I just committed.