I'm guessing this is yet another case of yours truly shooting himself in
the foot, but I'm curious how many folks have had success compiling
multimedia/xine-lib from -current?
On i386 the build dies with:
cc -DHAVE_CONFIG_H -I. -I. -I../../include -I../.. -I../../include
-I../../include -I../../src -I../../src/xine-engine -I../../src/xine-engine
-I../../src/xine-utils -I../../src/input -I../../src/input -I../../lib
-I../../lib -DXINE_COMPILE -I/usr/local/include -D_REENTRANT
-D_FILE_OFFSET_BITS=64 -DXINE_COMPILE -Wformat=2 -Wno-format-zero-length
-Wmissing-format-attribute -Werror-implicit-function-declaration
-Wstrict-aliasing -O2 -pipe -DNDEBUG -MT
xineplug_ao_out_sun_la-audio_sun_out.lo -MD -MP -MF
.deps/xineplug_ao_out_sun_la-audio_sun_out.Tpo -c
audio_sun_out.c -fPIC -DPIC -o .libs/xineplug_ao_out_sun_la-audio_sun_out.o
audio_sun_out.c: In function `ao_sun_get_property':
audio_sun_out.c:815: error: structure has no member named `output_muted'
audio_sun_out.c: In function `ao_sun_set_property':
audio_sun_out.c:842: error: structure has no member named `output_muted'
gmake[2]: *** [xineplug_ao_out_sun_la-audio_sun_out.lo] Error 1
gmake[2]: Leaving directory
`/usr/ports/multimedia/xine-lib/w-xine-lib-1.1.8/xine-lib-1.1.8/src/audio_out'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory
`/usr/ports/multimedia/xine-lib/w-xine-lib-1.1.8/xine-lib-1.1.8/src'
gmake: *** [all-recursive] Error 1
*** Error code 2
By commenting out the '#define HAVE_AUDIO_INFO_T_OUTPUT_MUTED 1' added
by 'configure' I'm able to avoid the above compile error above and
things work peachy, but I'm unsure if this is the right way to go about
things?
My modified ./patches/patch-configure file is below.
******** patches/patch-configure ************
$OpenBSD: patch-configure,v 1.10 2007/10/31 10:55:37 jakemsr Exp $
--- configure.orig Mon Aug 27 11:28:18 2007
+++ configure Wed Nov 28 20:41:41 2007
@@ -24480,6 +24480,9 @@ _ACEOF
fi
done
+LIBICONV=$LTLIBICONV
+LIBINTL=$LTLIBINTL
+INTLLIBS=$LTLIBINTL
{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian"
>&5
@@ -30589,13 +30592,13 @@ t q
b
:q
q"
-x_lib_location="`ls -1 "${x_libraries:-/usr/local/lib}/libX11.so"*
"${x_libraries:-/usr/lib}/libX11.so"*
2>/dev/null | sed -e \"${soname_script}\"`"
+x_lib_location="`ls -1 "${x_libraries:-/usr/local/lib}/libX11.so"*
"${x_libraries:-/usr/lib}/libX11.so"*
2>/dev/null | sed 1q`"
cat >>confdefs.h <<_ACEOF
#define LIBX11_SO "${x_lib_location:-libX11.so}"
_ACEOF
-x_lib_location="`ls -1 "${x_libraries:-/usr/local/lib}/libXv.so"*
"${x_libraries:-/usr/lib}/libXv.so"*
2>/dev/null | sed -e \"${soname_script}\"`"
+x_lib_location="`ls -1 "${x_libraries:-/usr/local/lib}/libXv.so"*
"${x_libraries:-/usr/lib}/libXv.so"*
2>/dev/null | sed 1q`"
cat >>confdefs.h <<_ACEOF
#define LIBXV_SO "${x_lib_location:-libXv.so}"
@@ -37484,7 +37487,7 @@ fi
LIBFLAC_LIBS="-L$prefix/$XINE_LIBNAME"
fi
- LIBFLAC_LIBS="$LIBFLAC_LIBS -lFLAC -lm"
+ LIBFLAC_LIBS="$LIBFLAC_LIBS -lFLAC -logg -lm"
if test "x$libFLAC_includes" != "x" ; then
LIBFLAC_CFLAGS="-I$libFLAC_includes"
@@ -37735,7 +37738,7 @@ elif test "x$external_a52dec" = "xyes"; then
have_a52="yes"
-for ac_header in a52dec/a52.h a52dec/a52_internal.h
+for ac_header in a52dec/a52.h
do
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
@@ -37874,7 +37877,7 @@ if test $ac_cv_lib_a52_a52_init = yes; then
#define HAVE_LIBA52 1
_ACEOF
- LIBS="-la52 $LIBS"
+ LIBS="-la52 -lm $LIBS"
else
have_a52="no"
@@ -38452,7 +38455,7 @@ if test "${ac_cv_lib_mng_mng_initialize+set}" =
set; t
echo $ECHO_N "(cached) $ECHO_C" >&6
else
ac_check_lib_save_LIBS=$LIBS
-LIBS="-lmng $LIBS"
+LIBS="-lmng -llcms -ljpeg -lz -lm $LIBS"
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
@@ -38635,7 +38638,7 @@ echo "${ECHO_T}$ac_cv_header_libmng_h" >&6; }
fi
if test $ac_cv_header_libmng_h = yes; then
have_libmng=yes
- MNG_LIBS="-lmng"
+ MNG_LIBS="-lmng -llcms -ljpeg -lz -lm"
else
{ echo "$as_me:$LINENO: result: *** All libmng dependent parts will
be disabled ***" >&5
echo "${ECHO_T}*** All libmng dependent parts will be disabled ***"
>&6; }
@@ -40755,19 +40758,19 @@ rm -f core conftest.err conftest.$ac_objext
conftest.$
fi
{ echo "$as_me:$LINENO: result:
$ac_cv_member_audio_info_t_output_muted" >&5
echo "${ECHO_T}$ac_cv_member_audio_info_t_output_muted" >&6; }
-if test $ac_cv_member_audio_info_t_output_muted = yes; then
+#if test $ac_cv_member_audio_info_t_output_muted = yes; then
+#
+# cat >>confdefs.h <<_ACEOF
+# #define HAVE_AUDIO_INFO_T_OUTPUT_MUTED 1
+# _ACEOF
+#
+#
+#fi
-cat >>confdefs.h <<_ACEOF
-#define HAVE_AUDIO_INFO_T_OUTPUT_MUTED 1
-_ACEOF
-
-
fi
-fi
-
{ echo "$as_me:$LINENO: checking for IRIX libaudio support" >&5
echo $ECHO_N "checking for IRIX libaudio support... $ECHO_C" >&6; }
if test "${am_cv_have_irixal+set}" = set; then
@@ -49444,7 +49447,7 @@ cat >>confdefs.h <<_ACEOF
_ACEOF
CFLAGS="$CFLAGS -faltivec -maltivec"
-
LIBMPEG2_CFLAGS="$LIBMPEG2_CFLAGS -force_cpusubtype_ALL -faltivec -maltivec"
+ LIBMPEG2_CFLAGS="$LIBMPEG2_CFLAGS -faltivec -maltivec"
fi
;;
ppc-*-linux* | powerpc-*)
@@ -49912,7 +49915,7 @@ eval
XINE_SCRIPTPATH="$XINE_DATADIR/xine/scripts"
XINE_BUILD_CC="`$CC -v 2>&1 | tail -1 2>/dev/null`"
XINE_BUILD_OS="`uname -s -r -m`"
-XINE_BUILD_DATE="`date \"+%a %d %b %Y %T\"`"
+XINE_BUILD_DATE="`date "+%a %d %b %Y %T"`"
@@ -50744,7 +50747,7 @@ rm -f core conftest.err conftest.$ac_objext
conftest_i
{ echo "$as_me:$LINENO: result: $ac_cv_try_ldflags_ok" >&5
echo "${ECHO_T}$ac_cv_try_ldflags_ok" >&6; }
if test x"$ac_cv_try_ldflags_ok" = x"yes"; then
- NOUNDEF="-Wl,-z,defs"
+ : # NOUNDEF="-Wl,-z,defs"
else
:
fi