I tried to compile LilyPond 1.3.56 on Solaris, using gcc 2.95.2 (not sure which libstdc++ version, but I believe it is 2.8.x). The attached patch show the changes I needed to make. Unfortunately, I wasn't able to complete the build, as the linker complained about missing symbols. Undefined first referenced symbol in file __eh_pc /sw/local/lib/libstdc++.a(fstream.o) This might very well be a problem with the compiler installation, but I'm not sure where to look.
--- lily/break-align-item.cc.orig Fri May 26 14:43:51 2000 +++ lily/break-align-item.cc Tue May 30 15:25:56 2000 @@ -6,6 +6,7 @@ (c) 1997--2000 Han-Wen Nienhuys <[EMAIL PROTECTED]> */ #include <math.h> +#include <libc-extension.hh> #include "side-position-interface.hh" #include "warn.hh" --- lily/simple-spacer.cc.orig Sun May 21 23:31:39 2000 +++ lily/simple-spacer.cc Tue May 30 16:04:59 2000 @@ -11,6 +11,7 @@ */ #include <math.h> +#include <libc-extension.hh> #include "simple-spacer.hh" #include "paper-column.hh" --- lily/molecule.cc.orig Tue May 30 15:45:05 2000 +++ lily/molecule.cc Tue May 30 15:45:15 2000 @@ -7,6 +7,7 @@ */ #include <math.h> +#include <libc-extension.hh> #include "font-metric.hh" #include "dimensions.hh" --- lily/spanner.cc.orig Mon May 29 00:12:42 2000 +++ lily/spanner.cc Tue May 30 16:10:41 2000 @@ -6,6 +6,7 @@ (c) 1996--2000 Han-Wen Nienhuys <[EMAIL PROTECTED]> */ #include <math.h> +#include <libc-extension.hh> #include "dimension-cache.hh" #include "debug.hh" --- aclocal.m4.orig Mon Apr 3 10:19:53 2000 +++ aclocal.m4 Tue May 30 15:20:05 2000 @@ -163,12 +163,12 @@ AC_MSG_CHECKING("for guile-config") for guile_config in guile-config $target-guile-config $build-guile-config; do AC_MSG_RESULT("$guile_config") - if ! $guile_config --version > /dev/null 2>&1 ; then + if $guile_config --version > /dev/null 2>&1 ; then + break + else AC_MSG_WARN("cannot execute $guile_config") AC_MSG_CHECKING("if we are cross compiling") guile_config=error - else - break fi done if test "$guile_config" = "error"; then @@ -793,7 +793,9 @@ AC_DEFUN([GUILE_FLAGS],[ ## The GUILE_FLAGS macro. AC_MSG_CHECKING(for Guile) - if ! $guile_config link > /dev/null ; then + if $guile_config link > /dev/null ; then + : + else AC_MSG_RESULT("cannot execute $guile_config") AC_MSG_ERROR("cannot find guile-config; is Guile installed?") exit 1
-- David Kågedal