Has anyone had any luck getting the addon's to compile under OS X? I have been able to get 1.06 to build and run great, but I really want to get the cdr_addon_mysql.so to enable mysql writing. When I try to compile I get a bunch of Undefined symbols and I have tried adding everything to my path. I've got mysql_devel, etc. I have posted this to the Mac Asterisk mailing list about a week ago with no response, so I thought I would just check in here. Thanks, -------------- next part -------------- An embedded message was scrubbed... From: Jed Stafford <jeds@yahoo.com> Subject: asterisk-addons OS X Date: Mon, 14 Mar 2005 14:57:09 -0800 (PST) Size: 832 Url: http://lists.digium.com/pipermail/asterisk-users/attachments/20050314/b6950ee0/attachment.eml
Jed Stafford wrote:> Has anyone had any luck getting the addon's to compile > under OS X? I have been able to get 1.06 to build and > run great, but I really want to get the > cdr_addon_mysql.so to enable mysql writing. > > When I try to compile I get a bunch of Undefined > symbols and I have tried adding everything to my path. > I've got mysql_devel, etc. > > I have posted this to the Mac Asterisk mailing list > about a week ago with no response, so I thought I > would just check in here. > > Thanks,cdr_addon_mysql doesn't compile at all, no matter what the OS. I contacted the authors a while back and they said they would get into contact with Mark or something... Who knows what happened, but as far as I know it's still broken. -- Kristian Kielhofner
Jed Stafford wrote:>> Has anyone had any luck getting the addon's to compile >> under OS X? I have been able to get 1.06 to build and >> run great, but I really want to get the >> cdr_addon_mysql.so to enable mysql writing. >> >> When I try to compile I get a bunch of Undefined >> symbols and I have tried adding everything to my path. >> I've got mysql_devel, etc. >> >> I have posted this to the Mac Asterisk mailing list >> about a week ago with no response, so I thought I >> would just check in here. >> >> Thanks,I'm guessing that you are refering to CVS-HEAD? Because cdr_addon_mysql compiles fine with Asterisk 1.0.6. <goes to check CVS...> Hmm..compiles fine on my CVS. Are you sure you have the most recent version? -Matthew
Just to be safe, I removed everything and got a fresh copy from CVS. Again I got Asterisk to compile fine, but the addons do not. Just to double check you got this to compile on OS X? Here is what I get.. I did change from static to dynamic which seems to get things further with gcc in OS X. cc -dynamic -Xlinker -x -o cdr_addon_mysql.so cdr_addon_mysql.o -lmysqlclient -lz -L/usr/local/mysql/lib -L/usr/local/lib/mysql ld: Undefined symbols: _main _ast_cdr_disp2str _ast_cdr_register _ast_cdr_unregister _ast_cli _ast_cli_register _ast_cli_unregister _ast_config_destroy _ast_config_load _ast_log _ast_variable_browse _ast_variable_retrieve -Jed --- Matthew Boehm <mboehm@cytelcom.com> wrote:> Jed Stafford wrote: > >> Has anyone had any luck getting the addon's to > compile > >> under OS X? I have been able to get 1.06 to build > and > >> run great, but I really want to get the > >> cdr_addon_mysql.so to enable mysql writing. > >> > >> When I try to compile I get a bunch of Undefined > >> symbols and I have tried adding everything to my > path. > >> I've got mysql_devel, etc. > >> > >> I have posted this to the Mac Asterisk mailing > list > >> about a week ago with no response, so I thought I > >> would just check in here. > >> > >> Thanks, > > I'm guessing that you are refering to CVS-HEAD? > Because cdr_addon_mysql > compiles fine with Asterisk 1.0.6. > > <goes to check CVS...> > > Hmm..compiles fine on my CVS. Are you sure you have > the most recent version? > > -Matthew > > _______________________________________________ > Asterisk-Users mailing list > Asterisk-Users@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>