Short version: I'm attaching a patch for aclocal.m4, but
please proofread it to make sure it does the right thing.
Longer version:
Hi! I just tried building Lynx 2.8.8rel.2, and got error
messages similar to the ones in:
https://lists.nongnu.org/archive/html/lynx-dev/2010-09/msg00000.html
specifically, "has no left operand" errors like:
../../../WWW/Library/Implementation/HTUtils.h:534:19: error: operator '==' has
no left operand
../../../WWW/Library/Implementation/HTUtils.h:540:21: error: operator '==' has
no left operand
../../../WWW/Library/Implementation/HTUtils.h:557:19: error: operator '>' has
no left operand
../../../WWW/Library/Implementation/HTUtils.h:572:20: error: operator '==' has
no left operand
../../../WWW/Library/Implementation/HTUtils.h:578:22: error: operator '==' has
no left operand
../../../WWW/Library/Implementation/HTUtils.h:595:20: error: operator '>' has
no left operand
I eventually traced this to a bunch of SIZEOF_* macros (e.g.,
SIZEOF_INT): 'configure' that comes with the distribution has
#define SIZEOF_INT $ac_cv_sizeof_int
first, but then it checks to make sure that $ac_cv_sizeof_int is
defined, and is an integer. That is, it writes SIZEOF_INT to config.h
first, and only then checks the value that it wrote. In my case,
$ac_cv_sizeof_int was blank, and so I was winding up with SIZEOF_INT
set to the empty string, and thus the "has no left operand" errors,
above.
I'm attaching a patch that just swaps the order of the two
operations. But I haven't been able to find a copy of the autoconf
that was used to build this distribution, so I'd appreciate someone
else checking it.
Thanks,
--
Andrew Arensburger, Systems guy University of Maryland
[email protected] Division of Information Technology
Get a free account at 127.0.0.1!
--- aclocal.m4.dist 2015-05-08 18:27:09.996655457 -0400
+++ aclocal.m4 2015-05-08 18:27:40.879752446 -0400
@@ -1553,7 +1553,6 @@
dnl can detect; the former includes only stdio.h for types while the latter
dnl includes several header files.
AC_DEFUN([CF_CHECK_SIZEOF],[
-AC_CHECK_SIZEOF([$1],[$2])
if test "${ac_cv_type_$1:+set}" = set; then
if test "${ac_cv_sizeof_$1:+set}" != set; then
AC_MSG_WARN(using $2 for sizeof $1)
@@ -1563,6 +1562,7 @@
ac_cv_sizeof_$1=$2
fi
fi
+AC_CHECK_SIZEOF([$1],[$2])
])dnl
dnl ---------------------------------------------------------------------------
dnl CF_CHECK_SSL_X509 version: 4 updated: 2008/12/11 19:00:39
_______________________________________________
Lynx-dev mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/lynx-dev