stdup() patch for R7B.
Geoff Wong
geoff@REDACTED
Sun Oct 1 06:34:53 CEST 2000
HAVE_STRDUP isn't properly defined by the configure process
(and isn't defined in header files on Redhat 6.x boxes).
Anyway - this causes erl_connect (and associated libs)
to fail to build.
A patch follows.
Geoff
--- erts/autoconf/configure.in Sun Oct 1 15:27:11 2000
+++ erts/autoconf/configure.in.ORIG Sun Oct 1 10:17:38 2000
@@ -370,7 +370,7 @@
AC_CHECK_FUNCS([ieee_handler fpsetmask finite res_gethostbyname dlopen \
poll pread pwrite writev memmove strerror \
- gethrtime localtime_r gmtime_r strdup])
+ gethrtime localtime_r gmtime_r])
AC_FUNC_SETVBUF_REVERSED
AC_FUNC_VFORK
AC_FUNC_VPRINTF
--- erts/autoconf/configure Sun Oct 1 15:27:17 2000
+++ erts/autoconf/configure.ORIG Sun Oct 1 10:28:58 2000
@@ -1366,7 +1366,7 @@
done
test -n "$YACC" || YACC="yacc"
-for ac_prog in gawk mawk nawk awk
+for ac_prog in mawk gawk nawk awk
do
# Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
@@ -3456,7 +3456,7 @@
for ac_func in ieee_handler fpsetmask finite res_gethostbyname dlopen \
poll pread pwrite writev memmove strerror \
- gethrtime localtime_r gmtime_r strdup
+ gethrtime localtime_r gmtime_r
do
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
echo "configure:3463: checking for $ac_func" >&5
--- erts/autoconf/config.h.in Sun Oct 1 15:13:33 2000
+++ erts/autoconf/config.h.in.ORIG Sun Oct 1 15:36:10 2000
@@ -168,9 +168,6 @@
/* Define if you have the strerror function. */
#undef HAVE_STRERROR
-/* Define if you have the strdup() function. */
-#undef HAVE_STRDUP
-
/* Define if you have the writev function. */
#undef HAVE_WRITEV
More information about the erlang-questions
mailing list