[nas] nas on Mac OS X?

Erik Auerswald auerswal at unix-ag.uni-kl.de
Wed Jan 26 08:45:38 MST 2011


Hi Ray,

On Tue, Jan 25, 2011 at 05:28:32PM -0500, Raymond Toy wrote:
> On 1/25/11 2:12 PM, Erik Auerswald wrote:
> >
> >>> 2) still results in a broken build on OS X?
> >> The clients are still broken.  For example, auplay is linked against the
> >> static libaudio.a, not the dynamic libaudio:
> > Hm, the same happens on linux, but linking to Xt suffices to link Xau.
> To be honest, I don't really understand shared libs on OS X.  otool
> shows that -lXt does depend on -lXau.  Don't know what's going on with this.

Well, I don't know enough about shared libs nor Mac OS to explain this,
either...

> > In NetAudio.tmpl we have:
> > #define SharedLibAudio          SharedLibX
> >
> > But SharedLibX is not mentioned anywhere in /usr/lib/X11/config/. There
> > is a definition for SharedLibX11 and changing NetAudio.tmpl to use this
> > instead of SharedLibX results in linking dynamically against libaudio.
> >
> > Ray, could you test if this works for you as well? See the attached patch.
> Yes, this works.  The sample clients are linked against shared libaudio
> and everything works.  And, surprisingly, -lXau isn't on the link
> command.  otool indicates the libaudio depends on -lXau, so that's
> working as expected.

Great! Thanks for testing. :-)

Now I know that I can test my changes on linux. I'll try to find a generic
solution without breaking older systems (assuming that once upon a time
SharedLibX and friends were actually used).

Erik
-- 
Compile tested only, since I didn't dare boot it.
                        -- Peter Zijlstra



More information about the Nas mailing list