Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2026-10-22
17:19 • Ticket [3432269fff] load failure under windows, with unix paths status still... artifact: e8f6e27dd0 user: serhiy.storchaka
2026-10-21
10:03 • Closed ticket [3432269fff]. artifact: b8b3cd324a user: serhiy.storchaka
2011-11-02
13:39 • New ticket [3432269fff]. artifact: 8e2662ed32 user: petasis

load failure under windows, with unix paths

Closed / Fixed3432269fffffffffffffffffffffffffffffffffCreated 15 years agoUpdated 42 days ago
Descriptionplain2011-11-02 13:39:30
Load fails under ActiveTcl 8.6b6 to load some dlls under windows:

(petasis) 49 % package require tdbc
1.0b16
(petasis) 50 % package require tdbc::mysqlcouldn't load library "libmysql.dll": this library or a dependent library could not be found in library path
    while executing
"load c:/tclapps/tcl/lib/teapot/package/win32-ix86/lib/tdbc_mysql1.0b15/tdbcmysql10b15.dll tdbcmysql"
    ("package ifneeded tdbc::mysql 1.0b15" script)
    invoked from within
"package require tdbc::mysql"
    ("uplevel" body line 1)
    invoked from within
"uplevel #0 {package require tdbc::mysql}"
(petasis) 51 % load [file native c:/tclapps/tcl/lib/teapot/package/win32-ix86/lib/tdbc_mysql1.0b15/tdbcmysql10b15.dll] tdbcmysql
(petasis) 52 % pwd
D:/Users/petasis
(petasis) 53 % package require tdbc::mysql
1.0b15
(petasis) 54 % 

The filename loading using unix notation fails, using "file native" succeeds.
serhiy.storchakawiki2026-10-21 10:03:39

Fixed in 8.6.2 by [578237c4c6]: native Windows paths now always use backslashes, so LoadLibraryExW() also finds dependent DLLs next to an extension that was loaded with a forward-slash path. Tested on Windows 11: fails with 8.6.0/8.6.1, works with 8.6.2, 8.6.18, 9.0.5 and 9.1.

serhiy.storchaka Ticket [3432269fff]: 3 changes [History diff]2026-10-22 17:19:31
Log in (anonymous is fine) to add a comment.