SQLite Forum

Errors building with FreeBSD 11.3
Login
I get above error in FreeBSD 11.3:

shell.c:127:11: fatal error: 'editline/readline.h' file not found

Even if I configure it with --disable-readline or later add add 
--enable-editline.

I have GNU readline installed, and this error disappears if I add 
CPPFLAGS=-I/usr/local/include LDFLAFS=-L/usr/local/lib

The flags are hence completely ignored.

Later I get the following errors:


/usr/opt/Sqlite/src/sqlite/src/tclsqlite.c:2353:33: error: use of undeclared
      identifier 'SQLITE_DBCONFIG_LEGACY_FILE_FORMAT'
        { "legacy_file_format", SQLITE_DBCONFIG_LEGACY_FILE_FORMAT    },
                                ^
/usr/opt/Sqlite/src/sqlite/src/tclsqlite.c:2358:33: error: use of undeclared
      identifier 'SQLITE_DBCONFIG_TRUSTED_SCHEMA'
        { "trusted_schema",     SQLITE_DBCONFIG_TRUSTED_SCHEMA        },
                                ^
/usr/opt/Sqlite/src/sqlite/src/tclsqlite.c:2371:26: error: invalid application
      of 'sizeof' to an incomplete type 'const struct DbConfigChoices []'
      for(ii=0; ii<sizeof(aDbConfig)/sizeof(aDbConfig[0]); ii++){
                         ^~~~~~~~~~~
/usr/opt/Sqlite/src/sqlite/src/tclsqlite.c:2384:26: error: invalid application
      of 'sizeof' to an incomplete type 'const struct DbConfigChoices []'
      for(ii=0; ii<sizeof(aDbConfig)/sizeof(aDbConfig[0]); ii++){
                         ^~~~~~~~~~~
/usr/opt/Sqlite/src/sqlite/src/tclsqlite.c:2387:21: error: invalid application
      of 'sizeof' to an incomplete type 'const struct DbConfigChoices []'
      if( ii>=sizeof(aDbConfig)/sizeof(aDbConfig[0]) ){
                    ^~~~~~~~~~~
/usr/opt/Sqlite/src/sqlite/src/tclsqlite.c:2861:18: error: use of undeclared
      identifier 'SQLITE_INNOCUOUS'
        flags |= SQLITE_INNOCUOUS;
                 ^
/usr/opt/Sqlite/src/sqlite/src/tclsqlite.c:3794:18: error: use of undeclared
      identifier 'SQLITE_OPEN_NOFOLLOW'
        flags |= SQLITE_OPEN_NOFOLLOW;
                 ^
/usr/opt/Sqlite/src/sqlite/src/tclsqlite.c:3796:19: error: use of undeclared
      identifier 'SQLITE_OPEN_NOFOLLOW'
        flags &= ~SQLITE_OPEN_NOFOLLOW;