[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] Compiling stopped at type casting
From: |
Heikki Johannes Junes |
Subject: |
[PATCH] Compiling stopped at type casting |
Date: |
Tue, 25 Sep 2001 02:03:12 +0300 (EET DST) |
Compilation failed (gcc 2.96, guile 1.4, lilypond-1.5.13)
rm -f ./out/translator.dep; DEPENDENCIES_OUTPUT="./out/translator.dep
./out/translator.o" c++ -c -DHAVE_CONFIG_H -DSTRING_UTILS_INLINED -Iinclude
-I./out -I.././lib/include -I../lib/./out -I.././flower/include
-I../flower/./out -I../flower/include -O2 -finline-functions -g -O2
-finline-functions -g -DSTRING_UTILS_INLINED -I/usr/include -Wall -W
-Wmissing-prototypes -Wconversion -o out/translator.o translator.cc
translator.cc: In function `SCM Translator::name (long int)':
translator.cc:163: cannot convert `const char *' to `char *' for
argument `1' to `gh_str02scm (char *)'
make[1]: *** [out/translator.o] Error 1
make[1]: Leaving directory `/usr/local/src/sound/lilypond-1.5.13/lily'
make: *** [all] Error 2
Here is patch which fixed it (the code with 1.5.11 did not contain this
code which caused the error). During the compiling I also got warnings
about type casting, but only this one stopped the compiling.
--- lilypond-1.5.13.orig/VERSION Mon Sep 24 02:05:26 2001
+++ lilypond-1.5.13/VERSION Tue Sep 25 01:52:40 2001
@@ -2,7 +2,7 @@
MAJOR_VERSION=1
MINOR_VERSION=5
PATCH_LEVEL=13
-MY_PATCH_LEVEL=
+MY_PATCH_LEVEL=hjj1
# use the above to send patches: MY_PATCH_LEVEL is always empty for a
# released version.
--- lilypond-1.5.13.orig/CHANGES Mon Sep 24 02:04:55 2001
+++ lilypond-1.5.13/CHANGES Tue Sep 25 01:52:20 2001
@@ -1,3 +1,8 @@
+1.5.13.hjj1
+===========
+
+* type cast compile fix
+
1.5.12.jcn2
===========
--- lilypond-1.5.13.orig/lily/translator.cc Mon Sep 24 02:04:29 2001
+++ lilypond-1.5.13/lily/translator.cc Tue Sep 25 01:54:34 2001
@@ -160,7 +160,7 @@
if (unsmob_translator (trans))
{
char const* nm = classname (unsmob_translator (trans));
- return gh_str02scm (nm);
+ return gh_str02scm ((char *)nm);
}
return
SCM_EOL;
--
Heikki Junes
- [PATCH] Compiling stopped at type casting,
Heikki Johannes Junes <=