[PATCH] res_querydomain fix

Jakub Jelinek jakub@redhat.com
Wed May 3 01:57:00 GMT 2000


Hi!

glibc 2.1.x export symbol res_querydomain, that's what resolv/Versions in
2.1.90 export as well, but due to the unconditional redefinition (have no
idea why it is there) __res_querydomain is not exported at all and
res_querydomain does not exist at all. So programs wanting to use
res_querydomain loose.
BTW: _res_resultcodes and __p_rr used to be exported as well in glibc 2.1.x
and are still mentioned in the Versions file, but they are no longer
present. Should we add those for binary compatibility?
I know _res_resultcodes has been moved to some other array with different
structure, but even if some app used it and was recompiled, that new array
is not exported at all.

2000-03-05  Jakub Jelinek  <jakub@redhat.com>

	* resolv/resolv.h (res_querydomain): Remove redefinition to
	__res_querydomain (reported by Owen Taylor <otaylor@redhat.com>).

--- resolv/resolv.h.jj	Mon Jan  3 07:35:03 2000
+++ resolv/resolv.h	Wed May  3 10:32:57 2000
@@ -266,7 +266,6 @@ extern struct __res_state _res;
 #define p_query			__p_query
 #define res_close		__res_close
 #define res_isourserver		__res_isourserver
-#define res_querydomain		__res_querydomain
 #define res_send		__res_send
 
 __BEGIN_DECLS

	Jakub


More information about the Libc-hacker mailing list