SQLite Forum

v3.36.0 fails to compile under Ubuntu
Login

v3.36.0 fails to compile under Ubuntu

(1) By anonymous on 2021-09-08 23:49:46 [link] [source]

I tried to compile (tag) release (v3.36.0) today under Ubuntu and got the following error:

sqlite3.c:38013:12: warning: ‘unixFcntlExternalReader’ used but never defined
 static int unixFcntlExternalReader(unixFile*, int*);
            ^~~~~~~~~~~~~~~~~~~~~~~

I've been using the exact same command to compile all (recent) previous versions without issues:

cc -DHAVE_READLINE -DSQLITE_MAX_MMAP_SIZE=0 -DSQLITE_OMIT_WAL -DSQLITE_DEFAULT_FOREIGN_KEYS=1 -DSQLITE_ENABLE_RTREE -DSQLITE_ENABLE_GEOPOLY -DSQLITE_SOUNDEX -DSQLITE_ENABLE_STAT4 -DSQLITE_ENABLE_UPDATE_DELETE_LIMIT -DSQLITE_ENABLE_FTS4 -DSQLITE_ENABLE_FTS5 -DSQLITE_DEFAULT_RECURSIVE_TRIGGERS=1 -DSQLITE_ENABLE_DBPAGE_VTAB -DSQLITE_INTROSPECTION_PRAGMAS -DSQLITE_THREADSAFE=0 -DSQLITE_ENABLE_EXPLAIN_COMMENTS -DSQLITE_HAVE_ZLIB -DSQLITE_ENABLE_UNKNOWN_SQL_FUNCTION -DSQLITE_ENABLE_STMTVTAB -DSQLITE_ENABLE_DBSTAT_VTAB -DSQLITE_ENABLE_OFFSET_SQL_FUNC -DSQLITE_ENABLE_JSON1 -DSQLITE_DQS=0 -DSQLITE_ENABLE_MATH_FUNCTIONS -DSQLITE_OMIT_SHARED_CACHE -I. sqlite3.c shell.c -o sqlite3 -lm -lz -ldl -lreadline

Any ideas what change since 3.35.5 broke it, or how to fix?

(2) By Richard Hipp (drh) on 2021-09-09 00:56:20 in reply to 1 [source]

Try leaving out the -DSQLITE_OMIT_WAL.

(4) By anonymous on 2021-09-09 18:54:56 in reply to 2 [link] [source]

That worked, thanks.

(3) By David Jones (vman59) on 2021-09-09 01:17:07 in reply to 1 [link] [source]

It looks like it is related to WAL file processing and your -DSQLITE_OMIT_WAL disables the creation of the function but not the call to it in unixFileControl().