> Maybe someone's seen this.
> 
> I just compiled lilypond 1.2.17, with default configuration and a couple of
> tweaks.  I used the precompiled NetBSD packages for everything else, except
> flex, which I had to compile from 2.5.4. (the source package said flex
> 2.5.4a didn't work on 1.4.1/i386, and maybe its so...)
> 
> I initially had a problem with lexer at the linking stage; _yy_flex_alloc
> _yy_flex_realloc and _yy_flex_free were undefined.  I tried the obvious
> thing of adding #define yy_flex_alloc malloc etc in lexer.ll... now lilypond
> runs but eventually coredumps. it looks like an infinite recursion in
> malloc:

You must have failed to install flex correctly. I guess that 
the compiler doesn't find the correct version of FlexLexer.h
or that you called the wrong version of flex. Your "workaround" 
is certainly not the correct solution.

Try to compile and run the example file MISC/testxxLexer.l in
the flex source tree (it reads from STDIN). If that works
correctly, you shouldn't have any problems with Lilypond.

    /Mats




Reply via email to