Opened 5 years ago

Last modified 5 years ago

#50784 new defect

MPlayer @1.2_1 and @1.2_2 patch to use new coreaudio API calls

Reported by: noel@… Owned by: jeremyhu (Jeremy Huddleston Sequoia)
Priority: Normal Milestone:
Component: ports Version: 2.3.4
Keywords: Cc:
Port: MPlayer

Description

My build of MPlayer +a52+fribidi+glx+mencoder_extras+noappleremote+osd+x11 fails with:

:info:build Undefined symbols for architecture x86_64:
:info:build   "_CloseComponent", referenced from:
:info:build       _init in ao_coreaudio.o
:info:build       _uninit in ao_coreaudio.o
:info:build   "_FindNextComponent", referenced from:
:info:build       _init in ao_coreaudio.o
:info:build   "_OpenAComponent", referenced from:
:info:build       _init in ao_coreaudio.o

10.11 has renamed various things in the API:

Component            -> AudioComponent
ComponentDescription -> AudioComponentDescription
FindNextComponent    -> AudioComponentFindNext
OpenAComponent       -> AudioComponentInstanceNew
CloseComponent       -> AudioComponentInstanceDispose

The old names had been deprecated for some time and were recently removed. Apple's docs say that these routines work on 10.6 and forwards.

The attached patch works against both 1.2_1 and 1.2_2.

Attachments (4)

main.log (3.8 MB) - added by noel@… 5 years ago.
failed build, full log
configure.coreaudio.patch (1.7 KB) - added by noel@… 5 years ago.
patch updating API calls
Portfile.patch (396 bytes) - added by noel@… 5 years ago.
patch for Portfile
main.log.xz (114.6 KB) - added by noel@… 5 years ago.
complete log of failed build

Change History (6)

Changed 5 years ago by noel@…

Attachment: main.log added

failed build, full log

Changed 5 years ago by noel@…

Attachment: configure.coreaudio.patch added

patch updating API calls

Changed 5 years ago by noel@…

Attachment: Portfile.patch added

patch for Portfile

comment:1 Changed 5 years ago by dbevans (David B. Evans)

Cc: jeremyhu@… openmaintainer@… removed
Owner: changed from macports-tickets@… to jeremyhu@…

No need to copy openmaintainer, this is not a real email address but just indicates that the maintainer allows updates from other maintainers as well.

Changed 5 years ago by noel@…

Attachment: main.log.xz added

complete log of failed build

comment:2 Changed 5 years ago by noel@…

Apologies for not compressing the main.log before uploading.

Note: See TracTickets for help on using tickets.