[MPlayer-dev-eng] [PATCH] MacOS X build weirdness

sci-fi at hush.ai sci-fi at hush.ai
Thu Apr 27 03:44:34 CEST 2006


Hi,


< snip -- I've seen these too many times ;) >


I believe setting
LDFLAGS=-Wl,-read_only_relocs,suppress
is "allowing" all multiple symbol defs in my case.

For background, this is why I came up with that setting:

I have almost everything imaginable built & installed from scratch
myself (no Fink here), so the ./configure step rakes in as much
support as possible, including both X11 and OpenGL (and SDL and
...).  I've been compiling with several gcc tweaks for ppc7450 etc.
plus I have several env-vars set (I follow many projects via
CVS/SVN, so I need such things as LIBTOOLIZE=glibtoolize for
autogen etc.).

I get a bunch of the multiple symbol defs also with the iconv libs
& related stuff, since I build them, too, into /usr/local, but some
projects apparently are hard-coded to peek at Apple's libs in /usr,
so you can see how these multiple things can happen.  Yeah I know:
"submit patches" to those other projects.  ;)

MPlayer is by far *not* the only project that gets these same
multiple symbol thingies.  It can happen quite easily.

I used to add -bind_at_load but that parm has been finicky: some
projects need it with the '-Wl,' in front, some not -- this should
let the multiple symbolic addresses be determined *and* be
consistent with one-another at run-time.  Usually the make scripts
have this parm already written in if it's needed at all, but some
projects are so old they didn't know about Darwin back then.  ;) 

p.s.  I mentioned this a while back on this list.  I am still
having to patch all of MPlayer's configure scripts to single-thread
the .depends (IIRC going back to the old way with for-loop single
modules in the gcc -MM) only when -fast is in the CxxFLAGS.  I did
submit a representative patch in my post back then.  I'd hoped
XCode 2.2.1 might've fixed this but alas no.  I am slowly moving
things to a Dual G5, and I've already found -fast with ppc970
tweaks will generate some bad code for many projects (par2verify,
for example, sometimes cannot find header records in .par2 files
when -fast is set, but is okay without it).  So I'm
(re)rerebuilding everything without -fast and will try to file a
bug report with Apple (I can't afford a non-free ADC account, so I
don't know if this is already known ;) ). 
Hey this is for fun & learning anyway, not complaining at all.

Thanks for letting me barge-in here, hope this helps somehow.





Concerned about your privacy? Instantly send FREE secure email, no account required
http://www.hushmail.com/send?l=480

Get the best prices on SSL certificates from Hushmail
https://www.hushssl.com?l=485




More information about the MPlayer-dev-eng mailing list