clang compile errors sqlite3 3.33.0 autoconf with TEA
(1) By rbucker on 2020-09-17 00:42:00 [source]
Starting at the beginning... (latest ChromeOS linux )
- download sqlite autoconf with TEA (amalgamation)
- decompress
- go to the source
- build the source
CC=cc ./configure
make
make install
This is where things go sideways
- cd tea
- ./configure --prefix=/usr --with-tcl=/usr/local/lib
make
The make would not complete. There were a number of errors... something about CONST
was not defined. As a guess I tried:
CFLAGS="-DCONST=const" ./configure --prefix=/usr --with-tcl=/usr/local/lib
make
and now I have this error...
./generic/tclsqlite3.c:376:3: error: use of undeclared identifier 'TCL_CHANNEL_VERSION_2'
TCL_CHANNEL_VERSION_2, /* version */
^
1 error generated.
make: *** [Makefile:289: tclsqlite3.o] Error 1
A search of the TCL source (9.0) suggests that this definition has been removed. I did not try very hard but the one reference that did pop was back in version 8.3.