Subject: Re: xine-arts buld failure
To: Owen Becker <owen@safeasmilk.net>
From: Julio M. Merino Vidal <jmmv84@gmail.com>
List: tech-pkg
Date: 03/27/2005 22:46:44
--=-5VPf5kjO8B6wVQJ257OK
Content-Type: text/plain
Content-Transfer-Encoding: 7bit

On Sun, 2005-03-27 at 14:36 -0500, Owen Becker wrote:
> Currently running NetBSD-2.0 amd64. Make install in xine-arts results in:
> 
> checking if cc supports "-Wall" flags... yes
> checking __attribute__ ((aligned ())) support... 64
> checking for sgmltools... no
> checking for fig2dev... no
> checking dependency style of ... none
> configure: error: conditional "HAVE_XV" was never defined.
> Usually this means the macro was only invoked conditionally.
> *** Error code 1

First of all, I guess you don't have /usr/X11R6/lib/libXv.so, right?

Anyway, try the attached patch; it should fix your problems.  However,
if the answer to the above question is that you actually have the file,
this fix is not completely correct (because it will be hiding another
problem).

Let me know what happens,

-- 
Julio M. Merino Vidal <jmmv84@gmail.com>
http://www.livejournal.com/users/jmmv/
The NetBSD Project - http://www.NetBSD.org/

--=-5VPf5kjO8B6wVQJ257OK
Content-Disposition: attachment; filename=patch.diff
Content-Type: text/x-patch; name=patch.diff; charset=utf-8
Content-Transfer-Encoding: 7bit

Index: distinfo
===================================================================
RCS file: /cvsroot/pkgsrc/multimedia/xine-lib/distinfo,v
retrieving revision 1.14
diff -u -u -r1.14 distinfo
--- distinfo	24 Feb 2005 11:24:05 -0000	1.14
+++ distinfo	27 Mar 2005 20:43:42 -0000
@@ -8,7 +8,7 @@
 SHA1 (patch-ac) = 7959d6d3599c9debe79b1b4a5749b6af714588a0
 SHA1 (patch-ad) = 94aaac03f74c72a1ca753d1320aac07d1bb8a846
 SHA1 (patch-ae) = cf7486ed50a782fcfb17ad0985e76a7ae09a2938
-SHA1 (patch-ag) = 1a439f8025c07d183f054fea77a70ef86ff59217
+SHA1 (patch-ag) = 7be1e3d83e3757cf955523245be2deb4cea12998
 SHA1 (patch-ah) = 3f9b23c4a7994259056b73209a9e194db759f06d
 SHA1 (patch-ai) = f71e3cb57bf30cbf9653a469c040b6e3f717ba97
 SHA1 (patch-am) = 10f6433a8549bdce60ace5dcbd51df85eaa7ea16
@@ -23,3 +23,4 @@
 SHA1 (patch-bb) = 40978e50dcb060a2b8314b310a68684e62e90bc2
 SHA1 (patch-bd) = 5352293022da25b08598d42655af2524ff99b28a
 SHA1 (patch-be) = de3f7fe1f595ef5696379b183b661197745971a2
+SHA1 (patch-bf) = ea84b3c64dbec8f0559127f9fa28e4afa3e5dc14
Index: patches/patch-ag
===================================================================
RCS file: /cvsroot/pkgsrc/multimedia/xine-lib/patches/patch-ag,v
retrieving revision 1.6
diff -u -u -r1.6 patch-ag
--- patches/patch-ag	23 Dec 2004 03:05:53 -0000	1.6
+++ patches/patch-ag	27 Mar 2005 20:43:42 -0000
@@ -1,8 +1,8 @@
 $NetBSD: patch-ag,v 1.6 2004/12/23 03:05:53 xtraeme Exp $
 
---- configure.ac.orig	2004-12-14 23:06:47.000000000 +0100
-+++ configure.ac	2004-12-23 02:02:47.000000000 +0100
-@@ -395,6 +395,9 @@
+--- configure.ac.orig	2004-12-25 18:40:24.000000000 +0100
++++ configure.ac
+@@ -400,6 +400,9 @@ AC_CHECK_LIB(socket, socket, NET_LIBS="-
  AC_CHECK_LIB(nsl, gethostbyname, NET_LIBS="-lnsl $NET_LIBS",)
  AC_SUBST(NET_LIBS)
  
@@ -12,7 +12,15 @@
  
  dnl ---------------------------------------------
  dnl socklen_t
-@@ -571,7 +574,7 @@
+@@ -514,6 +517,7 @@ if test x"$no_x" != "xyes"; then
+   AC_FIND_LIBXV
+ 
+ fi
++AM_CONDITIONAL(HAVE_XV, test x$ac_have_xv = "xyes")
+ 
+ 
+ host_or_hostalias="$host"
+@@ -576,7 +580,7 @@ XXMC_LIB="-L$xxmc_path -l$xxmc_stub"
  AC_MSG_CHECKING(whether to enable the xxmc plugin with vld extensions)
  AC_MSG_RESULT()
  dnl Check if vld "extended" XvMC is available
@@ -21,7 +29,7 @@
  	AC_CHECK_LIB($xxmc_stub, XvMCPutSlice,
               	     ac_have_xxmc="yes",
  	             [ac_have_xxmc="no"
-@@ -600,7 +603,7 @@
+@@ -605,7 +609,7 @@ if test x$ac_have_xxmc = "xyes"; then
  fi
  dnl Try fallback to standard XvMC if vld failed
  if test x$ac_have_xxmc = "xno"; then
@@ -30,7 +38,7 @@
  	  AC_CHECK_LIB($xxmc_stub, XvMCCreateContext,
                 ac_have_xxmc="yes",
  	       [ac_have_xxmc="no"
-@@ -654,7 +657,7 @@
+@@ -659,7 +663,7 @@ saved_libs="$LIBS"
  XVMC_LIB="-L$xvmc_path -l$xvmc_stub"
  AC_MSG_CHECKING(whether to enable the xvmc plugin)
  AC_MSG_RESULT()
@@ -39,7 +47,7 @@
  	AC_CHECK_LIB($xvmc_stub, XvMCCreateContext,
               ac_have_xvmc="yes",
  	     [ac_have_xvmc="no"
-@@ -694,8 +697,7 @@
+@@ -699,8 +703,7 @@ dnl Checks for Xinerama extension
  dnl ---------------------------------------------
  
  AC_CHECK_LIB(Xinerama, XineramaQueryExtension, 
@@ -49,7 +57,7 @@
                ac_have_xinerama="yes"],,
               [$X_LIBS $X_PRE_LIBS -lXext $X_EXTRA_LIBS])
  dnl AM_CONDITIONAL(HAVE_XINERAMA, test x$ac_have_xinerama = "xyes")
-@@ -1068,9 +1070,19 @@
+@@ -1073,9 +1076,19 @@ dnl ------------------------------------
  dnl OSS style audio interface
  dnl ---------------------------------------------
  
@@ -69,7 +77,7 @@
  	    #ifdef __NetBSD__
  	    #include <soundcard.h>
  	    #else
-@@ -1083,7 +1095,7 @@
+@@ -1088,7 +1101,7 @@ AC_TRY_COMPILE([
  	])
  AC_MSG_RESULT($have_ossaudio)
  AM_CONDITIONAL(HAVE_OSS, test x"$have_ossaudio" = "xyes")
@@ -78,7 +86,7 @@
  
  dnl ---------------------------------------------
  dnl Alsa support
-@@ -1124,9 +1136,10 @@
+@@ -1129,9 +1142,10 @@ dnl ------------------------------------
  dnl gnome-vfs support
  dnl ---------------------------------------------
  
FILE ADDED TO REPOSITORY: patches/patch-bf
--- /dev/null	2005-03-27 22:43:01.000000000 +0200
+++ patches/patch-bf	2005-03-27 22:42:51.000000000 +0200
@@ -0,0 +1,13 @@
+$NetBSD$
+
+--- m4/xv.m4.orig	2004-12-13 22:35:21.000000000 +0100
++++ m4/xv.m4
+@@ -43,8 +43,6 @@ AC_DEFUN([AC_TEST_LIBXV],
+      ,
+   [$X_LIBS $X_PRE_LIBS -lXext $X_EXTRA_LIBS])
+ 
+-  AM_CONDITIONAL(HAVE_XV, test x$ac_have_xv = "xyes")
+-
+   dnl -----------------------------------------------
+   dnl xine_check use Xv functions API.
+   dnl -----------------------------------------------

--=-5VPf5kjO8B6wVQJ257OK--