Package: lilypond
Version: 2.8.7-3
Usertags: ftbfs-gcc-4.3
Tags: patch

Your package fails to build with GCC 4.3.  Version 4.3 has not been
released yet but I'm building with a snapshot in order to find errors
and give people an advance warning.  A patch for this problem is
below.

> Automatic build of lilypond_2.8.7-3 on em64t by sbuild/amd64 0.53
...
> rm -f ./out/file-name.dep; DEPENDENCIES_OUTPUT="./out/file-name.dep 
> ./out/file-name.o" g++ -c  -DHAVE_CONFIG_H  -DNDEBUG -I./include -I./out 
> -I../flower/include -I../flower/./out  -O2 -finline-functions -g -pipe  
> -I/usr/include/freetype2   -I/usr/include/pango-1.0 -I/usr/include/freetype2 
> -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include    -W -Wall -Wconversion 
> -o out/file-name.o file-name.cc
> In file included from ./include/file-name.hh:12,
>                  from file-name.cc:10:
> ./include/std-vector.hh:330: error: 'string' was not declared in this scope
> ./include/std-vector.hh:330: error: template argument 1 is invalid
> ./include/std-vector.hh:330: error: template argument 2 is invalid
> ./include/std-vector.hh:330: error: invalid type in declaration before '(' 
> token
> ./include/std-vector.hh:330: error: 'string' was not declared in this scope
> ./include/std-vector.hh:330: error: expected primary-expression before 'char'
> ./include/std-vector.hh:330: error: initializer expression list treated as 
> compound expression
> file-name.cc: In function 'std::string get_working_directory()':
> file-name.cc:83: error: 'PATH_MAX' was not declared in this scope
> file-name.cc:84: error: 'cwd' was not declared in this scope

and later

> relocate.cc:312: error: 'isalnum' was not declared in this scope

--- flower/include/std-vector.hh~       2007-03-04 21:48:28.000000000 +0000
+++ flower/include/std-vector.hh        2007-03-04 21:48:39.000000000 +0000
@@ -12,6 +12,7 @@
 #include <algorithm>   /* find, reverse, sort */
 #include <functional>  /* unary_function */
 #include <cassert>
+#include <string>
 
 using namespace std;
 
--- flower/include/rational.hh~ 2007-03-04 21:51:05.000000000 +0000
+++ flower/include/rational.hh  2007-03-04 21:51:17.000000000 +0000
@@ -13,6 +13,8 @@
 
 #include "std-string.hh"
 
+#include <limits.h>
+
 /**
    Rational numbers.  Included is support for + and - infinity.
 */
--- flower/file-name.cc~        2007-03-04 21:49:36.000000000 +0000
+++ flower/file-name.cc 2007-03-04 21:49:47.000000000 +0000
@@ -10,6 +10,7 @@
 #include "file-name.hh"
 
 #include <unistd.h>
+#include <limits.h>
 
 #include <cstdio>
 #include <cerrno>
--- lily/relocate.cc~   2007-03-04 22:05:14.000000000 +0000
+++ lily/relocate.cc    2007-03-04 22:06:12.000000000 +0000
@@ -14,6 +14,7 @@
 
 /* TODO: autoconf support */
 
+#include <ctype.h>
 #include <sys/types.h>
 #include <dirent.h>
 

-- 
Martin Michlmayr
http://www.cyrius.com/


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to