This is Ubuntu 10.04 LTS i686 here with sqlite3 3.6.22-1 (SQLITE_VERSION_NUMBER 3006022).
v5-34-00-patches/sql/sqlite/src/TSQLiteServer.cxx:45: error: ‘SQLITE_OPEN_URI’ was not declared in this scope
make: *** [sql/sqlite/src/TSQLiteServer.o] Error 1
Indeed, “/usr/include/sqlite3.h” does NOT define “SQLITE_OPEN_URI”.
For the moment, one needs to configure ROOT adding “–disable-sqlite”.
Please fix it.