pcc -o 8.out shell.8 ./libsqlite3.a8open_db: undefined: sqlite3_enable_load_extensiondo_meta_command: undefined: sqlite3_load_extensiondo_meta_command: undefined: sqlite3_traceposixFchown: undefined: fchown history_truncate_file: undefined: mkstempfn_complete: undefined: wcschrfn_complete: undefined: wcsncpyel_init: undefined: nl_langinfoel_editmode: undefined: wcscmpwcsdup: undefined: wmemcpyunvis: undefined: u_charterminal_echotc: undefined: wcstolel_match: undefined: wcsstrparse_line: undefined: tok_winitparse_line: undefined: tok_wstrparse_line: undefined: tok_wendhist_command: undefined: history_wvi_match: undefined: wcscspnpcc: 8l: 8l 689: errormk: pcc -o ... : exit status=rc 686: pcc 688: 8l: 8l 689: error The second part of errors are linking errors related to libedit. Need to fix libedit. redefinitions and stubs are put in config.h shell.c needs to be built with -DSQLITE_OMIT_LOAD_EXTENSION
pcc -o 8.out shell.8 ./libsqlite3.a8
open_db: undefined: sqlite3_enable_load_extension
do_meta_command: undefined: sqlite3_load_extension
do_meta_command: undefined: sqlite3_trace
posixFchown: undefined: fchown
history_truncate_file: undefined: mkstemp
fn_complete: undefined: wcschr
fn_complete: undefined: wcsncpy
el_init: undefined: nl_langinfo
el_editmode: undefined: wcscmp
wcsdup: undefined: wmemcpy
unvis: undefined: u_char
terminal_echotc: undefined: wcstol
el_match: undefined: wcsstr
parse_line: undefined: tok_winit
parse_line: undefined: tok_wstr
parse_line: undefined: tok_wend
hist_command: undefined: history_w
vi_match: undefined: wcscspn
pcc: 8l: 8l 689: error
mk: pcc -o ... : exit status=rc 686: pcc 688: 8l: 8l 689: error
The second part of errors are linking errors related to libedit. Need to fix libedit.
redefinitions and stubs are put in config.h
shell.c needs to be built with
-DSQLITE_OMIT_LOAD_EXTENSION