[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index][Thread Index][Top&Search][Original]

FreeBSD 7 libc_r detection



This patch fixes the problem with Configure -Duseithreads on FreeBSD 7
without the compatibility libraries installed.

See
http://www.freebsd.org/cgi/cvsweb.cgi/src/lib/libc/net/gethostnamadr.c
revisions 1.22 (removal of the bogus functions), and 1.25 (addition of
the new functions) for not disabling gethostbyaddr_r on 7.x.

I considered not checking for libc_r on 6.x as well, but all of my 6.x
VMs have libc_r.so installed.

Tony

(also attached)

--- hints/freebsd.sh	2008/10/20 04:59:30	1.1
+++ hints/freebsd.sh	2008/10/20 22:49:29
@@ -211,6 +211,14 @@
 	      exit 1
 	      ;;
 
+	7.*)
+	      # 7.x doesn't install libc_r by default, and Configure
+	      # would fail in the code following
+	      #
+	      # gethostbyaddr_r() appears to have been implemented in 6.x+
+	      ldflags="-pthread $ldflags"
+	      ;;
+
 	*)
 	      if [ ! -r "$lc_r" ]; then
 	      cat <<EOM >&4
--- hints/freebsd.sh	2008/10/20 04:59:30	1.1
+++ hints/freebsd.sh	2008/10/20 22:49:29
@@ -211,6 +211,14 @@
 	      exit 1
 	      ;;
 
+	7.*)
+	      # 7.x doesn't install libc_r by default, and Configure
+	      # would fail in the code following
+	      #
+	      # gethostbyaddr_r() appears to have been implemented in 6.x+
+	      ldflags="-pthread $ldflags"
+	      ;;
+
 	*)
 	      if [ ! -r "$lc_r" ]; then
 	      cat <<EOM >&4

Follow-Ups from:
Nicholas Clark <nick@ccl4.org>
"Chris 'BinGOs' Williams" <chris@bingosnet.co.uk>

[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index][Thread Index][Top&Search][Original]