[Asterisk-Users] Re: Asterisk-addons/OS X woes
Zach Scott
zach.scott at gmail.com
Tue Mar 22 13:42:14 MST 2005
Thanks! I took the advice on that website, and by changing the line:
format_mp3.so: $(MP3OBJS)
$(CC) $(CFLAGS) -shared -Xlinker -x -o $@ $(MP3OBJS)
to
format_mp3.so: $(MP3OBJS)
$(CC) $(CFLAGS) -bundle -flat_namespace -undefined suppress
-Xlinker -x -o $@ $(MP3OBJS)
in /usr/src/asterisk-addons/format_mp3/Makefile, I was able to get it
to compile and link under OS X.
Unfortunately, this didn't fix the problem I was hoping it would. I
get constant messages from MoH about "request to schedule in the
past?!?!" and this message:
http://lists.digium.com/pipermail/asterisk-users/2005-January/082434.html
recommends switching to format_mp3 to eliminate that. I probably
missed something along the way though, pointers are certainly welcomed
:-)
On Tue, 22 Mar 2005 09:09:57 -0800, TC <trclark at shaw.ca> wrote:
>
> > I've been having the same problem... The trouble is, the version of
> > gcc that Apple releases for OS X does not support the "-shared"
> > option, so any makefile directive which uses that can't be built.
> I have never done any OS X compiles but
> http://fink.sourceforge.net/doc/porting/shared.php?phpLang=en
> see section 2.4 it looks like you might just be able to use the
> -dynamiclib in place of the -shared flag
>
> and it still looks like any so file that is ,
> loadable using dlopen will also need some xtra flags
> need special handling
>
> _______________________________________________
> Asterisk-Users mailing list
> Asterisk-Users at lists.digium.com
> http://lists.digium.com/mailman/listinfo/asterisk-users
> To UNSUBSCRIBE or update options visit:
> http://lists.digium.com/mailman/listinfo/asterisk-users
>
More information about the asterisk-users
mailing list