lynx-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Lynx-dev] Lynx 2.8.8rel.2 patch: aclocal.m4 AC_CHECK_SIZEOF


From: Andrew Arensburger
Subject: [Lynx-dev] Lynx 2.8.8rel.2 patch: aclocal.m4 AC_CHECK_SIZEOF
Date: Fri, 8 May 2015 18:39:12 -0400
User-agent: Mutt/1.5.21 (2010-09-15)

        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
address@hidden                          Division of Information Technology
                   Get a free account at 127.0.0.1!

Attachment: aclocal.m4.patch
Description: Text document


reply via email to

[Prev in Thread] Current Thread [Next in Thread]