| Ticket UUID: | 3432269 | ||
| Title: | load failure under windows, with unix paths | ||
| Type: | Bug | Created on: | 2011-11-02 13:39:30 |
| Submitter: | petasis | Assigned to: | kennykb |
| Subsystem: | 40. Dynamic Loading | Severity: | |
| Priority: | 5 Medium | Last modified: | 2026-10-22 17:19:31 |
| Status: | Closed | Closed by: | serhiy.storchaka |
| Resolution: | Fixed | Closed on: | 2026-10-21 10:03:39 |
| Version: | obsolete: 8.6b2 | ||
| Description: | ||||
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.
| ||||
| User Comments: | ||||
serhiy.storchaka added on 2026-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. | ||||
