sqlite3.h and sqlite3.c are not from the same sqlite version.

$ fossil sqlite3
<br/>
SQLite header and source version mismatch
<br/>
2011-06-24 11:29:51
<br/>
2011-06-03 14:19:10
<br/>
$