programming with bind librairies
D. R. Evans
N7DR at arrl.net
Wed May 2 14:57:48 UTC 2001
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 2 May 01, at 14:29, gilles.pommies at etud.univ-pau. wrote:
>
> I try to find some help about programming an application which is able to
> update a bind server(like nsupdate). The main problem is I can't build my
> application(I wrote it under Linux Debian) because there are too many
errors in
> <bind/resolv.h>
> I got the source code of nsupdate.c and I have the same problem.
> Where can I find documentation about building this kind of application?
>
> Is someone can help me please ?
>
You might look at my posting from yesterday, although if that is the only
help that you receive then it's a case of the blind leading the blind....
I never could get the supplied resolv.h to work. g++ kept complaining about
exceptions, even though there is no mention of them in resolv.h. (I suspect
some #define somewhere was messing things up, but I have no clue how to fix
the problem.)
Doc Evans
Actually, I might as well include the important part of yesterday's posting
here:
- -----
Got it to build!
The magic incantations were:
1. Do not use any of the headers from bind-devel except for <arpa/nameser.h>
2. Explicitly #define BIND_RES_POSIX3 before including any header files
3. Make sure to include -lbind on the command line (this is the only one of
the three that I deem "obvious")
This seems pretty weird to me. It surely can't be the way it's supposed to
work.
-----BEGIN PGP SIGNATURE-----
Version: PGP 6.0.2 -- QDPGP 2.60
Comment: Key obtainable from servers: ID 0x362912B8
iQA/AwUBOvAga2nXrLw2KRK4EQK1NACg1NvQ4lF2VaWbRjitV8maWXbh0o0AoJuL
PdKODWEX4o29XytdUich6tOA
=O+9A
-----END PGP SIGNATURE-----
----------------------------------------------------------
D.R. Evans N7DR / G4AMJ N7DR at arrl.net
Two assassins and one very manipulative businessman:
"Reflexive Action" is now available.
See http://www.sff.net/people/N7DR/drevans.htp for details.
----------------------------------------------------------
More information about the bind-users
mailing list