trouble compiling liblwres on Windows (BIND 9.3.0)

Danny Mayer mayer at gis.net
Fri Jan 21 01:32:10 UTC 2005


At 05:18 PM 1/20/2005, Mark Andrews wrote:

> >
> > The compiler fails on liblwres with the message:
> >
> > W:\Z\kits\BIND\bind-9.3.0\lib\lwres\win32\lwconfig.c(42) : fatal error
> > C1083: Cannot open include file: 'iphlpapi.h': No such file or directory
> >
> > That's where I got the impression that the file was required for the
> > build :D.
>
>         Well I build w/ a later version of the compiler (couldn't buy
>         6.0).   Danny, as far as I know, still build w/ 6.0 and hasn't
>         reported a problem.
>
>         I would be double checking you havn't lost the header file.
>         I have it as Vc7/PlatformSDK/Include/IPHlpApi.h

VC++ V6 do not include the necessary files and you need to get them
from the SDK. V7 (aka .NET) includes these files and you don't need
the SDK for them. For V6 you need the following 4 files from the SDK:
iphlpapi.h
iptypes.h
ipexport.h
iphlpapi.lib

If you don't want to install the SDK you can just copy these files. I just
put the headers into the VC98/Include directory and the link library into
the VC98/Lib directory. After that everything builds.

Note that this is a requirement as of 9.3.0. The 9.2.x versions don't
use it. It was necessary in order to deal correctly with the nameserver
list, domain and domain search information. Looking at the tarball
I notice that the win32utils/win32-build.txt file which contain build
instructions hasn't been updated to reflect this change.

Note I have built on V7 also without problems.

Danny


>
> > Stefan Puiu wrote:
> >
> > >Hi again,
> > >
> > >it seems building liblwres from BIND 9.3.0 on Windows 2000 requires
> > >iphlpapi.h, a file which is supposed to be in the MS SDK. However, the
> > >file isn't part of my Microsoft Visual C++ 6.0 (+SP5) install. I see the
> > >win32utils/win32-build.txt file states MS VC++ 6.0 SP3 as a minimum
> > >requirement, but doesn't seem to have been updated lately (no change
> > >between 9.2.3 and 9.3.0, the date inside is from 2001). Any changes in
> > >the build requirements for Windows I should know about?
> > >
> > >Thanks in advance.
> > >
> > >
> > >
> > >
> > >
> >
> >
>--
>Mark Andrews, ISC
>1 Seymour St., Dundas Valley, NSW 2117, Australia
>PHONE: +61 2 9871 4742                 INTERNET: Mark_Andrews at isc.org



More information about the bind-users mailing list