On Friday, 28 April 2000, Thomas Ronayne writes:

> I've been trying to build LilyPond 1.2.17 on a Solaris 5.7 machine (gcc

Have you succeeded, in the end?  You may very well want to try 1.3.47,
but note that you need guile 1.3.4 for that.

> 2.95.2) with some difficulties, and I'm hoping that someone may be able
> to advise. The problems (so far) are:
> 
>   1. EGCS 1.1 or newer is required; it's supposed to be someplace or
>      other on ftp.gnu.org; it ain't.

Gcc's line of history goes something like this:

   gcc-2.7, gcc-2.8, egcs 1.0, egcs 1.1, egcs 1.2, gcc-2.95

so, in short, gcc-2.95 > egcs 1.1.

>   2. configure yammers about stepmake; what's that and where is it?

T'is just a warning.  Local copy of stepmake in ./stepmake is used
automagically.  Stepmake once was to be a generic alternative to
auto-generated makefiles, a system of makefiles that provide smart
rules, so that local makefiles can be just as simple as Makefile.am.
Now, we don't want to spend our time on a make system, but we use
it for Lily, because it's a good alterative to the horrors of automake.

>   3. configure yammers about an illegal argument (-q) to the grep
>      utility; yep, that sure is illegal all right.

That's fixed in 1.3.  As an aside, it beats me why anyone would use
anything else than GNU grep.  Get gnu grep, you'll be delighted, 
probably.

>   4. Compilation fails with
>      string.cc: In method `int String::index_i(String) const':
>      string.cc:258: passing `const char *' as argument 1 of
>      `memmem(const Byte *, int, const Byte *, int)' changes signedness
>      string.cc:258: passing `const char *' as argument 3 of
>      `memmem(const Byte *, int, const Byte *, int)' changes signedness
> 
> Any hints would be most welcome and deeply appreciated.

This is fixed in 1.3, you can apply this patch, or if it fails, edit
along these lines:


diff -urN ../lilypond-1.3.31/flower/include/libc-extension.hh 
./flower/include/libc-extension.hh
--- ../lilypond-1.3.31/flower/include/libc-extension.hh Fri Jan 14 00:22:04 2000
+++ ./flower/include/libc-extension.hh  Sun Mar 12 23:15:49 2000
@@ -19,8 +19,8 @@
 char* strnupr (char* start_l, int n);
 
 #if !HAVE_MEMMEM               // GNU extension.
-Byte *memmem (Byte const * haystack, int haystack_len,
-            Byte const *needle, int needle_len);
+void *memmem (void const * haystack, int haystack_len,
+            void const *needle, int needle_len);
 #endif HAVE_MEMMEM
 
 #if !HAVE_SNPRINTF             // GNU extension.
diff -urN ../lilypond-1.3.31/flower/libc-extension.cc ./flower/libc-extension.cc
--- ../lilypond-1.3.31/flower/libc-extension.cc Fri Jan 14 00:22:05 2000
+++ ./flower/libc-extension.cc  Sun Mar 12 23:15:49 2000
@@ -48,7 +48,7 @@
   Manual v1.15, but it is with /usr/include/string.h   */
 
 Byte *
-memmem (Byte const *haystack, int haystack_len,
+_memmem (Byte const *haystack, int haystack_len,
        Byte const *needle,int needle_len)
 {
   Byte const * end_haystack = haystack + haystack_len - needle_len + 1;
@@ -70,6 +70,15 @@
        haystack++;
     }
   return 0;
+}
+
+void *
+memmem (void const *haystack, int haystack_len,
+       void const *needle,int needle_len)
+{
+  Byte const* haystack_byte_c_l = haystack;
+  Byte const* needle_byte_c_l = needle;
+  return _memmem (haystack_byte_c_l, haystack_len, needle_byte_c_l, needle_len);
 }
 
 #endif

diff -urN ../lilypond-1.3.38/flower/libc-extension.cc ./flower/libc-extension.cc
--- ../lilypond-1.3.38/flower/libc-extension.cc Sun Mar 12 23:15:49 2000
+++ ./flower/libc-extension.cc  Wed Mar 22 15:35:10 2000
@@ -76,8 +76,8 @@
 memmem (void const *haystack, int haystack_len,
        void const *needle,int needle_len)
 {
-  Byte const* haystack_byte_c_l = haystack;
-  Byte const* needle_byte_c_l = needle;
+  Byte const* haystack_byte_c_l = (Byte const*)haystack;
+  Byte const* needle_byte_c_l = (Byte const*)needle;
   return _memmem (haystack_byte_c_l, haystack_len, needle_byte_c_l, needle_len);
 }
 


> <!doctype html public "-//w3c//dtd html 4.0 transitional//en">
> <html>
> I've been trying to build LilyPond 1.2.17 on a Solaris 5.7 machine (gcc
> 2.95.2) with some difficulties, and I'm hoping that someone may be able
> to advise. The problems (so far) are:
> <ol>
> <li>

We don't need this again in html; please uncheck `post as html' option, 
thanks.

Greetings,

Jan.

-- 
Jan Nieuwenhuizen <[EMAIL PROTECTED]> | GNU LilyPond - The music typesetter
http://www.xs4all.nl/~jantien       | http://www.lilypond.org

Reply via email to