Tons of errors after compiling J2ME under SOLARIS ????!!!!!!!!!!!

Tons of errors after compiling J2ME under SOLARIS ????!!!!!!!!!!!

Post by Hicham hab » Fri, 04 Apr 2003 20:51:08



Hello everybody

 please help , any help will be appreciated

 I'd like to port the j2me_cldc-1_0_3-fcs-src-b17-winunix-14_sep_2001
over SOLARIS, when i unziped the file, launch the makefiles, i got
tons of compiling ERRORS, i don't know why,  i think normally
everything have to go well because all is from SUN, the J2ME is from
SUN, OS is SOLARIS ASLO SUN, i wonder why ??:

 for example this is one of the errors

gmake: *** No rule to make target `obj/cache.o', needed by `kvm'.
Stop.

this is the definition of target kvm  (please look at the complete SUN
makefile bellow):

kvm$(j)$(g): obj$j$g/ $(CLEANUPXPM) $(OBJFILES)


********************** SUN building Makefile  ***********************

TOP=../../..
include $(TOP)/build/Makefile.inc

ifeq ($(PLATFORM), linux)
  export GCC=true
endif

ifeq ($(DEBUG), true)
   g = _g
else
   g =
endif

j =
OTHER_FLAGS += -DNOGUI

ifeq ($(DEBUG_COLLECTOR), true)
COLLECTOR = collectorDebug.c
OTHER_FLAGS += -DUSE_DEBUG_COLLECTOR=1
else
COLLECTOR = collector.c
OTHER_FLAGS += -DUSE_DEBUG_COLLECTOR=0
endif

SRCFILES  = cache.c class.c fields.c frame.c garbage.c $(COLLECTOR)  
\
            global.c interpret.c execute.c loader.c main.c native.c  
\
            property.c thread.c nativeCore.c loaderFile.c hashtable.c
\
            verifier.c log.c jar.c inflate.c  stackmap.c profiling.c
\
            pool.c runtime_md.c StartJVM.c fakeStaticMemory.c         \
            nativeFunctionTableUnix.c events.c resource.c             \
            datagramProtocol.c datagramProtocol_md.c                  \
            socketProtocol.c socketProtocol_md.c                      \
            commProtocol.c commProtocol_md.c

ifeq ($(DEBUG), true)
   SRCFILES += de*.c de*SocketIO.c de*OutputStream.c
de*InputStream.c
   OTHER_FLAGS += -DENABLE_JAVA_DE*=1
else
   OTHER_FLAGS += -DENABLE_JAVA_DE*=0
endif

OTHER_FLAGS +=-DPADTABLE=1

ifeq ($(USE_JAM), true)
   OTHER_FLAGS += -DUSE_JAM=1
   SRCFILES += jam.c jamParse.c jamHttp.c jamStorage.c
   j = _j
else

endif

ifeq ($(ROMIZING), false)
   ROMFLAGS = -DROMIZING=0
else
   SRCFILES += ROMjavaUnix.c
endif

all: kvm$(j)$(g)

OBJFILES = $(patsubst %.c,obj$(j)$(g)/%.o,$(SRCFILES))

vpath %.c  $(TOP)/kvm/VmCommon/src/ $(TOP)/kvm/VmUnix/src/ \
           $(TOP)/kvm/VmExtra/src/ $(TOP)/tools/jcc/ $(TOP)/jam/src

ifeq ($(PLATFORM), solaris)
LIBS =    -lm -lsocket -lnsl
CPPFLAGS = -DUNIX -DSOLARIS -D$(ARCH) \
           -I$(TOP)/kvm/VmCommon/h -I$(TOP)/kvm/VmUnix/h \
           -I$(TOP)/kvm/VmExtra/h -I$(TOP)/jam/h -I$(TOP)/kvm/VmCommon/src
endif

ifeq ($(PLATFORM), linux)
LIBS =    -L/usr/X11R6/lib -lm -lnsl -lICE -lSM
CPPFLAGS = -DUNIX -DLINUX -D$(ARCH) \
           -I$(TOP)/kvm/VmCommon/h -I$(TOP)/kvm/VmUnix/h \
           -I$(TOP)/kvm/VmExtra/h -I$(TOP)/jam/h -I$(TOP)/kvm/VmCommon/src
endif

ifeq ($(GCC), true)
   CC = gcc
   CFLAGS =  -Wall $(CPPFLAGS) $(ROMFLAGS) $(OTHER_FLAGS)
   DEBUG_FLAG = -g
   OPTIMIZE_FLAG = -O2
else
   CC = cc
   CFLAGS = -Xa $(CPPFLAGS) $(ROMFLAGS) $(OTHER_FLAGS)
   DEBUG_FLAG = -g -xsb
   OPTIMIZE_FLAG = -xO2
endif

DEBUG_FLAG += -DINCLUDEDEBUGCODE=1

$(TOP)/tools/jcc/ROMjavaUnix.c
$(TOP)/tools/jcc/nativeFunctionTableUnix.c: jccUnix

.PHONY:  jccUnix
jccUnix:

kvm$(j)$(g): obj$j$g/ $(CLEANUPXPM) $(OBJFILES)


clean:
        rm -rf core kvm* .noincludexpm* ./obj* ./SunWS_cache .sb
        rm -rf $(TOP)/tools/jcc/ROMjavaUnix.c
$(TOP)/tools/jcc/nativeFunctionTableUnix.c

obj$(j)$g/execute.o : execute.c bytecodes.c

obj$(j)/%.o: %.c


obj$(j)_g/%.o: %.c


obj$j$g/:

ifeq ($(GCC), true)

%.i: %.c .FORCE
        echo $(CC)

else

%.i: %.c .FORCE
        echo $(CC)

endif

%.s: %.c .FORCE


regression:
        CLASSPATH=../../../api/classes:../../../samples/classes kvm
tests.RegressionTest

**********************************************************************

Thank you very much in advance

 
 
 

1. Informix problems afters Y2K Solaris 2.5 patch

Since I did the Y2K patch for Solaris 2.5 on a Ultra Sparc 1 system,
Informix 7.22 refuses to startup properly.
Anyone experienced a simular problem? Any suggestions?
Attached some system information and the relevant part of the online.log

Has van der Krieken.

# uname -a
SunOS sungemms 5.5 Generic_103093-25 sun4u sparc SUNW,Ultra-1
# su - informix
Sun Microsystems Inc.   SunOS 5.5       Generic November 1995
$ onstat -V
INFORMIX-OnLine Version 7.22.UC2   Software Serial Number AAA#J917741
$ cat online.log

Mon Dec 27 16:09:48 1999

16:09:48  Event alarms enabled.  ALARMPROG = '/informix/etc/no_log.sh'
16:09:48  DR: DRAUTO is 0 (Off)
16:09:49  INFORMIX-OnLine Initialized -- Shared Memory Initialized.
16:09:49  Physical Recovery Started.
16:09:49  Physical Recovery Complete: 0 Pages Restored.
16:09:49  Logical Recovery Started.
16:09:49  shmget: [ENOMEM][12]: key 52574804: out of shared memory, check
system
 SHMALL
16:09:49  out of virtual shared memory

16:09:49  Assert Failed: Internal Error - Segmentation Violation

                Thread(13, bld_logrecs, d039530, 1)
16:09:49   Results: OnLine must abort
16:09:49   Action: Reinitialize shared memory
16:09:49   See Also: /var/tmp/af.d813d
16:09:49  rsinit.c, line 9932, thread 13, proc id 20737, Segmentation
Violation.
16:09:49    PANIC: Attempting to bring system down

2. ISP DHCP anyone?

3. "no rule to make target" error when building J2ME CDC under linux

4. Compaq Prosignia/Proliant

5. /var/log/messages contains tons of errors

6. Wine (WINdows Emulator) problems

7. Installed Bind 4.9.3 on solaris 2.5 and now get tons of Lame server

8. Discarding RCS main branch in favor of a side branch

9. compile error under new solaris 2.6 system (new solaris user too)

10. callback, ppp, and morning-afters

11. apache compile error on Solaris 2.6

12. Error compiling Apache 1.3.12 on Solaris 7 (Intel)

13. WARNING: FIND and ZIP compiled for sunOS have subtle errors on solaris