[MPlayer-users] Release 1.1 first packaging attempt
Raimund Steger
rs at mytum.de
Fri May 18 18:19:45 CEST 2012
On Fri, May 18, 2012 16:21, Reimar Döffinger wrote:
> On Fri, May 18, 2012 at 03:50:47PM +0200, Raimund Steger wrote:
>> > I presume the ldflags are only necessary to get X11 support, it
>> > will compile without?
>> > And in that case, shouldn't --extra-ldflags="-lrt" work just as well?
>>
>> I've found that the additional '-lX11' is necessary to compile the gl vo
>> if the x11 vo isn't enabled. This configuration is the default (without
>> any special configure arguments) on my Solaris 10 machines.
>
> Hm, I believe what should happen in that case is that the gl vo is
> compiled against SDL only?
> But in that case -lX11 should not be necessary.
> Can you give some more details on what goes wrong with OpenGL in that
> case?
Interestingly, ./configure does seem to enable x11 *and* sdl backends for
gl even if x11 was not found to work. This probably means that the OpenGL
test works individually and doesn't hit the problematic Xutil.h or
XShmGetEventBase code paths.
An excerpt from the ./configure output (full output at the end of the mail):
[...]
Checking for X11 headers presence ... yes (using /usr/openwin/include)
Checking for X11 ... no (check if the dev(el) packages are installed)
[...]
Checking for SDL ... yes (using sdl-config)
Checking for OpenGL ... yes (backends: x11 sdl)
[...]
Then later, when linking mplayer, ld bails out with
[...]
Undefined first referenced
symbol in file
XUnmapWindow libvo/x11_common.o (symbol belongs to
implicit dependency /usr/openwin/lib/libX11.so.4)
XMoveResizeWindow libvo/x11_common.o (symbol belongs to
implicit dependency /usr/openwin/lib/libX11.so.4)
XGetWindowAttributes libvo/gl_common.o (symbol belongs to
implicit dependency /usr/openwin/lib/libX11.so.4)
XFree libvo/gl_common.o (symbol belongs to
implicit dependency /usr/openwin/lib/libX11.so.4)
[...]
If I comment out the line that sets _gl_x11=yes in ./configure, the build
works with SDL-only as you suggest and the linker error doesn't occur.
>> (1) use 'statement_check_broken X11/Xlib.h'... instead of
>> 'statement_check'... in ./configure, line 4270 (in the
>> version from the 1.1 tarball)
>
> Curious, but should not be an issue to change.
The appropriate #include seems to have been merged into XFree86 long ago:
http://cvsweb.xfree86.org/cvsweb/xc/lib/X11/Xutil.h.diff?r1=3.2&r2=3.3
>> (2) add a declaration like:
>>
>> extern Status XShmGetEventBase(Display *display);
>>
>> to libvo/vo_x11.c, around l. 42.
>
> There no X header that provides that function declaration?
> Seems strange to have it in the libs but not in any header...
This seems to have been a problem in older XFree86 as well, I've found the
following old Debian bug:
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=37039
In XFree86 this was apparently fixed twice: :-)
http://cvsweb.xfree86.org/cvsweb/xc/include/extensions/XShm.h.diff?r1=1.8&r2=1.9
http://cvsweb.xfree86.org/cvsweb/xc/include/extensions/XShm.h.diff?r1=1.5&r2=1.6
...one of which was subsequently reverted.
Xorg incorporated these changes, but Sun only did it for Nevada/Solaris 11.
> [...]
> Could you test the attached patch?
Works for me -- thanks!
Raimund
PS: Here's the configure output mentioned above:
----8<------------
wlm2s092:MPlayer-1.1-orig>./configure \
--cc=gcc --extra-ldflags='-lrt'
Checking for gcc version ... 4.5.2
Checking for working compiler ... yes
Detected operating system: SunOS
Detected host architecture: sparc
Checking for cross compilation ... no
Checking for host cc ... gcc
Checking for CPU type ... ultrasparc
Checking for byte order ... big-endian
Checking for extern symbol prefix ...
Checking for assembler support of -pipe option ... yes
Checking for PIC ... no
Checking for langinfo ... yes
Checking for language ... messages: en - man pages: en - documentation: en
Checking for enable sighandler ... yes
Checking for runtime cpudetection ... no
Checking for restrict keyword ... restrict
Checking for __builtin_expect ... yes
Checking for kstat ... yes
Checking for cbrtf ... yes
Checking for exp2 ... yes
Checking for exp2f ... yes
Checking for llrint ... yes
Checking for llrintf ... yes
Checking for log2 ... yes
Checking for log2f ... yes
Checking for lrint ... yes
Checking for lrintf ... yes
Checking for round ... yes
Checking for roundf ... yes
Checking for trunc ... yes
Checking for truncf ... yes
Checking for mkstemp ... yes
Checking for nanosleep ... yes
Checking for socklib ... yes (using -lsocket -lnsl)
Checking for netdb.h, struct addrinfo ... yes
Checking for netdb.h, getaddrinfo() ... no
Checking for sockaddr_storage ... yes
Checking for struct ipv6_mreq ... yes
Checking for struct sockaddr_in6 ... yes
Checking for struct sockaddr sa_len ... no
Checking for arpa/inet.h ... yes
Checking for inet_pton() ... yes (using -lsocket -lnsl)
Checking for inet_aton() ... yes (using -lsocket -lnsl)
Checking for socklen_t ... yes
Checking for closesocket() ... no
Checking for networking ... yes
Checking for inet6 ... yes
Checking for gethostbyname2 ... no
Checking for sys/poll.h ... yes
Checking for inttypes.h (required) ... yes
Checking for int_fastXY_t in inttypes.h ... yes
Checking for malloc.h ... yes
Checking for memalign() ... no
Checking for posix_memalign() ... no
Checking for alloca.h ... yes
Checking for fastmemcpy ... yes
Checking for hard-coded tables ... no
Checking for mman.h ... yes
Checking for dynamic loader ... yes
Checking for dynamic a/v plugins support ... no
Checking for pthread ... yes
Checking for rpath ... no
Checking for iconv ... yes
Checking for soundcard.h ... no
Checking for sys/dvdio.h ... no
Checking for sys/cdio.h ... yes
Checking for linux/cdrom.h ... no
Checking for dvd.h ... no
Checking for userspace SCSI headers (Solaris) ... yes
Checking for termcap ... no
Checking for termios ... yes (using termios.h)
Checking for shm ... yes
Checking for strsep() ... no
Checking for vsscanf() ... yes
Checking for POSIX select() ... yes
Checking for audio select() ... yes
Checking for gettimeofday() ... yes
Checking for glob() ... yes
Checking for setenv() ... yes
Checking for setmode() ... no
Checking for sysi86() ... no
Checking for sys/sysinfo.h ... no
Checking for pkg-config ... yes
Checking for Samba support (libsmbclient) ... no
Checking for /dev/mga_vid ... no
Checking for tdfxfb ... no
Checking for s3fb ... no
Checking for wii ... no
Checking for tdfxvid ... no
Checking for xvr100 ... yes
Checking for tga ... yes
Checking for md5sum support ... yes
Checking for yuv4mpeg support ... yes
Checking for bl ... no
Checking for DirectFB ... no
Checking for X11 headers presence ... yes (using /usr/openwin/include)
Checking for X11 ... no (check if the dev(el) packages are installed)
Checking for Xss screensaver extensions ... no
Checking for DPMS ... no
Checking for Xv ... auto
Checking for XvMC ... no
Checking for VDPAU ... auto
Checking for Xinerama ... auto
Checking for Xxf86vm ... auto
Checking for XF86keysym ... auto
Checking for DGA ... no
Checking for xmga ... no
Checking for 3dfx ... no
Checking for VIDIX ... no
Checking for GGI ... no
Checking for GGI extension: libggiwmh ... no
Checking for AA ... no
Checking for CACA ... no
Checking for SVGAlib ... no
Checking for FBDev ... no
Checking for DVB ... no
Checking for PNG support ... no
Checking for MNG support ... no
Checking for JPEG support ... no
Checking for OpenJPEG (JPEG 2000) support ... no
Checking for PNM support ... yes
Checking for GIF support ... no
Checking for VESA support ... no
Checking for SDL ... yes (using sdl-config)
Checking for OpenGL ... yes (backends: x11 sdl)
Checking for MatrixView ... yes
Checking for DXR2 ... no
Checking for DXR3/H+ ... no
Checking for IVTV TV-Out (pre linux-2.6.24) ... no
Checking for V4L2 MPEG Decoder ... no
Checking for OSS Audio ... no
Checking for aRts ... no
Checking for EsounD ... no
Checking for NAS ... no
Checking for pulse ... sh: gnome-config: not found
no
Checking for JACK ... sh: gnome-config: not found
no
Checking for OpenAL ... no
Checking for ALSA audio ... no
Checking for Sun audio ... yes
Checking for Sun mediaLib ... no
Checking for VCD support ... yes
Checking for Blu-ray support ... no
Checking for dvdread ... yes (internal)
Checking for internal libdvdcss ... yes
Checking for libcdio ... sh: gnome-config: not found
no
Checking for cdparanoia ... no
Checking for bitmap font support ... yes
Checking for freetype >= 2.0.9 ... yes
Checking for fontconfig ... yes
Checking for fribidi with charsets ... no
Checking for SSA/ASS support ... yes
Checking for ENCA ... no
Checking for zlib ... yes
Checking for bzlib ... yes
Checking for RTC ... no
Checking for liblzo2 support ... no
Checking for mad support ... no
Checking for Twolame ... no
Checking for Toolame ... no
Checking for OggVorbis support ... yes (internal Tremor)
Checking for libspeex (version >= 1.1 required) ... no
Checking for libgsm ... no
Checking for OggTheora support ... no
Checking for mp3lib support ... yes
Checking for mpg123 support ... no
Checking for liba52 support ... no
Checking for libmpeg2 support ... yes (internal)
Checking for libdca support ... no
Checking for libmpcdec (musepack, version >= 1.2.1 required) ... no
Checking for FAAC support ... no (in FFmpeg: no)
Checking for FAAD2 support ... no
Checking for LADSPA plugin support ... no
Checking for libbs2b audio filter support ... sh: gnome-config: not found
no
Checking for Win32 codecs ... no
Checking for XAnim codecs ... yes (dynamic loader support needed)
Checking for RealPlayer codecs ... no (dynamic loader support needed)
Checking for QuickTime codecs ... auto
Checking for Nemesi Streaming Media libraries ... sh: gnome-config: not found
no
Checking for LIVE555 Streaming Media libraries ... no
Checking for RTMPDump Streaming Media library ... sh: gnome-config: not found
no
Checking for FFmpeg ... yes
Checking for libpostproc ... yes
Checking for libopencore_amr narrowband ... no
Checking for libopencore_amr wideband ... no
Checking for libdv-0.9.5+ ... no
Checking for CrystalHD ... no
Checking for Xvid ... no
Checking for Xvid two pass plugin ... no
Checking for x264 ... no (in FFmpeg: no)
Checking for libdirac ... sh: gnome-config: not found
no
Checking for libschroedinger ... sh: gnome-config: not found
no
Checking for libvpx ... no
Checking for libnut ... no
Checking for zr ... no
Checking for libmp3lame ... no (in FFmpeg: no)
Checking for mencoder ... yes
Checking for UnRAR executable ... yes
Checking for TV interface ... yes
Checking for DirectShow TV interface ... auto
Checking for Video 4 Linux TV interface ... auto
Checking for Video 4 Linux 2 TV interface ... no
Checking for Radio interface ... no
Checking for Capture for Radio interface ... no
Checking for Video 4 Linux 2 Radio interface ... auto
Checking for Video 4 Linux Radio interface ... auto
Checking for Video 4 Linux 2 MPEG PVR interface ... auto
Checking for ftp ... yes
Checking for vstream client ... no
Checking for OSD menu ... no
Checking for Subtitles sorting ... yes
Checking for XMMS inputplugin support ... no
Checking for GUI ... no
Checking for automatic gdb attach ... no
Checking for compiler support for noexecstack ... no
Checking for linker support for --nxcompat --no-seh --dynamicbase ... no
Checking for joystick ... no
Checking for lirc ... no
Checking for lircc ... no
Checking for DVD support (libdvdnav) ... yes (internal)
Checking for XML catalogs ... No SGML catalog found.
Checking for XML chunked stylesheet ... not found, using default
Checking for XML monolithic stylesheet ... not found, using default
Checking for XML DTD ... not found, using default
Checking for valid XSLT processor ... Found xsltproc but no stylesheets on
your system.
xsltproc is unusable without stylesheets.
Creating config.mak
Creating config.h
Config files successfully generated by ./configure --cc=gcc
--extra-ldflags=-lrt !
Install prefix: /usr/local
Data directory: /usr/local/share/mplayer
Config direct.: /usr/local/etc/mplayer
Byte order: big-endian
Optimizing for: ultrasparc
Languages:
Messages/GUI: en
Manual pages: en
Documentation: en
Enabled optional drivers:
Input: dvdnav(internal) ftp tv libdvdcss(internal) dvdread(internal)
vcd networking
Codecs: ffmpeg(internal) xanim libmpeg2(internal) mp3lib(internal)
tremor(internal)
Audio output: sun sdl mpegpes(file)
Video output: matrixview opengl sdl pnm mpegpes(file) yuv4mpeg md5sum
tga xvr100
Disabled optional drivers:
Input: vstream pvr radio tv-v4l2 tv-v4l1 tv-dshow librtmp live555
nemesi cddb cdda bluray dvb smb
Codecs: libvpx libschroedinger libdirac x264 xvid crystalhd libdv
libopencore_amrwb libopencore_amrnb qtx real win32 faad2 faac musepack
libdca liba52 mpg123 libtheora libgsm speex toolame twolame libmad
liblzo gif OpenJPEG
Audio output: alsa openal jack pulse nas esd arts oss v4l2 ivtv dxr2
Video output: zr zr2 v4l2 ivtv dxr3 dxr2 vesa gif89a jpeg mng fbdev
svga caca aa ggi xvidix winvidix cvidix 3dfx xmga dga vdpau xvmc xv
x11 directfb dfbmga bl tdfx_vid wii s3fb tdfxfb mga
'config.h' and 'config.mak' contain your configuration options.
Note: If you alter theses files (for instance CFLAGS) MPlayer may no longer
compile *** DO NOT REPORT BUGS if you tweak these files ***
'make' will now compile MPlayer and 'make install' will install it.
Note: On non-Linux systems you might need to use 'gmake' instead of 'make'.
NOTE: Win32 codec DLLs are not supported on your CPU (sparc) or your
operating system (SunOS). You may encounter a few files that cannot
be played due to missing open source video/audio codec support.
Check config.log if you wonder why an autodetection failed (make sure
development headers/packages are installed).
NOTE: The --enable-* parameters unconditionally force options on, completely
skipping autodetection. This behavior is unlike what you may be used to from
autoconf-based configure scripts that can decide to override you. This
greater
level of control comes at a price. You may have to provide the correct
compiler
and linker flags yourself.
If you used one of these options (except --enable-menu and similar ones that
turn on internal features) and experience a compilation or linking failure,
make sure you have passed the necessary compiler/linker flags to configure.
If you suspect a bug, please read DOCS/HTML/en/bugreports.html.
--
Worringer Str 31 Duesseldorf 40211 Germany +49-179-2981632 icq 16845346
More information about the MPlayer-users
mailing list