[Asterisk-Users] Re: cdr_addon_mysql.c
Tony Mountifield
tony at softins.clara.co.uk
Sun Jun 13 00:47:03 MST 2004
In article <40CB9BF4.3070702 at eml.cc>, Caspar Arquint <stonebeat at eml.cc> 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: tony at softins.co.uk - http://www.softins.co.uk
Play: tony at mountifield.org - http://tony.mountifield.org
More information about the asterisk-users
mailing list