nslookup failing under wine with native dnsapi.dll; RtlIpv6AddressToString() unimplemented

Robertino Benis rbenis at airyz.com
Mon Oct 24 23:52:33 CDT 2005

Thank you for that suggestion.

I've just tried building dnsapi.dll from ReactOS form their sources (0.2.8  
RC1, from http://sourceforge.net/project/showfiles.php?group_id=6553).

I was able to successfully build that dll (using mingw cross compiler).  
However, dnsapi.dll they provide doesn't have some of methods that native  
win has, and appreantly nslookup.exe and similar apps require.

BTW, from their web pages, not all is GPL, they also have some LGPL, maybe  
it would be worth investigating.

This is except from output form wine, using ReactOS dnsapi.dll:

warn:module:import_dll No implementation for  
DNSAPI.dll.DnsFreeConfigStructure imported from  
L"Z:\\home\\rbr\\src\\bwapps\\nslookup.exe", setting to 0x7f880000
warn:module:import_dll No implementation for  
DNSAPI.dll.DnsQueryConfigAllocEx imported from  
L"Z:\\home\\rbr\\src\\bwapps\\nslookup.exe", setting to 0x7f880011
warn:module:import_dll No implementation for  
ntdll.dll.RtlIpv6AddressToStringA imported from  
L"Z:\\home\\rbr\\src\\bwapps\\nslookup.exe", setting to 0x7f880022

--- and then it failed:

wine: Call from 0x100457e to unimplemented function  
DNSAPI.dll.DnsQueryConfigAllocEx, aborting
wine: Unhandled exception (thread 0009), starting debugger...
Unhandled exception: unimplemented function  
DNSAPI.dll.DnsQueryConfigAllocEx called in 32-bit code (0x7bebe526).

Stack backtrack:
=>1 0x7bebe526 stub_entry_point+0x56(dll=0x100b35a, name=0x100b344)
              [/home/rbr/src/wine/wine/dlls/ntdll/loader.c:186] in ntdll  
	fixme:dbghelp:sffip_cb NIY on 'nslookup.pdb'
   2 0x0100457e in nslookup (+0x457e) (0x7fc1feb0)
   3 0x01009f6b EntryPoint+0x125 in nslookup (0x7fc1ff2c)
   4 0x7fceb2e7 start_process+0xb7(arg=0x0)  
[/home/rbr/src/wine/wine/dlls/kernel/process.c:992] in kernel32  
   5 0xb7f57c31 wine_switch_to_stack+0x11 in libwine.so.1 (0x00000000)
0x7bebe526 stub_entry_point+0x56  
[/home/rbr/src/wine/wine/dlls/ntdll/loader.c:186] in ntdll: jmp       
0x7bebe520 stub_entry_point+0x50  
[/home/rbr/src/wine/wine/dlls/ntdll/loader.c:186] in ntdll
186         for (;;) RtlRaiseException( &rec );

I've checked their dnsapi DEF file, DnsQueryConfigAlloc is not there, so  
it wouldn't be just simple hack to make this run :-)

Oh, well... Thanks anyway.


On Mon, 24 Oct 2005 19:52:04 -0700, Steven Edwards <winehacker at gmail.com>  

> Hi,
> On 10/24/05, Dan Kegel <daniel.r.kegel at gmail.com> wrote:
>> You seem to be using a native copy of dnsapi.dll,
>> and seems unhappy that Wine's ntdll.dll lacks an implementation
>> for RtlIpv6AddressToString().
>> I suppose there's some chance that function would be very
>> easy to implement.  I'm cc'ing wine-devel in case somebody has an  
>> opinion.
> You could also grab the dnsapi.dll from ReactOS and see if it helps
> your app. Unfortuanly we can't release it to Wine even it works
> because it was based on a GPL library.
> Thanks
> Steven

Robertino Benis
Airyz Limited

More information about the wine-devel mailing list