pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pkg/43640: multimedia/xine-lib fails to build on DragonFly x86_64



>Number:         43640
>Category:       pkg
>Synopsis:       multimedia/xine-lib fails to build on DragonFly x86_64
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Jul 18 22:25:00 +0000 2010
>Originator:     Tero Jääskö
>Release:        
>Organization:
>Environment:
DragonFly korento.muumilaakso 2.7-DEVELOPMENT DragonFly 
v2.7.3.321.g19327-DEVELOPMENT #28: Sat Jul 17 23:32:24 EEST 2010 
tero%korento.muumilaakso@localhost:/usr/obj/usr/src/sys/64_smp x86_64
>Description:
The multimedia/xine-lib fails to build on my DragonFly x86_64 system, build 
from recent master. The offending file is 
"work/xine-lib-1.1.18.1/src/libreal/real_common.h", specifically the weird weak 
alias definitions for environ and stderr. There seems to be similar trouble at 
FreeBSD's ports, see "http://www.freebsd.org/cgi/query-pr.cgi?pr=140917";.

Output of few last lines of a build:
---8<---8<---8<---8<---8<---8<---8<---8<---8<---8<---8<---8<
libtool: compile:  cc -DHAVE_CONFIG_H -I. -I../../include -I../.. -I../../src 
-I../../src/xine-engine -I../../src/xine-utils -I../../src/input -I../../lib 
-I/usr/pkgsrc/multimedia/xine-lib/work/.buildlink/include 
-I/usr/pkgsrc/multimedia/xine-lib/work/.buildlink/include/freetype2 -pthread 
-fvisibility=hidden -D_REENTRANT -D_FILE_OFFSET_BITS=64 -DXINE_COMPILE -O3 
-fomit-frame-pointer -fexpensive-optimizations -fschedule-insns2 -ffast-math 
-finline-functions -Wpointer-arith -Wall -Wchar-subscripts -Wnested-externs 
-Wcast-align -Wmissing-declarations -Wmissing-prototypes 
-Wmissing-format-attribute -Wno-pointer-sign -Wformat=2 -Wno-format-zero-length 
-Wstrict-aliasing=2 -DNDEBUG -MT xineplug_decode_real_la-real_common.lo -MD -MP 
-MF .deps/xineplug_decode_real_la-real_common.Tpo -c real_common.c  -fPIC -DPIC 
-o .libs/xineplug_decode_real_la-real_common.o
libtool: compile:  cc -DHAVE_CONFIG_H -I. -I../../include -I../.. -I../../src 
-I../../src/xine-engine -I../../src/xine-utils -I../../src/input -I../../lib 
-I/usr/pkgsrc/multimedia/xine-lib/work/.buildlink/include 
-I/usr/pkgsrc/multimedia/xine-lib/work/.buildlink/include/freetype2 -pthread 
-fvisibility=hidden -D_REENTRANT -D_FILE_OFFSET_BITS=64 -DXINE_COMPILE -O3 
-fomit-frame-pointer -fexpensive-optimizations -fschedule-insns2 -ffast-math 
-finline-functions -Wpointer-arith -Wall -Wchar-subscripts -Wnested-externs 
-Wcast-align -Wmissing-declarations -Wmissing-prototypes 
-Wmissing-format-attribute -Wno-pointer-sign -Wformat=2 -Wno-format-zero-length 
-Wstrict-aliasing=2 -DNDEBUG -MT 
xineplug_decode_real_la-xine_real_video_decoder.lo -MD -MP -MF 
.deps/xineplug_decode_real_la-xine_real_video_decoder.Tpo -c 
xine_real_video_decoder.c  -fPIC -DPIC -o 
.libs/xineplug_decode_real_la-xine_real_video_decoder.o
libtool: compile:  cc -DHAVE_CONFIG_H -I. -I../../include -I../.. -I../../src 
-I../../src/xine-engine -I../../src/xine-utils -I../../src/input -I../../lib 
-I/usr/pkgsrc/multimedia/xine-lib/work/.buildlink/include 
-I/usr/pkgsrc/multimedia/xine-lib/work/.buildlink/include/freetype2 -pthread 
-fvisibility=hidden -D_REENTRANT -D_FILE_OFFSET_BITS=64 -DXINE_COMPILE -O3 
-fomit-frame-pointer -fexpensive-optimizations -fschedule-insns2 -ffast-math 
-finline-functions -Wpointer-arith -Wall -Wchar-subscripts -Wnested-externs 
-Wcast-align -Wmissing-declarations -Wmissing-prototypes 
-Wmissing-format-attribute -Wno-pointer-sign -Wformat=2 -Wno-format-zero-length 
-Wstrict-aliasing=2 -DNDEBUG -MT 
xineplug_decode_real_la-xine_real_audio_decoder.lo -MD -MP -MF 
.deps/xineplug_decode_real_la-xine_real_audio_decoder.Tpo -c 
xine_real_audio_decoder.c  -fPIC -DPIC -o 
.libs/xineplug_decode_real_la-xine_real_audio_decoder.o
In file included from real_common.c:35:
real_common.h:49: error: '__environ' defined both normally and as an alias
real_common.h:59: error: 'stderr' defined both normally and as an alias
gmake[2]: *** [xineplug_decode_real_la-real_common.lo] Error 1
gmake[2]: *** Waiting for unfinished jobs....
In file included from xine_real_audio_decoder.c:50:
real_common.h:49: error: '__environ' defined both normally and as an alias
real_common.h:59: error: 'stderr' defined both normally and as an alias
In file included from xine_real_video_decoder.c:49:
real_common.h:49: error: '__environ' defined both normally and as an alias
real_common.h:59: error: 'stderr' defined both normally and as an alias
gmake[2]: *** [xineplug_decode_real_la-xine_real_audio_decoder.lo] Error 1
gmake[2]: *** [xineplug_decode_real_la-xine_real_video_decoder.lo] Error 1
gmake[2]: Leaving directory 
`/usr/pkgsrc/multimedia/xine-lib/work/xine-lib-1.1.18.1/src/libreal'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory 
`/usr/pkgsrc/multimedia/xine-lib/work/xine-lib-1.1.18.1/src'
gmake: *** [all-recursive] Error 1
*** Error code 2

Stop.
bmake: stopped in /usr/pkgsrc/multimedia/xine-lib
*** Error code 1

Stop.
bmake: stopped in /usr/pkgsrc/multimedia/xine-lib
---8<---8<---8<---8<---8<---8<---8<---8<---8<---8<---8<---8<
>How-To-Repeat:
cd multimedia/xine-lib
bmake
>Fix:
A lazy band aid for the problem is to disable the Real codec support, which 
makes the rest of code and a few other packages work. With the following patch, 
the xine-lib compiles and seems to be able to decode the few videos on xine-ui 
-client I tested. 

I hope somebody could come up with a better solution:)

---8<---8<---8<---8<---8<---8<---8<---8<---8<---8<---8<---8<
diff --git a/multimedia/xine-lib/Makefile b/multimedia/xine-lib/Makefile
index 0573ca6..3cc8fc1 100644
--- a/multimedia/xine-lib/Makefile
+++ b/multimedia/xine-lib/Makefile
@@ -10,6 +10,11 @@ COMMENT=             Multimedia player library
 
 CONFIGURE_ARGS+=       --disable-v4l
 
+# the Real codec support fails to build on a DragonFly-x86_64
+.if ${OPSYS} == "DragonFly" && ${MACHINE_ARCH} == "x86_64"
+CONFIGURE_ARGS+=       --disable-real-codecs
+.endif
+
 BUILDLINK_API_DEPENDS.vcdimager+= vcdimager>=0.7.20nb1
 
 SUBST_CLASSES+=                oss
---8<---8<---8<---8<---8<---8<---8<---8<---8<---8<---8<---8<



Home | Main Index | Thread Index | Old Index