I would like be able to build recent lilypond releases for pclinuxos.
I've been able to install the autopackage version, but I want to build
an rpm to add to the main repository. I have successfully built
lilypond and many other programs, but this time I am stumped. I've
installed or built all mentioned dependencies including all -devel
rpms. The main problem seems to be flex. I get FlexLexer.h errors when
building. I've used the rpm for flex and then remove that and install
latest tar.gz.
This is how make fails:
In file included from /usr/include/c++/3.3.1/backward/iostream.h:31,
from out/FlexLexer.h:47,
from out/lexer.cc:242:
/usr/include/c++/3.3.1/backward/backward_warning.h:32:2: warning:
#warning This file includes at least one deprecated or antiquated
header. Please consider using one of the 32 headers found in section
17.4.1.2 of the C++ standard. Examples include substituting the <X>
header for the <X.h> header for C++ includes, or <sstream> instead of
the deprecated header <strstream.h>. To disable this warning use
-Wno-deprecated.
In file included from out/FlexLexer.h:47,
from out/lexer.cc:242:
/usr/include/c++/3.3.1/backward/iostream.h:36: error: `istream' is
already declared in this scope
/usr/include/c++/3.3.1/backward/iostream.h:36: error: using declaration
`istream' introduced ambiguous type `istream'
lexer.ll: In member function `virtual int Lily_lexer::yylex()':
lexer.ll:571: warning: unused variable `int cnv'
out/lexer.cc:4273: error: cannot convert `std::istream*' to `istream*'
in assignment
out/lexer.cc: In member function `void yyFlexLexer::yy_load_buffer_state()':
out/lexer.cc:4796: error: cannot convert `istream*' to `std::istream*'
in assignment
out/lexer.cc: In member function `void
yyFlexLexer::yy_init_buffer(yy_buffer_state*, std::istream*)':
out/lexer.cc:4847: error: cannot convert `std::istream*' to `istream*'
in assignment
/usr/include/c++/3.3.1/bits/locale_facets.h: At top level:
out/lexer.cc:3268: warning: `int yy_start_stack_ptr' defined but not used
out/lexer.cc:3269: warning: `int yy_start_stack_depth' defined but not used
out/lexer.cc:3270: warning: `int*yy_start_stack' defined but not used
out/lexer.cc:3272: warning: `void yy_push_state(int)' declared `static'
but never defined
out/lexer.cc:3275: warning: `void yy_pop_state()' declared `static' but
never defined
out/lexer.cc:3278: warning: `int yy_top_state()' declared `static' but
never defined
make[1]: *** [out/lexer.o] Error 1
rm out/lexer.cc
make[1]: Leaving directory `/home/galen/src/lilypond-cvs/lilypond/lily'
make: *** [all] Error 2
[
Thanks for any ideas.
Galen Seaman
_______________________________________________
lilypond-devel mailing list
lilypond-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-devel