hi, On Thu, 24 Apr 2008 09:32:22 +0200 (CEST), s...@datanet.hu wrote: > Hi pete, > in the meantime I download and install an etch in vmware, to see the > problem (and the possible solution) myself.
Some progs pulled the distro-version of sqlite and of its dev packages, and i think upon build this is picked up instead of a local copy of a fresher sqlite which is only built but not installed to prevent problems with the distro-packages which needs sqlite. I'm not sure my hack in makefile's cflags (i added '-I../sqlite-3.5.6' to make it find the newer lib) are enough for a successful build, but i can't risk wrecking a live mail server by installing an updated version of sqlite :( I'll research what pkg depends on the distro-devel files.... > Just an idea first to try: define the sqlite3_prepare_v2 function as > an "alias" to sqlite3_prepare? Because according to the sqlite3 docs, > the latter is (or should be) the same as sqlite3_prepare_v2, but it's > obsoleted. > > So, you may try to add the following in sql.h inside the > #ifdef HAVE_SQLITE3 ... #endif block: > > > #define sqlite3_prepare_v2 sqlite3_prepare > seems close.... without the mod, the last errors after make clean && make /usr/local/src/clapf-nightly_2008_04_23/bayes.c:605: undefined reference to `sqlite3_prepare_v2' /usr/local/src/clapf-nightly_2008_04_23/bayes.c:647: undefined reference to `sqlite3_prepare_v2' sqlite3.o: In function `sqlite3_qry': /usr/local/src/clapf-nightly_2008_04_23/sqlite3.c:43: undefined reference to `sqlite3_prepare_v2' sqlite3.o: In function `do_sqlite3_qry': /usr/local/src/clapf-nightly_2008_04_23/sqlite3.c:147: undefined reference to `sqlite3_prepare_v2' sql.o: In function `update_training_metadata': /usr/local/src/clapf-nightly_2008_04_23/sql.c:276: undefined reference to `sqlite3_prepare_v2' sql.o:/usr/local/src/clapf-nightly_2008_04_23/sql.c:208: more undefined references to `sqlite3_prepare_v2' follow collect2: ld returned 1 exit status make: *** [clapf] Error 1 after the mod clapf_admin.o: In function `next_uid': /usr/local/src/clapf-nightly_2008_04_23/clapf_admin.c:59: undefined reference to `sqlite3_prepare_v2' clapf_admin.o: In function `main': /usr/local/src/clapf-nightly_2008_04_23/clapf_admin.c:146: undefined reference to `sqlite3_prepare_v2' /usr/local/src/clapf-nightly_2008_04_23/clapf_admin.c:163: undefined reference to `sqlite3_prepare_v2' collect2: ld returned 1 exit status make: *** [clapf_admin] Error 1 hope this helps.