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