Trouble compiling Asterisk on FreeBSD

Hi

I have trouble compiling Asterisk on my FreeBSD 8.0-STABLE #3.

The build stops with the following message:

[code]gmake[1]: Entering directory /usr/ports/net/asterisk16/work/asterisk-1.6.0.21/cdr' cc -o cdr_sqlite3_custom.o -c cdr_sqlite3_custom.c -MD -MT cdr_sqlite3_custom.o -MF .cdr_sqlite3_custom.o.d -MP -D_THREAD_SAFE -pthread -I/usr/ports/net/asterisk16/work/asterisk-1.6.0.21/include -O2 -fno-strict-aliasing -pipe -march=k8 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -isystem /usr/local/include -fPIC -DAST_MODULE=\"cdr_sqlite3_custom\" -O2 -fno-strict-aliasing -pipe -march=k8 cdr_sqlite3_custom.c:230: error: conflicting types for 'sqlite3_log' /usr/local/include/sqlite3.h:5720: error: previous declaration of 'sqlite3_log' was here gmake[1]: *** [cdr_sqlite3_custom.o] Error 1 gmake[1]: Leaving directory/usr/ports/net/asterisk16/work/asterisk-1.6.0.21/cdr’
gmake: *** [cdr] Error 2
*** Error code 1

Stop in /usr/ports/net/asterisk16.
*** Error code 1

Stop in /usr/ports/net/asterisk16.
[/code]

I googled around but couldn’t find much. Only thing I found was an (closed) issue:
lists.digium.com/pipermail/aster … 72706.html

I updated my ports tree, so I have the most recent version available for me, but it didn’t help.

Can anyone help with this? Any hint appreciated…

with best regards,

Dura-Zell

Just rename sqlite3_log() to write_cdr() as per the following link and re-make:

svnview.digium.com/svn/asterisk/ … rev=252317