Re: Build dlz_ldap_driver under Windows
Evan Hunt <[email protected]> Wed, 19 Jun 2013 16:37:26 +0000
| Newsgroups | gmane.network.dns.bind9.dlz |
|---|---|
| Message-ID | <[email protected]> |
On Wed, Jun 19, 2013 at 05:50:19PM +1000, Roman Volkov wrote: > Dear bind-dlz-testers, > I wish to build bind with dlz-ldap on windows. > I am able to build bind with dlz support, but it doesn't build dlz-ldap > driver. > As I see, no any win32 files available for dlz drivers except example. > I tried to copy/modify example driver files for dlz-ldap, but while without > success. > Does anybody have win32 files to build dlz-ldap driver? > As I understand, it should build .dll file which I will connect to bind > with dlopen driver or something similar. > I am working on my own project and bind with dlz-ldap is a part of it. I > tested bind with dlz-ldap on osx and on linux, but unable to build it for > windows. Hello Roman, There are two sorts of DLZ driver -- the one that links with BIND at compile time, and the one that gets dynamically opened at runtime. dlz-ldap is currently the first sort; it doesn't build as a DLL, it's supposed to be built as part of named. If you're able to build BIND in Visual Studio, then you can probably hack the build to make it work; use the 'dlopen' driver in bin/named/win32/dlz_dlopen_driver.c as a guideline. Here's a possibly better alternative, though. Coming up in BIND 9.10 we're releasing a version of dlz-ldap which is the *second* sort of DLZ driver; I'll send you a copy of it in separate mail. It doesn't have any win32 files, but perhaps you can modify the ones for dlz_example to get it to work. Once you have it building as a DLL, the windows version of named should be able to load it at runtime. Unfortunately I can't help with the process; I know very little about the win32 development environment. If you do get it working, it'd be great if you contributed back your changes. -- Evan Hunt -- [email protected] Internet Systems Consortium, Inc. ------------------------------------------------------------------------------ This SF.net email is sponsored by Windows: Build for Windows Store. http://p.sf.net/sfu/windows-dev2dev