Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
L
libao
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 32
    • Issues 32
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge Requests 3
    • Merge Requests 3
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
  • Operations
    • Operations
    • Incidents
    • Environments
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • CI / CD
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • Xiph.Org
  • libao
  • Issues
  • #727

Closed
Open
Opened Oct 27, 2005 by s355248@s355248

[PATCH] libao not linking right in MacOSX 10.4

In MacOS 10.4 one will find problems about missing symbols namely:

dlsym_auto_underscore

This can be fixed by deleteing all of the statements in configure that say "-Ddlsym=dlsym_auto_underscore". This will break 10.2 and eariler. I do not have 10.3 to test on. This can be done by running

sed 's/-Ddlsym=dlsym_auto_underscore//g' configure > configure.new && mv -f configure.new configure && chmod +x configure

After doing this there will still be missing symbols from the CoreAudio framework (something like AudioHardwareGetProperty usually). This is because the -framework CoreAudio has been left in the generated makefile in the src/plugins/macosx directory. I cannot narrow it down to fix it properely, but a hack is to cd to this directory, type 'make', then copy the last 'gcc' command (it ends in -lpthread for my machine), then type '-framework CoreAudio' at the end and rerun the command. Then type make install from the top directory and all should work.

The command should look like:

gcc -flat_namespace -undefined suppress -o .libs/libmacosx.so -bundle .libs/ao_macosx.o -lpthread -framework CoreAudio

This would have been picked up had the '-undefined suppress' option been left out.

Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking
None
Due date
None
Reference: xiph/libao#727