can't build mosquitto

Asked by timdb

I'm trying to build mosquitto on Ubuntu904, I've read the compiling.txt and I've apt-get installed sqlite3, tcp-wrappers and I've put sqlite3-pcre in the mosquitto directory but it's failing with the following, any ideas?

>make
for d in client man src; do make -C ${d}; done
make[1]: Entering directory `/home/tb/Projects/mosquitto-0.5.4/client'
cc -I../src -I. -Wall -ggdb -DWITH_CLIENT -c ../src/database.c -o database.o
../src/database.c: In function ‘mqtt3_db_open’:
../src/database.c:151: error: ‘sqlite3_backup’ undeclared (first use in this functi

what I'm really after is a binary for my dd-wrt router but I thought I'd try and get this building first. Cheers :)

Question information

Language:
English Edit question
Status:
Solved
For:
mosquitto Edit question
Assignee:
No assignee Edit question
Solved by:
timdb
Solved:
Last query:
Last reply:
Revision history for this message
Roger Light (roger.light) said :
#1

mosquitto requires sqlite3 version 3.6.11 or greater for sqlite3_backup() support, and ideally >3.6.14.1 due to a sqlite bug.

I believe that Ubuntu 9.04 has version 3.6.10 of sqlite, so it's too old I'm afraid. If you're eventually building for your dd-wrt this probably won't be a problem as you'll be building your own sqlite I imagine.

Revision history for this message
timdb (timdbrown) said :
#2

thanks for the info.