On 3/8/16, Michele Dionisio <michele.dionisio at powersoft.it> wrote: > Hi, > > downloading this sqlite-autoconf-3110100.tar.gz and compiling with > > ./configure CFLAGS="-DUSE_PREAD -DSQLITE_OMIT_DEPRECATED > -DSQLITE_OMIT_LOAD_EXTENSION -DSQLITE_OMIT_TRACE -DSQLITE_OMIT_EXPLAIN"
https://www.sqlite.org/src/info/8d4b6b2b519a80f8 In addition, OMIT options are not guaranteed to work from the amalgamation. If you really need SQLITE_OMIT_... then you should build from canonical sources. > > fail with the following error: > > sqlite3.c:16183:28: warning: 'sqlite3OpcodeName' used but never defined > [enabled by default] > SQLITE_PRIVATE const char *sqlite3OpcodeName(int); > ^ > mv -f .deps/sqlite3-sqlite3.Tpo .deps/sqlite3-sqlite3.Po > /bin/sh ./libtool --tag=CC --mode=link gcc -D_REENTRANT=1 > -DSQLITE_THREADSAFE=1 -DSQLITE_ENABLE_FTS3 -DSQLITE_ENABLE_RTREE > -DSQLITE_ENABLE_EXPLAIN_COMMENTS -DUSE_PREAD -DSQLITE_OMIT_DEPRECATED > -DSQLITE_OMIT_LOAD_EXTENSION -DSQLITE_OMIT_TRACE -DSQLITE_OMIT_EXPLAIN > -o sqlite3 sqlite3-shell.o sqlite3-sqlite3.o -ldl -lpthread > libtool: link: gcc -D_REENTRANT=1 -DSQLITE_THREADSAFE=1 > -DSQLITE_ENABLE_FTS3 -DSQLITE_ENABLE_RTREE > -DSQLITE_ENABLE_EXPLAIN_COMMENTS -DUSE_PREAD -DSQLITE_OMIT_DEPRECATED > -DSQLITE_OMIT_LOAD_EXTENSION -DSQLITE_OMIT_TRACE -DSQLITE_OMIT_EXPLAIN > -o sqlite3 sqlite3-shell.o sqlite3-sqlite3.o -ldl -lpthread > sqlite3-sqlite3.o: In function `displayComment': > sqlite3.c:(.text+0x31821): undefined reference to `sqlite3OpcodeName' > sqlite3-sqlite3.o: In function `codeAllEqualityTerms': > sqlite3.c:(.text+0x83370): undefined reference to `explainIndexColumnName' > > everything works without -DSQLITE_OMIT_EXPLAIN > > regards > > Michele Dionisio > > _______________________________________________ > sqlite-users mailing list > sqlite-users at mailinglists.sqlite.org > http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/sqlite-users > -- D. Richard Hipp drh at sqlite.org

