[Asterisk-Users] cdr_addon_mysql compile error

Asterisk VOIP asterisk at cape.com
Thu Jan 29 18:40:46 MST 2004


On Thu, 29 Jan 2004 12:45:35 -0600, Tilghman Lesher wrote
> On Thursday 29 January 2004 11:31, Asterisk VOIP wrote:
> > On Thu, 29 Jan 2004 10:32:56 -0600, Tilghman Lesher wrote
> >
> > > On Wednesday 28 January 2004 16:47, Asterisk VOIP wrote:
> > > > Having some trouble building cdr_addon_mysql.  I've installed
> > > > mysql and mysql-dev and all related rpms on a RH9 box.  The box
> > > > is up and running *.
> > > >
> > > > I've checked out the asterisk-addons but at "make install", I
> > > > receive the following error:
> > > >
> > > > ./mkdep -fPIC -I../asterisk  -I/usr/include/mysql   `ls *.c`
> > > > cc -fPIC -I../asterisk  -I/usr/include/mysql     -c -o
> > > > cdr_addon_mysql.o cdr_addon_mysql.c
> > > > cdr_addon_mysql.c: In function `mysql_log':
> > > > cdr_addon_mysql.c:113: structure has no member named 
`userfield'
> > > > cdr_addon_mysql.c:114: structure has no member named 
`userfield'
> > > > cdr_addon_mysql.c:114: structure has no member named 
`userfield'
> > > > make: *** [cdr_addon_mysql.o] Error 1
> > > >
> > > > any ideas?
> > >
> > > Please recompile and reinstall the latest version of Asterisk
> > > before you attempt to compile cdr_addon_mysql.  Your header files
> > > are out of date.
> >
> > a reinstall of * only or zaptel, libpri, as well?
> >
> > btw, thanks for the great module and advice.
> 
> Generally speaking, you should always compile and install in the
> following order:
> 
> 1) zaptel
> 2) libpri
> 3) asterisk
> 4) asterisk-addons
> 
> You're likely to have fewer problems if you follow this order anytime
> you update Asterisk or any of its components.
> 
> -Tilghman
> 
> _______________________________________________
> 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

almost got it.  I now get the following in the CLI,
 ERROR[1226054960]: cdr_addon_mysql.c:203 mysql_log: Failed to insert 
into database.  db is setup correctly.

asterisk is started with /usr/sbin/asterisk -vvvvc but the only messages I  
find are, LOG_ERROR, in the CLI.  Where are the LOG_DEBUG messages?

thanks again,
-wr



More information about the asterisk-users mailing list