Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 203708 - media-sound/mpg123 doesn't compile on MacOS Intel
Summary: media-sound/mpg123 doesn't compile on MacOS Intel
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Prefix Support (show other bugs)
Hardware: All OS X
: High normal
Assignee: Gentoo non-Linux Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-12-29 19:19 UTC by Dirk Tilger
Modified: 2007-12-29 19:33 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
Patch to media-sound/mpg123-1.0_rc2 to make it work on Intel-MacOSX 10.4 (mpg123-1.0.1.ebuild.patch,404 bytes, patch)
2007-12-29 19:24 UTC, Dirk Tilger
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Dirk Tilger 2007-12-29 19:19:55 UTC
When detecting an Intel architecture mpg123 uses a number of assembly files that provide faster replacements for certain C functions on certain architectures.

The compilation will break with:

/usr/bin/ld: common symbols not allowed with MH_DYLIB output format with the -multi_module option.libs/dct64_sse.o definition of common b1.4746 (size 128).libs/dct64_sse.o definition of common b2.4747 (size 128)collect2: ld returned 1 exit statusmake[3]: *** [libmpg123.la] Error 1

Though this can be fixed by converting the .comm section in the respective assembly file into .space section with the label in front of it (.comm doesn't make sense here as the label is not referenced from outside the file), the compilation will later break when some MMX related procedures are calling functions in other files (i586).

I'm slightly out of my area of expertise here and thus am only proving a fix for letting mpg123 compile for the cost of degraded performance (by not using assembly files). Some of the issues seem to come from changes to linker in 10.4, so I limited the modification to 10.4.
Comment 1 Fabian Groffen gentoo-dev 2007-12-29 19:23:16 UTC
it shouldn't actually use /usr/bin/ld ...
Comment 2 Dirk Tilger 2007-12-29 19:24:44 UTC
Created attachment 139577 [details, diff]
Patch to media-sound/mpg123-1.0_rc2 to make it work on Intel-MacOSX 10.4

The patch is to be applied against mpg123-1.0_rc2.ebuild in the prefix tree.
Comment 3 Fabian Groffen gentoo-dev 2007-12-29 19:27:49 UTC
same problem on Leopard
Comment 4 Dirk Tilger 2007-12-29 19:30:34 UTC
Forgot to mention to take advantage of the patch one has to disable the 'mmx' and the 'sse' USE flag for mpg123.
Comment 5 Fabian Groffen gentoo-dev 2007-12-29 19:33:25 UTC
fixed in the tree now, thanks!