Opened 16 years ago

Closed 16 years ago

Last modified 15 years ago

#13551 closed update (fixed)

UPDATE: MPlayer 1.0rc1try3 -> 1.0rc2

Reported by: ecronin (Eric Cronin) Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 1.6.0
Keywords: Cc:
Port:

Description

This is an updated portfile that bumps the version as well as (I think) solving the various 10.5 related problems building it.

Attachments (2)

Mplayer.patch (4.7 KB) - added by ecronin (Eric Cronin) 16 years ago.
MPlayer.patch (6.3 KB) - added by ecronin (Eric Cronin) 16 years ago.

Download all attachments as: .zip

Change History (11)

Changed 16 years ago by ecronin (Eric Cronin)

Attachment: Mplayer.patch added

comment:1 Changed 16 years ago by milosh@…

Building 'Mplayer +xvid +osd +binary_codecs' on tiger still gives me the following error:

cc -o mplayer mplayer.o m_property.o mp_fifo.o mp_msg.o mixer.o parser-mpcmd.o sge_path.o m_config.o m_option.o m_struct.o mpcommon.o parser-cfg.o playtree.o plareeparser.o spudec.o sub_cc.o subreader.o vobsub.o libvo/libvo.a libao2/libao2put/libinput.a libmenu/libmenu.a libmpcodecs/libmpcodecs.a libaf/libaf.a limpdemux/libmpdemux.a stream/stream.a libswscale/libswscale.a libvo/libosd.a libformat/libavformat.a libavcodec/libavcodec.a libavutil/libavutil.a libpostprococ.a mp3lib/libmp3.a liba52/liba52.a libmpeg2/libmpeg2.a libfaad2/libf2.a tremor/libvorbisidec.a dvdread/libdvdread.a libdvdcss/libdvdcss.a libass/a osdep/libosdep.a -lcaca -lX11 -lncurses -lncurses -framework OpenAL -lmmp3lame -L/usr/X11R6/lib -L/opt/local/lib -L/opt/local/lib -L/opt/local/lib/samba/usr/local/lib  -liconv -lncurses -framework Carbon -framework QuickTime -frmework CoreAudio -framework AudioUnit -framework AudioToolbox -framework Coco -framework QuartzCore -framework OpenGL -lpng -lz -ljpeg -lungif -framework t  -L/opt/local/lib -lfreetype -lz -lfontconfig  -lz -llzo2 -lmad     -lm
/usr/bin/ld: warning -L: directory name (/opt/local/lib/samba3) does not exist
/usr/bin/ld: warning prebinding disabled because dependent library: /usr/X11R6/ibb/libX11.6.dylib is not prebound
/usr/bin/ld: Undefined symbols:
_xvid_decore
_xvid_global
_xvid_encore
_xvid_plugin_2pass2
_xvid_plugin_lumimasking
_xvid_plugin_single
_FT_Glyph_StrokeBorder
_FT_Request_Size
_FcFreeTypeQueryFace
collect2: ld returned 1 exit status
make: *** [mplayer] Error 1

comment:2 Changed 16 years ago by dieter@…

The patch worked for me on 10.5.1. Thanks!

comment:3 Changed 16 years ago by smccord2000@…

I am on OS X version 10.5.1 and I modified the Portfile (in opt/local/var/macports/sources/rsync.macports.org/release/ ports/multimedia/MPlayer) as shown in the Mplayer.patch and I get something similar to milosh@… above. Since I am very new to OS X and Unix, it is possible I did something just terribly wrong. Any suggestions?

Undefined symbols:

"_xvid_global", referenced from:

_init in libmpcodecs.a(vd_xvid4.o) _init in libmpcodecs.a(vd_xvid4.o) _ff_xvid_encode_init in libavcodec.a(libxvidff.o)

"_xvid_plugin_2pass2", referenced from:

_xvid_plugin_2pass2$non_lazy_ptr in libavcodec.a(libxvidff.o) _ff_xvid_rate_control_init in libavcodec.a(libxvid_rc.o) _ff_xvid_rate_estimate_qscale in libavcodec.a(libxvid_rc.o) _ff_xvid_rate_estimate_qscale in libavcodec.a(libxvid_rc.o) _ff_xvid_rate_control_uninit in libavcodec.a(libxvid_rc.o)

"_xvid_plugin_single", referenced from:

_xvid_plugin_single$non_lazy_ptr in libavcodec.a(libxvidff.o)

"_xvid_decore", referenced from:

_init in libmpcodecs.a(vd_xvid4.o) _uninit in libmpcodecs.a(vd_xvid4.o) _decode in libmpcodecs.a(vd_xvid4.o)

"_xvid_plugin_lumimasking", referenced from:

_xvid_plugin_lumimasking$non_lazy_ptr in libavcodec.a(libxvidff.o)

"_xvid_encore", referenced from:

_ff_xvid_encode_close in libavcodec.a(libxvidff.o) _ff_xvid_encode_init in libavcodec.a(libxvidff.o) _ff_xvid_encode_frame in libavcodec.a(libxvidff.o)

ld: symbol(s) not found collect2: ld returned 1 exit status make: * [mplayer] Error 1

Warning: the following items did not execute (for MPlayer): org.macports.activate org.macports.build org.macports.destroot org.macports.install Error: Status 1 encountered during processing.

comment:4 in reply to:  1 Changed 16 years ago by boeyms@…

Replying to milosh@macports.org:

Out of the undefined symbols listed by milosh when building with +xvid +osd +binary_codecs, I also get errors about all the _xvid_* symbols being undefined (building on Mac OS X 10.4.11, Xcode 2.5, MacPorts 1.6.0). It appears from the cc -o ... line that milosh quotes above that it is not linking to either /opt/local/lib/libxvidcore.a or /opt/local/lib/libxvidcore.4.dylib in which those symbols are defined. However, I don't get _FT_Glyph_StrokeBorder, _FT_Request_Size or _FcFreeTypeQueryFace listed as being undefined.

Furthermore, when I removed +xvid, it appeared to build and run just fine. Perhaps we can just remove the xvid variant or mark it as broken for the time being, bump MPlayer to 1.0rc2, and then reinstate xvid when it gets fixed.

comment:5 Changed 16 years ago by ecronin (Eric Cronin)

I can confirm that +xvid seems to be broken multiple places. I was working on building each variant individually this weekend to see if anything else was broken and got distracted. I'll finish that up now and upload a new patch for the 1.0rc2 bump.

Changed 16 years ago by ecronin (Eric Cronin)

Attachment: MPlayer.patch added

comment:6 Changed 16 years ago by ecronin (Eric Cronin)

New patch attached. Cleaning out a lot of the patches added to previous builds solves linker problems with xvid and x264. Unless someone finds a problem in their setup this is good to commit.

comment:7 Changed 16 years ago by ecronin (Eric Cronin)

Resolution: fixed
Status: newclosed

Committed.

comment:8 Changed 15 years ago by jmroot (Joshua Root)

Type: enhancementupdate

comment:9 Changed 15 years ago by (none)

Milestone: Port Updates

Milestone Port Updates deleted

Note: See TracTickets for help on using tickets.