Ticket #3022 (closed defect: worksforme)
BUG: esound will not build because of hardwired /usr/bin references
| Reported by: | x11@… | Owned by: | macports-tickets@… |
|---|---|---|---|
| Priority: | Normal | Milestone: | |
| Component: | ports | Version: | 1.0 |
| Keywords: | Cc: | markd@… | |
| Port: |
Description
I tried to upgrade esound yesterday from 2.34 to 2.35. The build failed because libtool did not know what to do with
-framework Coreaudio and did not pass it forward to the link stage. I found
that the error shows up if you have
libtool installed through dp, or perhaps it is just a feature of defining
--prefix=${prefix}. The configure
script creates a local link ltmain.sh which points to
${prefix}/share/libtool/ltmain.sh. But hardcoded somewhere
in the scripts that come with the source are calls to /usr/bin/libtool, and
when it calls the linked ltmain.sh
script, that script must not know what to do with -framework Coreaudio. When
you see the error, the directive
-framework Coreaudio is at the end of the final libtool handoff to the linker
stage, but it is not in the command
libtool creates for ld. Moving into the install directory and changing the
symlinked file to point to
/usr/share/libtool/ltmain.sh then calling `port install esound' works.
It seems that someone would have seen this before.

