lilypond-devel
[Top][All Lists]
Advanced

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

Mandrake 9.1 was shipped with flex-2.5.23, newer is needed


From: Heikki Johannes Junes
Subject: Mandrake 9.1 was shipped with flex-2.5.23, newer is needed
Date: Sun, 27 Apr 2003 00:37:48 +0300 (EET DST)

On Sat, 26 Apr 2003, address@hidden wrote:
>
> I have tried tu update theese rpms to ltest version 1.6.8 and then 1.6.9
> actually the same problem arises when i try to copile 1.7.15-1.7.17 also.
>
> Maybe you could help me manage to compile this in Mandrake 9.1
>
> the compilation breaks with this
>
> /thac
> ./out-/dev/vc//../../flower/out-/dev/vc//library.a  -lkpathsea
> -lintl       -lguile -lcrypt -lm
> c++: ./out-/dev/vc//../../flower/out-/dev/vc//library.a: No such file or
> directory
> make[1]: *** [out-/dev/vc//lilypond] Error 1
> rm out-/dev/vc//lexer.cc out-/dev/vc//parser.cc
> make[1]: Leaving directory `/home/tobbe/rpm/BUILD/lilypond-1.6.9/lily'
> make: *** [all] Error 2
> error: Bad exit status from /home/tobbe/rpm/tmp/rpm-tmp.65845 (%build)
>
>
> RPM build errors:
>     Bad exit status from /home/tobbe/rpm/tmp/rpm-tmp.65845 (%build)
>
>

Your problem looked very similar to one of Mon, 26 Aug 2002:

  http://www.mail-archive.com/address@hidden/msg01349.html

I have installed Mandrake 9.1 to my computer. Seems like they have included
flex-2.5.23 in Mdk 9.1. I sent a patch to flex-developers, which was
included in it in flex-2.5.24, see (end of mail):

  http://www.mail-archive.com/address@hidden/msg01702.html

I have flex-2.5.24 in my Mandrake 9.0 (work computer) and have been able
to compile up to 1.7.17, by invoking "make rpm-mandrake".

Did you use latest flex-compilers? You could find them from

  http://sourceforge.net/project/showfiles.php?group_id=72099

BTW, seems like the source place have been changed.

Here is the patch, what makes flex-2.5.23 work:

address@hidden flex-2.5.23]$ diff -u gen.c~ gen.c
--- gen.c~      2002-09-14 00:54:03.000000000 +0300
+++ gen.c       2002-10-26 12:13:17.000000000 +0300
@@ -2007,7 +2007,7 @@
                indent_puts ("if ( yy_act == 0 )");
                indent_up ();
                indent_puts (C_plus_plus ?
-                            "cerr << \"--scanner backing up\\n\";" :
+                            "std::cerr << \"--scanner backing up\\n\";"
:
                             "fprintf( stderr, \"--scanner backing
up\\n\" );");
                indent_down ();

@@ -2017,7 +2017,7 @@

                if (C_plus_plus) {
                        indent_puts
-                               ("cerr << \"--accepting rule at line \"
                                << yy_rule_linenum[yy_act] <<");
+                               ("std::cerr << \"--accepting rule at
line \" << yy_rule_linenum[yy_act] <<");
                        indent_puts
                                ("         \"(\\\"\" << yytext <<
\"\\\")\\n\";");
                }
@@ -2037,7 +2037,7 @@

                if (C_plus_plus) {
                        indent_puts
-                               ("cerr << \"--accepting default rule
                                (\\\"\" << yytext << \"\\\")\\n\";");
+                               ("std::cerr << \"--accepting default
rule (\\\"\" << yytext << \"\\\")\\n\";");
                }
                else {
                        indent_puts
@@ -2052,7 +2052,7 @@
                indent_up ();

                indent_puts (C_plus_plus ?
-                            "cerr << \"--(end of buffer or a
                             NUL)\\n\";" :
+                            "std::cerr << \"--(end of buffer or a
NUL)\\n\";" :
                             "fprintf( stderr, \"--(end of buffer or a
NUL)\\n\" );");

                indent_down ();
@@ -2063,7 +2063,7 @@

                if (C_plus_plus) {
                        indent_puts
-                               ("cerr << \"--EOF (start condition \" <<
                                YY_START << \")\\n\";");
+                               ("std::cerr << \"--EOF (start condition
\" << YY_START << \")\\n\";");
                }
                else {
                        indent_puts
-*_*- END OF PATCH -*_*-

For some reason (which I did not need to figure out) this "cerr <<" is not
a proper syntax, but "std::cerr <<". It looks like a compiler dependent
problem.

This patch was still included in flex-2.5.31, so maybe you should just
install a newer flex by building it from source. Looks like the error was
that Mandrake 9.1 was packed with flex-2.5.23, not newer.

Greetings,

  Heikki




reply via email to

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