Tomas Hozza 60039a
diff -up bind-9.9.3rc2/config.h.in.multlib-conflict bind-9.9.3rc2/config.h.in
Tomas Hozza 60039a
--- bind-9.9.3rc2/config.h.in.multlib-conflict	2013-04-30 08:38:46.000000000 +0200
Tomas Hozza 60039a
+++ bind-9.9.3rc2/config.h.in	2013-05-13 12:10:22.514870894 +0200
Tomas Hozza 60039a
@@ -416,7 +416,7 @@ int sigwait(const unsigned int *set, int
Tomas Hozza a01339
 #undef PORT_NONBLOCK
Tomas Hozza a01339
 
Tomas Hozza a01339
 /* The size of `void *', as computed by sizeof. */
Tomas Hozza a01339
-#undef SIZEOF_VOID_P
Tomas Hozza a01339
+/* #undef SIZEOF_VOID_P */
Tomas Hozza a01339
 
Tomas Hozza a01339
 /* Define to 1 if you have the ANSI C header files. */
Tomas Hozza a01339
 #undef STDC_HEADERS
Tomas Hozza 60039a
diff -up bind-9.9.3rc2/configure.in.multlib-conflict bind-9.9.3rc2/configure.in
Tomas Hozza 60039a
--- bind-9.9.3rc2/configure.in.multlib-conflict	2013-05-13 12:10:22.481870901 +0200
Tomas Hozza 60039a
+++ bind-9.9.3rc2/configure.in	2013-05-13 12:10:22.515870894 +0200
Tomas Hozza 60039a
@@ -2251,7 +2251,9 @@ int getnameinfo(const struct sockaddr *,
Tomas Hozza a01339
                 size_t, char *, size_t, int);],
Tomas Hozza a01339
 [ return (0);],
Tomas Hozza a01339
 	[AC_MSG_RESULT(size_t for buflen; int for flags)
Tomas Hozza a01339
-	 AC_DEFINE(IRS_GETNAMEINFO_BUFLEN_T, size_t)
Tomas Hozza a01339
+	# Changed to solve multilib conflict on Fedora 
Tomas Hozza a01339
+	#AC_DEFINE(IRS_GETNAMEINFO_BUFLEN_T, size_t)
Tomas Hozza a01339
+	 AC_DEFINE(IRS_GETNAMEINFO_BUFLEN_T, socklen_t)
Tomas Hozza a01339
 	 AC_DEFINE(IRS_GETNAMEINFO_FLAGS_T, int)],
Tomas Hozza a01339
 [AC_MSG_RESULT(not match any subspecies; assume standard definition)
Tomas Hozza a01339
 AC_DEFINE(IRS_GETNAMEINFO_BUFLEN_T, socklen_t)
Tomas Hozza 60039a
diff -up bind-9.9.3rc2/isc-config.sh.in.multlib-conflict bind-9.9.3rc2/isc-config.sh.in
Tomas Hozza 60039a
--- bind-9.9.3rc2/isc-config.sh.in.multlib-conflict	2013-04-30 08:38:46.000000000 +0200
Tomas Hozza 60039a
+++ bind-9.9.3rc2/isc-config.sh.in	2013-05-13 12:26:40.258698745 +0200
Tomas Hozza 60039a
@@ -21,7 +21,18 @@ prefix=@prefix@
Tomas Hozza a01339
 exec_prefix=@exec_prefix@
Tomas Hozza a01339
 exec_prefix_set=
Tomas Hozza a01339
 includedir=@includedir@
Tomas Hozza 60039a
-libdir=@libdir@
Tomas Hozza a01339
+arch=$(uname -m)
Tomas Hozza a01339
+
Tomas Hozza a01339
+case $arch in
Tomas Hozza a01339
+	x86_64 | amd64 | sparc64 | s390x | ppc64)
Tomas Hozza a01339
+		libdir=/usr/lib64
Tomas Hozza a01339
+		sec_libdir=/usr/lib
Tomas Hozza a01339
+		;;
Tomas Hozza a01339
+	* )
Tomas Hozza a01339
+		libdir=/usr/lib
Tomas Hozza a01339
+		sec_libdir=/usr/lib64
Tomas Hozza a01339
+		;;
Tomas Hozza a01339
+esac
Tomas Hozza a01339
 
Tomas Hozza a01339
 usage()
Tomas Hozza a01339
 {
Tomas Hozza 60039a
@@ -133,6 +144,16 @@ if test x"$echo_libs" = x"true"; then
Tomas Hozza 60039a
 	if test x"${exec_prefix_set}" = x"true"; then
Tomas Hozza 60039a
 		includes="-L${exec_prefix}/lib"
Tomas Hozza 60039a
 	else
Tomas Hozza 60039a
+		if [ ! -x $libdir/libisc.so ] ; then
Tomas Hozza 60039a
+			if [ ! -x $sec_libdir/libisc.so ] ; then
Tomas Hozza 60039a
+				echo "Error: ISC libs not found in $libdir"
Tomas Hozza 60039a
+				if [ -d $sec_libdir ] ; then
Tomas Hozza 60039a
+					echo "Error: ISC libs not found in $sec_libdir"
Tomas Hozza 60039a
+				fi
Tomas Hozza 60039a
+				exit 1
Tomas Hozza a01339
+			fi
Tomas Hozza 60039a
+			libdir=$sec_libdir
Tomas Hozza a01339
+		fi
Tomas Hozza 60039a
 		libs="-L${libdir}"
Tomas Hozza 60039a
 	fi
Tomas Hozza a01339
 	if test x"$liblwres" = x"true" ; then