[linux-audio-dev] Re: a flex/bison question

New Message Reply About this list Date view Thread view Subject view Author view Other groups

Subject: [linux-audio-dev] Re: a flex/bison question
From: vanDongen/Gilcher (gml_AT_xs4all.nl)
Date: Fri Sep 10 2004 - 01:10:55 EEST


On Thursday 09 September 2004 16:01,
> From: Dave Phillips <dlphilp_AT_bright.net>
> Greetings:
>
> I'm trying to debug a problem that occurs at the link stage in
> compiling CVS sources for Denemo. Here's the moment in question:
> Any suggestions for fixing ?
>
> Flex 2.5.4, bison 1.35, gcc 3.2.2.
>

Upgrade flex. 2.5.4 has known bugs for generating incorrect C++ code that gcc
3.2 and later have problems with.
 f.i. from the lilypond documentation
<quote>
WARNING: plain Flex 2.5.4(a) generates invalid C++ code. GCC 3.x chokes on
this. If you wish to use GCC 3.x, make sure that your distribution supports
g++ 3.x and flex. For workarounds, see lexer-gcc-3.1.sh in the source
directory.
</quote>
So I guess you could look at the lilypond sources for workarounds as well.

Alternatively get flex at http://lex.sourceforge.net/
There are however also bugs with the most recent version(2.5.31), so the
linuxfromscratch folks recommend the patches from debian:
you can get the patch from:
http://www.linuxfromscratch.org/patches/lfs/cvs/unstable/flex-2.5.31-debian_fixes-2.patch

Hope this helps

Gerard

-- 
electronic & acoustic musics-- http://www.xs4all.nl/~gml


New Message Reply About this list Date view Thread view Subject view Author view Other groups

This archive was generated by hypermail 2b28 : Thu Sep 09 2004 - 23:23:00 EEST