Posted: Mon Jul 19, 2004 9:16 pm Post subject: Re[2]: [Asterisk-bsd] cdr_mysql.c error on FreeBSD 5.2.1
Hello Dr.,
You are right, the problem was in the old version of lock.h
(asterisk-0.9.0)
Thanks.
Monday, July 19, 2004, 11:48:07 PM, you wrote:
DRM> This appears to be a problem with
DRM> asterisk/include/asterisk/lock.h.
DRM> Lock.h should #define the macro
DRM> AST_MUTEX_DEFINE_STATIC(lock), but the
DRM> compiler seems to think that it is a function rather than a macro.
DRM> And perhaps I can help. It may not be much consolation, but I just 'cvs
DRM> update'ed and compiled without seeing those error messages. If you haven't
DRM> updated asterisk (server) as well, perhaps that would help ensure that
DRM> lock.h is in sync.
DRM> Cheers,
DRM> Rich
DRM> gmake
DRM> ./mkdep -fPIC -I../asterisk -D_GNU_SOURCE
DRM> -I/usr/local/include/mysql `ls
DRM> *.c`
DRM> cc -fPIC -I../asterisk -D_GNU_SOURCE
DRM> -I/usr/local/include/mysql -c -o
DRM> cdr_addon_mysql.o cdr_addon_mysql.c
DRM> cdr_addon_mysql.c: In function `mysql_log':
DRM> cdr_addon_mysql.c:111: warning: passing arg 1 of `localtime_r' from
DRM> incompatible pointer type
DRM> cc -shared -Xlinker -x -o cdr_addon_mysql.so
DRM> cdr_addon_mysql.o -lmysqlclient
DRM> -lz -L/usr/local/lib/mysql
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum