In article <[EMAIL PROTECTED]>, Caspar Arquint <[EMAIL PROTECTED]> wrote: > Ed Devine wrote: > > >Following the latest * CVS update, my MySQL was broken. > > > >Following the update, Asterisk-addons would compile fine, but when I ran > >asterisk I got the following error: > > > >ERROR[1202489024]: cdr_addon_mysql.c:203 mysql_log: Failed to insert > >into databas > > > >I then tried using the patch (bug id 0001823) from bugs.digium.com, and > >found that Asterisk-addons would no longer compile, giving me the > >following errors: > > > > > [...] > > I don't know, if it helps, but I also had some problems compiling > cdr_addon_mysql.c, recently. To finally solve it that's what I did: > > 1) mkdir /tmp/A; cd /tmp/A > 2) logged in to cvs > 3) cvs checkout asterisk asterisk-addons > 4) cd asterisk-addons > 5) adjust the CFLAG section in the Makefile to look as follows: > CFLAGS+=-fPIC > CFLAGS+=-I../asterisk > CFLAGS+=-I../asterisk/include > CFLAGS+=-D_GNU_SOURCE > 6) then run make
You don't need to do any of the above, PROVIDED you do "make install" of asterisk BEFORE you try to do a "make" in asterisk-addons. Then the required include files have been installed in /usr/include/asterisk. I agree it's a little messy.... Cheers Tony -- Tony Mountifield Work: [EMAIL PROTECTED] - http://www.softins.co.uk Play: [EMAIL PROTECTED] - http://tony.mountifield.org _______________________________________________ Asterisk-Users mailing list [EMAIL PROTECTED] http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
