Here is the output from the two attempts (with [fails] and without [succeeds] the FTS5 enable):
tonyp at xxx:~/temp$ dir shell.c sqlite3.c sqlite3.h tonyp at xxx:~/temp$ gcc -DSQLITE_DEFAULT_FOREIGN_KEYS=1 -DSQLITE_ENABLE_RTREE -DSQLITE_SOUNDEX -DSQLITE_ENABLE_STAT4 -DSQLITE_ENABLE_UPDATE_DELETE_LIMIT -DSQLITE_ENABLE_FTS4 -DSQLITE_ENABLE_FTS5 -DSQLITE_DEFAULT_RECURSIVE_TRIGGERS=1 -o sql -DSQLITE_THREADSAFE=0 -DSQLITE_OMIT_LOAD_EXTENSION shell.c sqlite3.c /tmp/ccXId5rG.o: In function `fts5Bm25GetData': sqlite3.c:(.text+0xb521b): undefined reference to `log' collect2: error: ld returned 1 exit status tonyp at xxx:~/temp$ gcc -DSQLITE_DEFAULT_FOREIGN_KEYS=1 -DSQLITE_ENABLE_RTREE -DSQLITE_SOUNDEX -DSQLITE_ENABLE_STAT4 -DSQLITE_ENABLE_UPDATE_DELETE_LIMIT -DSQLITE_ENABLE_FTS4 -DSQLITE_DEFAULT_RECURSIVE_TRIGGERS=1 -o sql -DSQLITE_THREADSAFE=0 -DSQLITE_OMIT_LOAD_EXTENSION shell.c sqlite3.c tonyp at xxx:~/temp$ -----Original Message----- From: Dan Kennedy Sent: Saturday, October 17, 2015 10:36 PM To: sqlite-users at mailinglists.sqlite.org Subject: Re: [sqlite] Compilation fails under Linux (Ubuntu) when FTS5 is enabled On 10/18/2015 02:21 AM, tonyp at acm.org wrote: > I'm trying to compile the shell using the amalgamation (three files > involved: shell.c sqlite3.c sqlite.h). > This is a process I've done a zillion times before without problems. > The only new thing I did was add the -DSQLITE_ENABLE_FTS5 to command line. > > (Adding the -lm switch did not help.) That's quite surprising. Please post the full command line and the resulting output. Thanks, Dan. > > -----Original Message----- From: Dan Kennedy > Sent: Saturday, October 17, 2015 4:35 PM > To: sqlite-users at mailinglists.sqlite.org > Subject: Re: [sqlite] Compilation fails under Linux (Ubuntu) when FTS5 is > enabled > > On 10/17/2015 06:47 PM, tonyp at acm.org wrote: >> What the subject says and I get this error: >> >> /tmp/cco8QBGJ.o: In function `fts5Bm25GetData': >> sqlite3.c:(.text+0xb521b): undefined reference to `log' >> >> (using the latest 3.9.1 release) > > You'll need to add "-lm" to the command line. > > Was this using one of the configure scripts? Or a hand-made makefile? > > Dan. > > >> >> Any ideas? >> Thanks. >> _______________________________________________ >> sqlite-users mailing list >> sqlite-users at mailinglists.sqlite.org >> http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/sqlite-users > > _______________________________________________ > sqlite-users mailing list > sqlite-users at mailinglists.sqlite.org > http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/sqlite-users > _______________________________________________ > sqlite-users mailing list > sqlite-users at mailinglists.sqlite.org > http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/sqlite-users _______________________________________________ sqlite-users mailing list sqlite-users at mailinglists.sqlite.org http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/sqlite-users