The main culprit is some (newer) gcc distributions enables -Wwrite-strings by default. I found another place to hack in hotspot's makefile:<br><br>hotspot/build/linux/makefiles/gcc.make:<br><br>CFLAGS += $(VM_PICFLAG)<br>
CFLAGS += -fno-rtti<br>CFLAGS += -fno-exceptions<br>CFLAGS += -D_REENTRANT<br>CFLAGS += -fcheck-new<br># Suppress the "deprecated conversion from string constant to 'char*'" warning<br>CFLAGS += -Wno-write-strings
<br><br>Hope this helps,<br>-Ben<br><br><div class="gmail_quote">On Nov 29, 2007 4:46 AM, Mark Wielaard <<a href="mailto:mark@klomp.org">mark@klomp.org</a>> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi Roger,<br><div class="Ih2E3d"><br>On Thu, 2007-11-29 at 08:07 -0300, Roger Abelenda wrote:<br>> Hello i'm trying to compile the openjdk machine with open Suse 10.3.<br>> I'm using the b22 version of openjdk, and jdk
1.6_03 virtual machine<br>> as boostrap and import_jdk_directory. When i put it tu compile at last<br>> of the errors messages it gives me the following:<br>><br>> cc1plus: warnings being treated as errors<br>
> /home/roger/Desktop/openjdk/hotspot/src/os/linux/vm/jvm_linux.cpp:182:<br>> warning: deprecated conversion from string constant to 'char*'<br></div>> [...]<br><div class="Ih2E3d">> make[5]: *** [jvm_linux.o] Error 1
<br>> make[4]: *** [the_vm] Error 2<br>> make[3]: *** [product] Error 2<br>> make[2]: *** [generic_build2] Error 2<br>> make[1]: *** [product] Error 2<br>> make: *** [hotspot-build] Error 2<br>><br>> I already installed it in Fedora Core 6 successfully and it didn't
<br>> show me that kind of error. I apreciate any advise.<br><br></div>Yes, had the same issue on Debian. Arnaud van Dyck made a page<br>describing how to compile (icedtea derived from openjdk) on Debian using<br>a couple of small patches:
<br><a href="http://icedtea.classpath.org/wiki/DebianBuildingInstructions" target="_blank">http://icedtea.classpath.org/wiki/DebianBuildingInstructions</a><br>Some of those patches might also be appropriate for your suse system.
<br><br>Cheers,<br><font color="#888888"><br>Mark<br><br></font></blockquote></div><br>