Unable to build with reolv.h

D. R. Evans N7DR at arrl.net
Sun Apr 29 13:38:01 UTC 2001


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

This may not be the right place for this question, but I couldn't find anywhere 
more suitable :-(

Trying to write a program that makes use of the devlopment headers and library 
(from the package bind-devel version 8.2.2P5-12mdk.rpm), I get the following 
error when I include resolv.h from my program:

usr/include/resolv.h:120: invalid exception specifications.

(I get the same error on line 127 as well).

That line in resolv.h is:

typedef res_sendhookact (*res_send_qhook)__P((struct sockaddr_in * const *ns, 
					      const u_char **query,
					      int *querylen,
					      u_char *ans,
					      int anssiz,
					      int *resplen));

(line 127 is similar)

Does anyone have any idea what the problem is (or, perhaps more importantly, how 
to make it go away)???

Why g++ is complaining about exceptions is a complete mystery to me; it seems 
like it is confused for some reason [but then, I freely admit that I'm certainly 
confused; there must be something pretty basic wrong for the out-of-the-box code 
from the RPM to be refused like this]. Any clues/suggestions greatly appreciated.

  Doc Evans


-----BEGIN PGP SIGNATURE-----
Version: PGP 6.0.2 -- QDPGP 2.60 
Comment: Key obtainable from servers: ID 0x362912B8

iQA/AwUBOuwZOGnXrLw2KRK4EQJcGQCggcXCWICr0yK6WMgggf9g2pGlTvMAnjJ5
zk0lgaofz9EVD+pAaSw8JM54
=AXhW
-----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