|
2026-10-22
| ||
| 17:19 | • Ticket [342a9ab0e8] sqlite build error status still Closed with 3 other chan... artifact: d52da10eb6 user: serhiy.storchaka | |
|
2026-10-15
| ||
| 11:29 | • Closed ticket [342a9ab0e8]. artifact: c20704d4b0 user: serhiy.storchaka | |
|
2023-11-13
| ||
| 19:20 | • Pending ticket [342a9ab0e8]. artifact: 306b29d670 user: jan.nijtmans | |
| 17:54 | • New ticket [342a9ab0e8]. artifact: 872b55f19a user: dgp | |
sqlite build error
Closed / Fixed342a9ab0e817c7d439d98c621f25d23305eac3a4Created 3 years agoUpdated 42 days ago
Descriptionplain2023-11-13 17:54:19
Trying to build the sqlite trunk against the Tcl trunk, I see...
In file included from /home/dgp/fossil/tcl/generic/tcl.h:2426:0,
from /home/dgp/fossil/tcl/pkgs/sqlite/generic/tclsqlite3.c:46:
/home/dgp/fossil/tcl/pkgs/sqlite/generic/tclsqlite3.c: In function ‘dbPrepareAndBind’:
/home/dgp/fossil/tcl/generic/tclDecls.h:4032:67: error: size of array ‘_bool_Var’ is negative
# define TCLBOOLWARNING(boolPtr) ({__attribute__((unused)) char _bool_Var[sizeof(*(boolPtr)) > sizeof(int) ? -1 : 1];}),
^
/home/dgp/fossil/tcl/generic/tclDecls.h:4041:3: note: in expansion of macro ‘TCLBOOLWARNING’
(TCLBOOLWARNING(boolPtr)(sizeof(*(boolPtr)) >= sizeof(int) && (TCL_MAJOR_VERSION == 8)) ? tclStubsPtr->tcl_GetBooleanFromObj(interp, objPtr, (int *)(boolPtr)) : \
^
/home/dgp/fossil/tcl/pkgs/sqlite/generic/tclsqlite3.c:1588:11: note: in expansion of macro ‘Tcl_GetBooleanFromObj’
Tcl_GetBooleanFromObj(interp, pVar, &n);
jan.nijtmanswiki2023-11-13 19:20:47
Fixed here. This warning was built into tcl.h exactly for this purpose: Tcl_GetBooleanFromObj() should never be used with a Tcl_Size or Tcl_WideInt pointer argument: You cannot always blindly convert int -> Tcl_Size
The warning in Tcl works! Error now fixed in SQLite. I will prepare a new version (3.44.0), which contains this fix.
Thanks!
serhiy.storchakawiki2026-10-15 11:29:06
Closing: fixed, see above.
serhiy.storchaka Ticket [342a9ab0e8]: 3 changes
[History diff]2026-10-22 17:19:26
Log in (anonymous is fine) to add a comment.