05_amd64_fix.patch 7.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218
  1. diff -Nur dsniff-2.4-old/configure dsniff-2.4/configure
  2. --- dsniff-2.4-old/configure 2009-09-15 00:11:17.166205002 +0300
  3. +++ dsniff-2.4/configure 2009-09-15 00:11:20.344202405 +0300
  4. @@ -2667,15 +2667,62 @@
  5. echo "$ac_t""no" 1>&6
  6. fi
  7. +echo $ac_n "checking for __dn_expand in -lresolv""... $ac_c" 1>&6
  8. +echo "configure:2672: checking for __dn_expand in -lresolv" >&5
  9. +ac_lib_var=`echo resolv'_'__dn_expand | sed 'y%./+-%__p_%'`
  10. +if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  11. + echo $ac_n "(cached) $ac_c" 1>&6
  12. +else
  13. + ac_save_LIBS="$LIBS"
  14. +LIBS="-lresolv $LIBS"
  15. +cat > conftest.$ac_ext <<EOF
  16. +#line 2680 "configure"
  17. +#include "confdefs.h"
  18. +/* Override any gcc2 internal prototype to avoid an error. */
  19. +/* We use char because int might match the return type of a gcc2
  20. + builtin and then its argument prototype would still apply. */
  21. +char __dn_expand();
  22. +
  23. +int main() {
  24. +__dn_expand()
  25. +; return 0; }
  26. +EOF
  27. +if { (eval echo configure:2691: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  28. + rm -rf conftest*
  29. + eval "ac_cv_lib_$ac_lib_var=yes"
  30. +else
  31. + echo "configure: failed program was:" >&5
  32. + cat conftest.$ac_ext >&5
  33. + rm -rf conftest*
  34. + eval "ac_cv_lib_$ac_lib_var=no"
  35. +fi
  36. +rm -f conftest*
  37. +LIBS="$ac_save_LIBS"
  38. +
  39. +fi
  40. +if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  41. + echo "$ac_t""yes" 1>&6
  42. + ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
  43. + -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
  44. + cat >> confdefs.h <<EOF
  45. +#define $ac_tr_lib 1
  46. +EOF
  47. +
  48. + LIBS="-lresolv $LIBS"
  49. +
  50. +else
  51. + echo "$ac_t""no" 1>&6
  52. +fi
  53. +
  54. for ac_func in dirname strlcpy strlcat strsep
  55. do
  56. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  57. -echo "configure:2674: checking for $ac_func" >&5
  58. +echo "configure:2721: checking for $ac_func" >&5
  59. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  60. echo $ac_n "(cached) $ac_c" 1>&6
  61. else
  62. cat > conftest.$ac_ext <<EOF
  63. -#line 2679 "configure"
  64. +#line 2726 "configure"
  65. #include "confdefs.h"
  66. /* System header to define __stub macros and hopefully few prototypes,
  67. which can conflict with char $ac_func(); below. */
  68. @@ -2698,7 +2745,7 @@
  69. ; return 0; }
  70. EOF
  71. -if { (eval echo configure:2702: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  72. +if { (eval echo configure:2749: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  73. rm -rf conftest*
  74. eval "ac_cv_func_$ac_func=yes"
  75. else
  76. @@ -2728,12 +2775,12 @@
  77. for ac_func in MD5Update
  78. do
  79. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  80. -echo "configure:2732: checking for $ac_func" >&5
  81. +echo "configure:2779: checking for $ac_func" >&5
  82. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  83. echo $ac_n "(cached) $ac_c" 1>&6
  84. else
  85. cat > conftest.$ac_ext <<EOF
  86. -#line 2737 "configure"
  87. +#line 2784 "configure"
  88. #include "confdefs.h"
  89. /* System header to define __stub macros and hopefully few prototypes,
  90. which can conflict with char $ac_func(); below. */
  91. @@ -2756,7 +2803,7 @@
  92. ; return 0; }
  93. EOF
  94. -if { (eval echo configure:2760: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  95. +if { (eval echo configure:2807: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  96. rm -rf conftest*
  97. eval "ac_cv_func_$ac_func=yes"
  98. else
  99. @@ -2788,12 +2835,12 @@
  100. for ac_func in warnx
  101. do
  102. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  103. -echo "configure:2792: checking for $ac_func" >&5
  104. +echo "configure:2839: checking for $ac_func" >&5
  105. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  106. echo $ac_n "(cached) $ac_c" 1>&6
  107. else
  108. cat > conftest.$ac_ext <<EOF
  109. -#line 2797 "configure"
  110. +#line 2844 "configure"
  111. #include "confdefs.h"
  112. /* System header to define __stub macros and hopefully few prototypes,
  113. which can conflict with char $ac_func(); below. */
  114. @@ -2816,7 +2863,7 @@
  115. ; return 0; }
  116. EOF
  117. -if { (eval echo configure:2820: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  118. +if { (eval echo configure:2867: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  119. rm -rf conftest*
  120. eval "ac_cv_func_$ac_func=yes"
  121. else
  122. @@ -2848,12 +2895,12 @@
  123. for ac_func in ether_ntoa
  124. do
  125. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  126. -echo "configure:2852: checking for $ac_func" >&5
  127. +echo "configure:2899: checking for $ac_func" >&5
  128. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  129. echo $ac_n "(cached) $ac_c" 1>&6
  130. else
  131. cat > conftest.$ac_ext <<EOF
  132. -#line 2857 "configure"
  133. +#line 2904 "configure"
  134. #include "confdefs.h"
  135. /* System header to define __stub macros and hopefully few prototypes,
  136. which can conflict with char $ac_func(); below. */
  137. @@ -2876,7 +2923,7 @@
  138. ; return 0; }
  139. EOF
  140. -if { (eval echo configure:2880: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  141. +if { (eval echo configure:2927: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  142. rm -rf conftest*
  143. eval "ac_cv_func_$ac_func=yes"
  144. else
  145. @@ -2912,7 +2959,7 @@
  146. fi
  147. echo $ac_n "checking for Berkeley DB with 1.85 compatibility""... $ac_c" 1>&6
  148. -echo "configure:2916: checking for Berkeley DB with 1.85 compatibility" >&5
  149. +echo "configure:2963: checking for Berkeley DB with 1.85 compatibility" >&5
  150. # Check whether --with-db or --without-db was given.
  151. if test "${with_db+set}" = set; then
  152. withval="$with_db"
  153. @@ -3015,7 +3062,7 @@
  154. echo $ac_n "checking for libpcap""... $ac_c" 1>&6
  155. -echo "configure:3019: checking for libpcap" >&5
  156. +echo "configure:3066: checking for libpcap" >&5
  157. # Check whether --with-libpcap or --without-libpcap was given.
  158. if test "${with_libpcap+set}" = set; then
  159. withval="$with_libpcap"
  160. @@ -3063,7 +3110,7 @@
  161. echo $ac_n "checking for libnet""... $ac_c" 1>&6
  162. -echo "configure:3067: checking for libnet" >&5
  163. +echo "configure:3114: checking for libnet" >&5
  164. # Check whether --with-libnet or --without-libnet was given.
  165. if test "${with_libnet+set}" = set; then
  166. withval="$with_libnet"
  167. @@ -3110,7 +3157,7 @@
  168. echo $ac_n "checking for libnids""... $ac_c" 1>&6
  169. -echo "configure:3114: checking for libnids" >&5
  170. +echo "configure:3161: checking for libnids" >&5
  171. # Check whether --with-libnids or --without-libnids was given.
  172. if test "${with_libnids+set}" = set; then
  173. withval="$with_libnids"
  174. @@ -3152,9 +3199,9 @@
  175. save_cppflags="$CPPFLAGS"
  176. CPPFLAGS="$NIDSINC"
  177. echo $ac_n "checking whether libnids version is good""... $ac_c" 1>&6
  178. -echo "configure:3156: checking whether libnids version is good" >&5
  179. +echo "configure:3203: checking whether libnids version is good" >&5
  180. cat > conftest.$ac_ext <<EOF
  181. -#line 3158 "configure"
  182. +#line 3205 "configure"
  183. #include "confdefs.h"
  184. #include <nids.h>
  185. EOF
  186. @@ -3173,7 +3220,7 @@
  187. echo $ac_n "checking for OpenSSL""... $ac_c" 1>&6
  188. -echo "configure:3177: checking for OpenSSL" >&5
  189. +echo "configure:3224: checking for OpenSSL" >&5
  190. # Check whether --with-openssl or --without-openssl was given.
  191. if test "${with_openssl+set}" = set; then
  192. withval="$with_openssl"
  193. diff -Nur dsniff-2.4-old/configure.in dsniff-2.4/configure.in
  194. --- dsniff-2.4-old/configure.in 2009-09-15 00:11:17.162203445 +0300
  195. +++ dsniff-2.4/configure.in 2009-09-15 00:11:20.344202405 +0300
  196. @@ -57,6 +57,7 @@
  197. AC_CHECK_LIB(nsl, gethostbyname)
  198. dnl XXX - feh, everything except OpenBSD sux.
  199. AC_CHECK_LIB(resolv, dn_expand)
  200. +AC_CHECK_LIB(resolv, __dn_expand)
  201. AC_REPLACE_FUNCS(dirname strlcpy strlcat strsep)
  202. needmd5=no
  203. AC_CHECK_FUNCS(MD5Update, , [needmd5=yes])