Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 27 Feb 2007 12:12:48 +0100 (CET)
From:      Gerald Pfeifer <gerald@pfeifer.com>
To:        Rene Ladan <r.c.ladan@gmail.com>
Cc:        x11@freebsd.org
Subject:   Re: wine 0.9.31 build failure on X.org 7.2
Message-ID:  <Pine.LNX.4.64.0702270139270.5470@acrux.dbai.tuwien.ac.at>
In-Reply-To: <45E31555.40708@gmail.com>
References:  <45DC7FB9.4040007@gmail.com> <45DC8BE8.30503@FreeBSD.org> <Pine.LNX.4.64.0702242006031.20551@acrux.dbai.tuwien.ac.at> <45E173BD.5060302@gmail.com> <Pine.LNX.4.64.0702252318560.3402@acrux.dbai.tuwien.ac.at> <45E31555.40708@gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, 26 Feb 2007, Rene Ladan wrote:
> I tried building wine from todays cvs but it fails at the same point.
> 
> Adding -lXau to the EXTRALIBS= line in wine/dlls/winenas.drv/Makefile
> provides a quick fix.  The build then completes successfully.

Would you mind giving the patch below a try?  Apply this to the top-level
configure.ac file in the Wine source tree, then run `autoconf261` and then
try building Wine again.

It did survive a test build on FreeBSD 5.x with an older version of X.

If it works for you, I'll submit it upstraem.  Autoconf is not my home 
ground at all...

Gerald

Index: configure.ac
===================================================================
RCS file: /home/wine/wine/configure.ac,v
retrieving revision 1.614
diff -u -3 -p -r1.614 configure.ac
--- configure.ac	23 Feb 2007 11:30:08 -0000	1.614
+++ configure.ac	27 Feb 2007 00:37:30 -0000
@@ -459,7 +459,10 @@ then
          [AC_CHECK_HEADERS(audio/soundlib.h,,,[#include <audio/audiolib.h>])
           AC_CHECK_LIB(audio,AuCreateFlow,
                        [AC_DEFINE(HAVE_NAS,1,[Define if you have NAS including devel headers])
-                        NASLIBS="-laudio -lXt $X_LIBS -lXext -lX11 $X_EXTRA_LIBS"],,
+                        AC_CHECK_LIB(Xau,XauGetBestAuthByAddr,
+                          [NASLIBS="-lXau -laudio -lXt $X_LIBS -lXext -lX11 $X_EXTRA_LIBS"],
+                          [NASLIBS="-laudio -lXt $X_LIBS -lXext -lX11 $X_EXTRA_LIBS"])
+                       ],,
                        [-lXt $X_LIBS -lXext -lX11 $X_EXTRA_LIBS])])
 
     CPPFLAGS="$ac_save_CPPFLAGS"



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.LNX.4.64.0702270139270.5470>