[Asterisk-Users] Re: cdr_addon_mysql.c

Storm D. J. Petersen stormp at telus.net
Sun Jun 13 01:33:48 MST 2004


Whoops I didn't  RFM... :(  I forgot the CFLAGS+-DMYSQL_LOGUNIQUEID

Sorry.

-----Original Message-----
From: asterisk-users-admin at lists.digium.com
[mailto:asterisk-users-admin at lists.digium.com]On Behalf Of Tony Mountifield
Sent: Sunday, June 13, 2004 12:47 AM
To: asterisk-users at lists.digium.com
Subject: [Asterisk-Users] Re: cdr_addon_mysql.c

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
_______________________________________________
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