octave-maintainers
[Top][All Lists]
Advanced

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

Re: safer way to use gnulib


From: John W. Eaton
Subject: Re: safer way to use gnulib
Date: Tue, 16 Mar 2010 16:51:33 -0400

On 16-Mar-2010, Ben Abbott wrote:

| #! /bin/sh -ev
| ## Use the flex from Fink's flex-devel package
| ##   The MacOS X flex will not work properly due to the patch below.
| ##   
http://www.opensource.apple.com/source/flex/flex-24.1/patches/scanEOF.diff
| export PREFIX="/sw"
| export PATH="$PREFIX/lib/flex/bin:$PATH"
| make
| make check
| --------------------------

OK, from looking at that patch I guess that if your src/lex.cc file
has the lines

  case EOB_ACT_END_OF_FILE:
          {
          if ( octave_wrap( ) )
                  return 0;

instead of

  case EOB_ACT_END_OF_FILE:
          {
          if ( octave_wrap( ) )
                  return EOF;

then it looks like the version of flex that you used to generate
lex.cc is the one that has been modified with the bad patch.

jwe


reply via email to

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