Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2014-08-20
14:09 • Closed ticket [395e4d28b1]: 8.6.2 RC1 sqlite build fails plus 6 other change... artifact: fbce698579 user: dgp
10:42 • Ticket [395e4d28b1]: 4 changes artifact: 6976f7f4c4 user: jan.nijtmans
03:43 • Ticket [395e4d28b1]: 3 changes artifact: 12dd1c2a7a user: apnadkarni
03:18 • New ticket [395e4d28b1]. artifact: 1000469518 user: apnadkarni

8.6.2 RC1 sqlite build fails

Closed / Fixed395e4d28b1bc2614be6a14bffc10bc2cb538f5bbCreated 12 years agoUpdated 12 years ago
Descriptionplain2014-08-20 03:18:06
Windows 8, VC8 compiler (64-bit). sqlite build fails with the following error message:

tclsqlite3.obj : error LNK2019: unresolved external symbol __security_cookie referenced in function sqlite3PutVarint

I believe error is caused by bufferoverflowU.lib not being included in the link line (all the other packages have it).

Tcl and other bundled packages built without errors.

/Ashok
apnadkarniplain2014-08-20 03:43:11
The patch below, copied from the tclsh makefile fixes the problem for me.

--- makefile.vc.orig    2014-08-20 08:22:27 +0530
+++ makefile.vc 2014-08-20 09:07:28 +0530
@@ -282,6 +282,14 @@
 conlflags = $(lflags) -subsystem:console
 guilflags = $(lflags) -subsystem:windows
 baselibs   = $(TCLSTUBLIB)
+# Avoid 'unresolved external symbol __security_cookie' errors.
+# c.f. http://support.microsoft.com/?id=894573
+!if "$(MACHINE)" == "IA64" || "$(MACHINE)" == "AMD64"
+!if $(VCVERSION) > 1399 && $(VCVERSION) < 1500
+baselibs   = $(baselibs) bufferoverflowU.lib
+!endif
+!endif
+

 #---------------------------------------------------------------------
 # TclTest flags
jan.nijtmanswiki2014-08-20 10:42:23

The sampleextension already has this part:

http://core.tcl.tk/sampleextension/artifact/f582f10cbe?ln=319-325

it just has to be taken over by tclsqlite3 as well.

Assigning to Donald Porter

dgpplain2014-08-20 14:09:25
Similar patch applied to go into next RC.
Log in (anonymous is fine) to add a comment.