Trouble compiling Asterisk on FreeBSD

Asterisk project on BSD

Moderators: Moderator, Support

Trouble compiling Asterisk on FreeBSD

Postby dura-zell » Thu Jun 10, 2010 4:02 pm

Hi

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

The build stops with the following message:
Code: Select all
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.


I googled around but couldn't find much. Only thing I found was an (closed) issue:
http://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
dura-zell
Newsterisk
 
Posts: 1
Joined: Thu Jun 10, 2010 3:48 pm

Re: Trouble compiling Asterisk on FreeBSD

Postby Wafa » Fri Aug 27, 2010 2:40 pm

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

http://svnview.digium.com/svn/asterisk/ ... rev=252317
Wafa
Newsterisk
 
Posts: 1
Joined: Thu Jul 19, 2007 5:31 am


Return to Asterisk-BSD

Who is online

Users browsing this forum: No registered users and 1 guest