chicken-csc with sqlite3 added by functor on Tue Jun 29 14:47:46 2021

$ export BLOSC_DIR=/usr/local
$ export CSC_OPTIONS="\
    -I/usr/X11R6/include/ \
    -I/usr/local/include/ \
    -I/usr/local/include/inotify \
    -L/usr/X11R6/lib/ \
    -L/usr/local/lib/ \
"

$ export KIWI_LDLIBS="-L/usr/local/lib -lKiWi"
$ export KIWI_CFLAGS="-I/usr/local/include/KiWi"
$ chicken-csc -static go.scm
ld: error: undefined symbol: sqlite3_result_int
>>> referenced by sqlite3.static.c
>>>               /usr/local/lib/chicken/11/sqlite3.o:(f_6093)

ld: error: undefined symbol: sqlite3_result_double
>>> referenced by sqlite3.static.c
>>>               /usr/local/lib/chicken/11/sqlite3.o:(f_6093)

ld: error: undefined symbol: sqlite3_result_int64
>>> referenced by sqlite3.static.c
>>>               /usr/local/lib/chicken/11/sqlite3.o:(stub951)
>>> referenced by sqlite3.static.c
>>>               /usr/local/lib/chicken/11/sqlite3.o:(stub951)

ld: error: undefined symbol: sqlite3_result_text
>>> referenced by sqlite3.static.c
>>>               /usr/local/lib/chicken/11/sqlite3.o:(stub973)

ld: error: undefined symbol: sqlite3_result_null
>>> referenced by sqlite3.static.c
>>>               /usr/local/lib/chicken/11/sqlite3.o:(f_6222)

ld: error: undefined symbol: sqlite3_result_blob
>>> referenced by sqlite3.static.c
>>>               /usr/local/lib/chicken/11/sqlite3.o:(stub928)

ld: error: undefined symbol: sqlite3_value_type
>>> referenced by sqlite3.static.c
>>>               /usr/local/lib/chicken/11/sqlite3.o:(stub862)

ld: error: undefined symbol: sqlite3_value_double
>>> referenced by sqlite3.static.c
>>>               /usr/local/lib/chicken/11/sqlite3.o:(stub873)
>>> referenced by sqlite3.static.c
>>>               /usr/local/lib/chicken/11/sqlite3.o:(stub884)

ld: error: undefined symbol: sqlite3_value_bytes
>>> referenced by sqlite3.static.c
>>>               /usr/local/lib/chicken/11/sqlite3.o:(stub895)
>>> referenced by sqlite3.static.c
>>>               /usr/local/lib/chicken/11/sqlite3.o:(stub907)

ld: error: undefined symbol: sqlite3_value_text
>>> referenced by sqlite3.static.c
>>>               /usr/local/lib/chicken/11/sqlite3.o:(stub895)

ld: error: undefined symbol: sqlite3_value_blob
>>> referenced by sqlite3.static.c
>>>               /usr/local/lib/chicken/11/sqlite3.o:(stub907)

ld: error: undefined symbol: sqlite3_user_data
>>> referenced by sqlite3.static.c
>>>               /usr/local/lib/chicken/11/sqlite3.o:(f_6338)
>>> referenced by sqlite3.static.c
>>>               /usr/local/lib/chicken/11/sqlite3.o:(f_6556)
>>> referenced by sqlite3.static.c
>>>               /usr/local/lib/chicken/11/sqlite3.o:(f_6776)

ld: error: undefined symbol: sqlite3_aggregate_context
>>> referenced by sqlite3.static.c
>>>               /usr/local/lib/chicken/11/sqlite3.o:(f_6482)
>>> referenced by sqlite3.static.c
>>>               /usr/local/lib/chicken/11/sqlite3.o:(f_6620)

ld: error: undefined symbol: sqlite3_errmsg
>>> referenced by sqlite3.static.c
>>>               /usr/local/lib/chicken/11/sqlite3.o:(stub1595)

ld: error: undefined symbol: sqlite3_create_collation
>>> referenced by sqlite3.static.c
>>>               /usr/local/lib/chicken/11/sqlite3.o:(stub701)
>>> referenced by sqlite3.static.c
>>>               /usr/local/lib/chicken/11/sqlite3.o:(stub701)

ld: error: undefined symbol: sqlite3_create_function
>>> referenced by sqlite3.static.c
>>>               /usr/local/lib/chicken/11/sqlite3.o:(stub1426)
>>> referenced by sqlite3.static.c
>>>               /usr/local/lib/chicken/11/sqlite3.o:(stub1521)

ld: error: undefined symbol: sqlite3_open
>>> referenced by sqlite3.static.c
>>>               /usr/local/lib/chicken/11/sqlite3.o:(stub1616)

ld: error: undefined symbol: sqlite3_interrupt
>>> referenced by sqlite3.static.c
>>>               /usr/local/lib/chicken/11/sqlite3.o:(stub1653)

ld: error: undefined symbol: sqlite3_get_autocommit
>>> referenced by sqlite3.static.c
>>>               /usr/local/lib/chicken/11/sqlite3.o:(stub1662)

ld: error: undefined symbol: sqlite3_total_changes
>>> referenced by sqlite3.static.c
>>>               /usr/local/lib/chicken/11/sqlite3.o:(stub1681)

ld: error: too many errors emitted, stopping now (use -error-limit=0 to see all errors)
cc: error: linker command failed with exit code 1 (use -v to see invocation)

Error: shell command terminated with non-zero exit status 256: 'cc' 'go.o' '/usr/local/lib/chicken/11/args.o' '/usr/local/lib/chicken/11/sqlite3.o' '/usr/local/lib/chicken/11/spiffy.o' '/usr/local/lib/chicken/11/intarweb.o' '/usr/local/lib/chicken/11/uri-common.o' '/usr/local/lib/chicken/11/sxml-serializer.o' '/usr/local/lib/chicken/11/srfi-1.o' '/usr/local/lib/chicken/11/srfi-13.o' '/usr/local/lib/chicken/11/srfi-14.o' '/usr/local/lib/chicken/11/defstruct.o' '/usr/local/lib/chicken/11/matchable.o' '/usr/local/lib/chicken/11/uri-generic.o' '/usr/local/lib/chicken/11/base64.o' '/usr/local/lib/chicken/11/srfi-18.o' '/usr/local/lib/chicken/11/sendfile.o' '/usr/local/lib/chicken/11/memory-mapped-files.o' '/usr/local/lib/chicken/11/srfi-69.o' '/usr/local/lib/chicken/11/object-evict.o' '/usr/local/lib/chicken/11/type-errors.o' '/usr/local/lib/chicken/11/type-checks.o' '/usr/local/lib/chicken/11/synch.o' '/usr/local/lib/chicken/11/miscmacros.o' '/usr/local/lib/chicken/11/sql-null.o' '/usr/local/lib/chicken/11/synch-open.o' '/usr/local/lib/chicken/11/synch-params.o' '/usr/local/lib/chicken/11/synch-dyn.o' '/usr/local/lib/chicken/11/synch-object.o' '/usr/local/lib/chicken/11/type-checks-basic.o' '/usr/local/lib/chicken/11/type-checks-atoms.o' '/usr/local/lib/chicken/11/type-checks-structured.o' '/usr/local/lib/chicken/11/type-errors-structured.o' '/usr/local/lib/chicken/11/type-errors-basic.o' '/usr/local/lib/chicken/11/type-checks-numbers.o' '/usr/local/lib/chicken/11/type-errors-atoms.o' '/usr/local/lib/chicken/11/type-errors-numbers.o' '/usr/local/lib/chicken/11/srfi-37.o' -o 'go' -L/usr/X11R6/lib/ -L/usr/local/lib/ -L/usr/local/lib -Wl,-R/usr/local/lib /usr/local/lib/libchicken.a -lm -lpthread