[Asterisk-Users] Re: Asterisk-addons/OS X woes

Ray Gauss II lists at photoassist.com
Wed Mar 30 16:30:24 MST 2005



Begin forwarded message:

> From: Ray Gauss II <ray at photoassist.com>
> Date: March 30, 2005 6:27:45 PM EST
> To: Asterisk Users Mailing List - Non-Commercial Discussion  
> <asterisk-users at lists.digium.com>
> Subject: Re: [Asterisk-Users] Re: Asterisk-addons/OS X woes
>
> Many, many thanks for this!
>
> When compiling from today's -r v1-0 cvs I had to add a symlink in my  
> mysql include directory.
>
> app_addon seemed to be looking for a hard coded mysql/mysql.h file:
>
> 	app_addon_sql_mysql.c:31:25: mysql/mysql.h: No such file or directory
>
> my include is at /usr/local/mysql/include, so:
>
> 	ln -s /usr/local/mysql/include /usr/local/mysql/include/mysql
>
>  seemed to do the trick.
>
>
> On Mar 22, 2005, at 3:42 PM, Zach Scott wrote:
>
>> 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
>>>
>> _______________________________________________
>> 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
>>
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: text/enriched
Size: 2968 bytes
Desc: not available
Url : http://lists.digium.com/pipermail/asterisk-users/attachments/20050330/4de500dc/attachment.bin


More information about the asterisk-users mailing list