(Looks like my previous letters has been failed to deliver. so I resend it)
Due version of sqlite in CentOS5 last snapshots 20100618 and alter does not compile with next error: dict_sqlite.c:71:2: error: #error "Your SQLite version is too old" dict_sqlite.c: In function 'dict_sqlite_lookup': dict_sqlite.c:203: warning: implicit declaration of function 'sqlite3_prepare_v2' make: *** [dict_sqlite.o] Error 1 make: *** [update] Error 1 error: Bad exit status from /var/tmp/rpm-tmp.38770 (%build) RPM build errors: Bad exit status from /var/tmp/rpm-tmp.38770 (%build) I use postfix with sqlite patch about 2 years with small fix to function name. I suggest to make something like this for postfix 2.8. Or maybe check sqlite version at compile time and use ifdef's. -------- Original Message -------- Subject: [SPAM] Re: [Fwd: postfix sqlite patch.] Date: Wed, 12 Mar 2008 10:09:22 +0100 From: Axel Steiner <a...@treibsand.com> To: xxx Hi, Yeah, looks like where is no such function in CentOS 5.1 version of sqlite. strings /usr/lib/libsqlite3.so | grep prepare sqlite3_prepare sqlite3_prepare16 # grep prepare /usr/include/sqlite3.h | grep int int sqlite3_prepare( int sqlite3_prepare16( ... I'm very far away C/Cxx programming. Can you, please, say, can function be safely replaced with sqlite3_prepare or sqlite3_prepare16 ? From the whishes to your very good idea of patch - include some documentaion with requirements (INSTALL, README). yes. It should work, use sqlite3_prepare(). The function arguments are the same. This patch has no SQLite version check, because I don't wanted to support deprecated functions. This is the only function which is not present in SQLite versions prior 3.3.9. Manpages and documentation are on my todo list :-) That's the only stuff which is missing. Axel