0002-osdep-m4-Remove-getaddrinfo-too-low-checks.patch 1.2 KB

1234567891011121314151617181920212223242526272829303132333435
  1. osdep.m4: Remove getaddrinfo() too low checks
  2. dante runs AC_PREPROC_IFELSE then it fills $ERRVALFILE by running the
  3. following command:
  4. cat conftest.i | grep gaierrval: >>$2
  5. As a result, $ERRVALFILE does not contain the expected values because
  6. the expected value is not on the same line than gaierrval:
  7. gaierrval:
  8. # 130 "conftest.c" 3 4
  9. -3
  10. So drop these checks
  11. Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
  12. diff -Nuar dante-1.4.2-orig/osdep.m4 dante-1.4.2/osdep.m4
  13. --- dante-1.4.2-orig/osdep.m4 2019-12-09 21:28:38.936003218 +0100
  14. +++ dante-1.4.2/osdep.m4 2019-12-09 21:49:48.764019371 +0100
  15. @@ -956,13 +956,7 @@
  16. unset UNIQUEVALS UNIQUESYMBOLS
  17. if test -s $ERRVALFILE; then
  18. UNIQUEVALS=`sort $ERRVALFILE | uniq | wc -l | awk '{ print $1 }'`
  19. - if test $UNIQUEVALS -le 1; then
  20. - AC_MSG_FAILURE([error: getaddrinfo() error value count too low])
  21. - fi
  22. UNIQUESYMBOLS=`cat $ERRVALFILE | wc -l | awk '{ print $1 }'`
  23. - if test $UNIQUESYMBOLS -le 1; then
  24. - AC_MSG_FAILURE([error: getaddrinfo() error symbol count too low])
  25. - fi
  26. if test $ERRNOCNT -ne $UNIQUESYMBOLS; then
  27. AC_MSG_FAILURE([internal error: errno symbol count mismatch])