Cannot install libsdl_mixer

Nikos Chantziaras realnc at arcor.de
Sun Oct 3 09:47:05 PDT 2010


On 10/03/2010 03:37 AM, Jon Hermansen wrote:
> On Sat, Oct 2, 2010 at 5:17 PM, Ryan Schmidt <ryandesign at macports.org
> <mailto:ryandesign at macports.org>> wrote:
>
>
>     On Oct 2, 2010, at 15:59, Nikos Chantziaras wrote:
>
>      > I installed macports just today on OS X 10.6.4.  I've set:
>      >
>      >  build_arch       i386
>      >  universal_archs  i386 ppc
>      >
>      > in macports.conf since I need Intel and PPC 32-bit univeral
>     binaries.  Then:
>      >
>      >  port selfupdate
>      >  port install libsdl +no_x11 +universal
>      >  port install libsdl_mixer +universal -mikmod
>      >
>      > A lot of stuff was installed correctly, but at the very end, when
>     libsdl_mixer is installed, I get an error:
>      >
>      >  [...]
>      >  Error: Target org.macports.build returned: shell command failed
>      >  Log for libsdl_mixer is at: [...]
>      >   [...]
>      > This is the log:
>      >
>      > http://pastebin.com/raw.php?i=LLJGW1eV
>     [...]
>     It looks like libsdl_mixer got properly built for the architectures
>     you requested, but during the link phase, it forgot to use those
>     same architectures, so it tried to use the default x86_64, which of
>     course can't work. I see this same problem when trying to build
>     libsdl_mixer for i386 (in a MacPorts prefix on Snow Leopard with
>     build_arch set to i386). So I filed a bug report for that issue:
>
> I have a patch that fixes this issue like this:
>
>     if {[variant_isset universal]} {
>         build.args   CC="${configure.cc} ${configure.universal_cflags}"
>     }
>
> Like Ryan, I had no issue uni-building with i386+x86_64 arches set, but
> throwing ppc in the mix seems to mess things up. I'm also pretty sure my
> fix is not the best way to approach, but I guess it's worth looking into
> _why_ it gets the build working...
>
> I've attached the patch in case someone would like to use it...

Thanks, this worked and libsd_mixer built without errors.



More information about the macports-users mailing list