On July 11, 2003 07:47 pm, Alexandre Julliard wrote:
LoadLibrary doesn't support loading a .so directly at this point. You need to pass it the .dll name and make sure the corresponding .so can be found somewhere in WINEDLLPATH. Or you need to add .so support to LoadLibrary...
Indeed, that was a left-over from some experiments I was doing before I left for vacation. Now, the LoadLibrary call is actually for "visual-mingw-wrap.dll". It still doesn't work, I get for bin/visual-mingw --debugmsg +module,+server the following trace:
... trace:module:MODULE_GetLoadOrder looking for C:\WINDOWS\SYSTEM\visual-mingw-wrap.dll trace:module:GetModuleFileNameW L"F:\dev\wine\visual-mingw\bin\visual-mingw.exe" trace:module:open_app_key searching 'visual-mingw-wrap' in AppDefaults\visual-mingw.exe\DllOverrides 0009: open_key( parent=(nil), access=000f003f, name=L"Machine\Software\Wine\Wine\Config\AppDefaults" ) Open key ERROR 0009: open_key() = OBJECT_NAME_NOT_FOUND { hkey=(nil) } 0009: get_key_value( hkey=0x14, name=L"visual-mingw-wrap" ) 0009: get_key_value() = OBJECT_NAME_NOT_FOUND { type=-1, total=0, data={} } 0009: get_key_value( hkey=0x14, name=L"*visual-mingw-wrap" ) 0009: get_key_value() = OBJECT_NAME_NOT_FOUND { type=-1, total=0, data={} } 0009: get_key_value( hkey=0x14, name=L"*" ) Get key \Machine\Software\Wine\Wine\Config\DllOverrides value "*"="builtin, native" 0009: get_key_value() = 0 { type=1, total=32, data={62,00,75,00,69,00,6c,00,74,00,69,00,6e,00,2c,00,20,00,6e,00,61,00,74,00,69,00,76,00,65,00,00,00} } trace:module:MODULE_GetLoadOrder got standard wildcard "b,n" for "visual-mingw-wrap.dll" trace:module:load_dll Trying built-in 'C:\WINDOWS\SYSTEM\visual-mingw-wrap.dll' trace:module:load_dll Trying native dll 'C:\WINDOWS\SYSTEM\visual-mingw-wrap.dll' warn:module:load_dll Failed to load module 'C:\WINDOWS\SYSTEM\visual-mingw-wrap.dll'; status=-1073741809 ...
And yes, WINEDLLPATH points to the right dir. Look:
[dimi@dimi visual-mingw]$ bash -x bin/visual-mingw + '[' -f /etc/bashrc ']' + . /etc/bashrc +++ id -gn +++ id -un +++ id -u ++ '[' dimi = dimi -a 500 -gt 99 ']' ++ umask 002 ++ '[' '' ']' + export EDITOR=/usr/bin/vim + EDITOR=/usr/bin/vim + export 'PATH=.:~/bin:.:~/bin:.:~/bin:.:~/bin:/bin:/usr/bin:/usr/X11R6/bin:/usr/local/bin:/opt/ant/bin:/usr/java/jdk1.3/bin:/home/dimi/bin:/opt/ant/bin:/usr/java/jdk1.3/bin' + PATH=.:~/bin:.:~/bin:.:~/bin:.:~/bin:/bin:/usr/bin:/usr/X11R6/bin:/usr/local/bin:/opt/ant/bin:/usr/java/jdk1.3/bin:/home/dimi/bin:/opt/ant/bin:/usr/java/jdk1.3/bin + export CVSROOT=:pserver:dimi@cvs.dssd.ca:/var/cvs + CVSROOT=:pserver:dimi@cvs.dssd.ca:/var/cvs + export CVS_RSH=ssh + CVS_RSH=ssh + appname=visual-mingw + appdir= ++ dirname bin/visual-mingw + appdir=bin + true + break + '[' -n bin ']' + apppath=bin/visual-mingw.exe.so + WINEDLLPATH=bin: + export WINEDLLPATH + '[' '!' -x '' ']' + WINELOADER=wine + exec wine -- bin/visual-mingw.exe.so