From nobody@FreeBSD.org  Tue Feb 17 03:27:42 2004
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 885C616A4CE
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 17 Feb 2004 03:27:42 -0800 (PST)
Received: from www.freebsd.org (www.freebsd.org [216.136.204.117])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 8508C43D1F
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 17 Feb 2004 03:27:42 -0800 (PST)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.12.10/8.12.10) with ESMTP id i1HBRg72037431
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 17 Feb 2004 03:27:42 -0800 (PST)
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.12.10/8.12.10/Submit) id i1HBRfXL037430;
	Tue, 17 Feb 2004 03:27:42 -0800 (PST)
	(envelope-from nobody)
Message-Id: <200402171127.i1HBRfXL037430@www.freebsd.org>
Date: Tue, 17 Feb 2004 03:27:42 -0800 (PST)
From: Csaba Molnar <molnarcs@message.hu>
To: freebsd-gnats-submit@FreeBSD.org
Subject: New wine port fails to build
X-Send-Pr-Version: www-2.3

>Number:         62954
>Category:       ports
>Synopsis:       arts breaks emulators/wine
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    gerald
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Feb 17 03:30:19 PST 2004
>Closed-Date:    Mon Feb 23 14:40:34 PST 2004
>Last-Modified:  Mon Feb 23 14:40:34 PST 2004
>Originator:     Csaba Molnar
>Release:        5.2-RELEASE-p2
>Organization:
>Environment:
FreeBSD smokie.unideb.hu 5.2-RELEASE-p2 FreeBSD 5.2-RELEASE-p2 #0: Tue Feb 10 11:47:52 CET 2004     root@smokie.unideb.hu:/usr/obj/usr/src/sys/smokie  i386
>Description:
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.


>How-To-Repeat:
Type make in /usr/ports/emulators/wine      
>Fix:
I'm sorry :(
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->gerald  
Responsible-Changed-By: krion 
Responsible-Changed-When: Tue Feb 17 04:45:05 PST 2004 
Responsible-Changed-Why:  
Over to maintainer. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=62954 
Responsible-Changed-From-To: gerald->kde  
Responsible-Changed-By: gerald 
Responsible-Changed-When: Tue Feb 17 04:58:16 PST 2004 
Responsible-Changed-Why:  
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. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=62954 
Responsible-Changed-From-To: kde->gerald 
Responsible-Changed-By: lofi 
Responsible-Changed-When: Tue Feb 17 05:42:49 PST 2004 
Responsible-Changed-Why:  
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). 

http://www.freebsd.org/cgi/query-pr.cgi?pr=62954 

From: Michael Nottebrock <michaelnottebrock@gmx.net>
To: freebsd-gnats-submit@FreeBSD.org, molnarcs@message.hu
Cc:  
Subject: Re: ports/62954: arts breaks emulators/wine
Date: Tue, 17 Feb 2004 14:55:15 +0100

 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"
 

From: =?iso-8859-2?Q?Moln=E1r_Csaba?= <molnarcs@message.hu>
To: freebsd-gnats-submit@FreeBSD.org, molnarcs@message.hu
Cc:  
Subject: Re: ports/62954: arts breaks emulators/wine
Date: Tue, 17 Feb 2004 17:11:59 +0100 (CET)

 Thank you very much! It seems to work now :) 
 ps: that was fast! 
State-Changed-From-To: open->closed 
State-Changed-By: gerald 
State-Changed-When: Mon Feb 23 14:40:00 PST 2004 
State-Changed-Why:  
This should be fixed by an update to the emulators/wine port which I just 
committed. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=62954 
>Unformatted:
