[cvsnt-dev] [PATCH] Fix compiling bug on amd64

Andreas Tscharner starfire at dplanet.ch
Wed Jul 19 18:49:34 UTC 2006


Community technical support mailing list was retired 2010 and replaced with a professional technical support team. For assistance please contact: Pre-sales Technical support via email to sales@march-hare.com.


Hello Tony,

Attached is a patch, provided by Kurt Roeckx <kurt at roeckx.be>, that
fixes a bug preventing to compile build 2382 on amd64. See
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=378253
for more information. The attached patch is diffed against build 2382,
please apply.

Best regards
	Andreas
-- 
Andreas Tscharner                                   starfire at dplanet.ch
-----------------------------------------------------------------------
Except for 75% of the women, everyone in the whole world wants to have
sex.                                                  -- Ellyn Mustard
-------------- next part --------------
Index: configure.in
===================================================================
RCS file: /usr/local/cvs/cvsnt/configure.in,v
retrieving revision 1.41.2.182
diff -u -r1.41.2.182 configure.in
--- configure.in	28 Jun 2006 13:30:35 -0000	1.41.2.182
+++ configure.in	19 Jul 2006 18:30:01 -0000
@@ -341,7 +341,23 @@
 
 AC_CHECK_LIB(socket,getaddrinfo)
 
-AC_SEARCH_LIBS(res_query, resolv)
+AC_MSG_CHECKING(for res_query)
+AC_TRY_LINK_FUNC(res_query, AC_MSG_RESULT(yes),
+	[ AC_MSG_RESULT(no)
+	saved_LIBS="$LIBS"
+	LIBS="$LIBS -lresolv"
+	AC_MSG_CHECKING(for res_query in -lresolv)
+	AC_LINK_IFELSE([[
+#include <resolv.h>
+int main()
+{
+	res_query (0, 0, 0, 0, 0);
+	return 0;
+}]],
+	[ LIBS="$LIBS -lresolv"; AC_MSG_RESULT(yes)],
+	[ LIBS="$saved_LIBS"; AC_MSG_RESULT(no)])
+])
+
 
 AC_REPLACE_FUNCS(getaddrinfo getnameinfo inet_aton)
 


More information about the cvsnt-dev mailing list