Skip to main content

JVMTI doesn't compile for Windows Mobile

6 replies [Last post]
yhilem
Offline
Joined: 2004-10-31

Binaries available from the site of davyp (http://www.cs.kuleuven.be/ ~ davy / phoneme /) include jdwp.dll, jvmtihprof.dll and profilerinterface.dll.
However, no indication of the changes needed to build them.

I tried to compile but without success. The errors are:

/OpenSource/JavaME/PhoneMe/cdc/build/share/rules.mk:1421: JVMTI debugging is not supported in JITed code. Compiler is turned off if connected to a debugger
MAKEFLAGS = CVM_BUILD_SUBDIR_NAME=fp
CVM_HOST = i686-cygwin-win32
CVM_TARGET = win32-arm-ppc03
SHELL = bash -e
HOST_CC = /usr/bin/cc
HOST_CCC = /usr/bin/g++
ZIP = /usr/bin/zip
FLEX = /usr/bin/flex
BISON = /usr/bin/bison
CVM_JAVA = /cygdrive/D/Platforms/Java/j2sdk1.4.2_19/bin/java
CVM_JAVAC = /cygdrive/D/Platforms/Java/j2sdk1.4.2_19/bin/javac
CVM_JAVAH = /cygdrive/D/Platforms/Java/j2sdk1.4.2_19/bin/javah
CVM_JAR = /cygdrive/D/Platforms/Java/j2sdk1.4.2_19/bin/jar
TARGET_CC = /cygdrive/c/Program Files/Microsoft eMbedded C++ 4.0/EVC/wce420/bin/CLARM.EXE
TARGET_CCC = /cygdrive/c/Program Files/Microsoft eMbedded C++ 4.0/EVC/wce420/bin/CLARM.EXE
TARGET_AS = /cygdrive/c/Program Files/Microsoft eMbedded C++ 4.0/EVC/wce420/bin/ARMASM.EXE
TARGET_LD = /cygdrive/c/Program Files/Microsoft eMbedded C++ 4.0/EVC/wce420/bin/LINK.EXE
TARGET_AR = /cygdrive/c/Program Files/Microsoft eMbedded C++ 4.0/EVC/wce420/bin/LINK.EXE
TARGET_RANLIB = /usr/bin/ranlib
LINKFLAGS = /incremental:no /nologo /map /subsystem:windowsce,3.00 /MACHINE:ARM
LINKLIBS = -lpthread -ldl
ASM_FLAGS = -CPU StrongARM1 -32 -NOTerse -WIdth 132 -list .lst .i
CCCFLAGS =
CCFLAGS_SPEED = /nologo /c /W2 /MC -D__STDC__ /FdD:/OpenSource/JavaME/PhoneMe/cdc/build/win32-arm-ppc03/fp/cvm.pdb /O2 /Ob2 /Ot -DNDEBUG
CCFLAGS_SPACE = /nologo /c /W2 /MC -D__STDC__ /FdD:/OpenSource/JavaME/PhoneMe/cdc/build/win32-arm-ppc03/fp/cvm.pdb /O1 /Ob1 -DNDEBUG
CCFLAGS_LOOP = /nologo /c /W2 /MC -D__STDC__ /FdD:/OpenSource/JavaME/PhoneMe/cdc/build/win32-arm-ppc03/fp/cvm.pdb /O2 /Ob2 /Ot -DNDEBUG
CCFLAGS_FDLIB = /nologo /c /W2 /MC -D__STDC__ /FdD:/OpenSource/JavaME/PhoneMe/cdc/build/win32-arm-ppc03/fp/cvm.pdb -DNDEBUG /Od
JAVAC_OPTIONS = -g -J-Xms32m -J-Xmx128m -encoding iso8859-1 -source 1.4 -target 1.4
CVM_DEFINES = -DCVM_OPTIMIZED -DCVM_INSPECTOR -DCVM_DEBUG_CLASSINFO -DCVM_DEBUG_STACKTRACES -DCVM_DEBUG_DUMPSTACK -DNDEBUG -DCVM_CLASSLOADING -DCVM_SERIALIZATION -DCVM_REFLECT -DCVM_XRUN -DCVM_AGENTLIB -DCVM_JVMTI -DCVM_THREAD_SUSPENSION -DCVM_DYNAMIC_LINKING -DCVM_JIT -DCVM_SPLIT_VERIFY -DCVM_JIT_REGISTER_LOCALS -DCVM_TIMESTAMPING -DJ2ME_CLASSLIB=foundation -DTARGET_CPU_FAMILY=arm -DCVM_JIT_COPY_CCMCODE_TO_CODECACHE -DCVM_DLL -DHAVE_64_BIT_IO -DNDEBUG -DARM -D_ARM -D__RVCT__ -DWINCE -DWIN32_
LEAN_AND_MEAN -DWIN32_PLATFORM_PSPC -DUNICODE -D_UNICODE -DUNDER_CE=300 -D_WIN32_WCE=300 -DPOCKETPC
host uname = CYGWIN_NT-5.1 pmi01230 1.5.25(0.156/4/2) 2008-06-12 19:34 i686 Cygwin
TARGET_CC version = Microsoft (R) C/C++ Optimizing Compiler Version 12.20.9615 for ARM
HOST_CC version = 3.4.4 i686-pc-cygwin
CVM_JAVA version = java version 1.4.2_19
TOOLS_DIR = /OpenSource/JavaME/PhoneMe/tools
SDK_DIR = C:/Program Files/Windows CE Tools
VC_PATH = /cygdrive/c/Program Files/Microsoft eMbedded C++ 4.0
PLATFORM_SDK_DIR = C:/Program Files/Windows CE Tools/wce420/POCKET PC 2003
PLATFORM_TOOLS_PATH = /cygdrive/c/Program Files/Microsoft eMbedded C++ 4.0/EVC/wce420/bin
COMMON_TOOLS_PATH = /cygdrive/c/Program Files/Microsoft eMbedded C++ 4.0/Common/EVC/Bin
INCLUDE = C:/Program Files/Windows CE Tools/wce420/POCKET PC 2003/Include/Armv4;C:/Program Files/Windows CE Tools/wce420/POCKET PC 2003/Mfc/include;C:/Program Files/Windows CE Tools/wce420/POCKET PC 2003/Atl/include
LIB = C:/Program Files/Windows CE Tools/wce420/POCKET PC 2003/Lib/Armv4;C:/Program Files/Windows CE Tools/wce420/POCKET PC 2003/Mfc/lib/armv4;C:/Program Files/Windows CE Tools/wce420/POCKET PC 2003/Atl/lib/armv4
updating /OpenSource/JavaME/PhoneMe/cdc/build/win32-arm-ppc03/fp/generated/build_defs.mk ...
Checking for build-time classes to compile ...
make[1]: Entering directory `/OpenSource/JavaME/PhoneMe/cdc/build/win32-arm-ppc03'
make[1]: Leaving directory `/OpenSource/JavaME/PhoneMe/cdc/build/win32-arm-ppc03'
make[1]: Entering directory `/OpenSource/JavaME/PhoneMe/cdc/build/win32-arm-ppc03'
make[1]: Leaving directory `/OpenSource/JavaME/PhoneMe/cdc/build/win32-arm-ppc03'
Checking for phoneME Advanced classes to compile ...
make[1]: Entering directory `/OpenSource/JavaME/PhoneMe/cdc/build/win32-arm-ppc03'
make[1]: Leaving directory `/OpenSource/JavaME/PhoneMe/cdc/build/win32-arm-ppc03'
Checking for test classes to compile ...
Checking for demo classes to compile ...
make CVM_TOOLS_BUILD=true tools
make[1]: Entering directory `/OpenSource/JavaME/PhoneMe/cdc/build/win32-arm-ppc03'

Building crw library ...
Compiling crw classes...
... /OpenSource/JavaME/PhoneMe/cdc/build/win32-arm-ppc03/fp/lib/java_crw_demo.jar

Building hprof tool ...
... fp/jvmti/hprof/obj/jvmti_hprof_blocks.o
jvmti_hprof_blocks.c
c:\program files\windows ce tools\wce420\pocket pc 2003\include\armv4\winsock2.h(113) : error C2011: 'fd_set' : 'struct' type redefinition
c:\program files\windows ce tools\wce420\pocket pc 2003\include\armv4\winsock2.h(133) : warning C4005: 'FD_CLR' : macro redefinition
c:\program files\windows ce tools\wce420\pocket pc 2003\include\armv4\winsock.h(123) : see previous definition of 'FD_CLR'
c:\program files\windows ce tools\wce420\pocket pc 2003\include\armv4\winsock2.h(148) : warning C4005: 'FD_SET' : macro redefinition
c:\program files\windows ce tools\wce420\pocket pc 2003\include\armv4\winsock.h(129) : see previous definition of 'FD_SET'
c:\program files\windows ce tools\wce420\pocket pc 2003\include\armv4\winsock2.h(157) : error C2011: 'timeval' : 'struct' type redefinition
c:\program files\windows ce tools\wce420\pocket pc 2003\include\armv4\winsock2.h(183) : warning C4005: 'IOCPARM_MASK' : macro redefinition
c:\program files\windows ce tools\wce420\pocket pc 2003\include\armv4\winsock.h(164) : see previous definition of 'IOCPARM_MASK'
c:\program files\windows ce tools\wce420\pocket pc 2003\include\armv4\winsock2.h(190) : warning C4005: '_IO' : macro redefinition
c:\program files\windows ce tools\wce420\pocket pc 2003\include\armv4\winsock.h(172) : see previous definition of '_IO'
c:\program files\windows ce tools\wce420\pocket pc 2003\include\armv4\winsock2.h(192) : warning C4005: '_IOR' : macro redefinition
c:\program files\windows ce tools\wce420\pocket pc 2003\include\armv4\winsock.h(173) : see previous definition of '_IOR'
c:\program files\windows ce tools\wce420\pocket pc 2003\include\armv4\winsock2.h(194) : warning C4005: '_IOW' : macro redefinition
c:\program files\windows ce tools\wce420\pocket pc 2003\include\armv4\winsock.h(174) : see previous definition of '_IOW'
c:\program files\windows ce tools\wce420\pocket pc 2003\include\armv4\winsock2.h(213) : error C2011: 'hostent' : 'struct' type redefinition
c:\program files\windows ce tools\wce420\pocket pc 2003\include\armv4\winsock2.h(226) : error C2011: 'netent' : 'struct' type redefinition
c:\program files\windows ce tools\wce420\pocket pc 2003\include\armv4\winsock2.h(233) : error C2011: 'servent' : 'struct' type redefinition
c:\program files\windows ce tools\wce420\pocket pc 2003\include\armv4\winsock2.h(245) : error C2011: 'protoent' : 'struct' type redefinition
c:\program files\windows ce tools\wce420\pocket pc 2003\include\armv4\winsock2.h(262) : warning C4005: 'IPPROTO_GGP' : macro redefinition
c:\program files\windows ce tools\wce420\pocket pc 2003\include\armv4\winsock.h(239) : see previous definition of 'IPPROTO_GGP'
c:\program files\windows ce tools\wce420\pocket pc 2003\include\armv4\winsock2.h(331) : error C2011: 'in_addr' : 'struct' type redefinition
c:\program files\windows ce tools\wce420\pocket pc 2003\include\armv4\winsock2.h(389) : error C2011: 'sockaddr_in' : 'struct' type redefinition
c:\program files\windows ce tools\wce420\pocket pc 2003\include\armv4\winsock2.h(399) : error C2011: 'WSAData' : 'struct' type redefinition
c:\program files\windows ce tools\wce420\pocket pc 2003\include\armv4\winsock2.h(459) : warning C4005: 'SO_DONTLINGER' : macro redefinition
c:\program files\windows ce tools\wce420\pocket pc 2003\include\armv4\winsock.h(437) : see previous definition of 'SO_DONTLINGER'
c:\program files\windows ce tools\wce420\pocket pc 2003\include\armv4\winsock2.h(516) : warning C4005: 'AF_IPX' : macro redefinition
c:\program files\windows ce tools\wce420\pocket pc 2003\include\armv4\winsock.h(488) : see previous definition of 'AF_IPX'
c:\program files\windows ce tools\wce420\pocket pc 2003\include\armv4\winsock2.h(556) : warning C4005: 'AF_MAX' : macro redefinition
c:\program files\windows ce tools\wce420\pocket pc 2003\include\armv4\winsock.h(505) : see previous definition of 'AF_MAX'
c:\program files\windows ce tools\wce420\pocket pc 2003\include\armv4\winsock2.h(562) : error C2011: 'sockaddr' : 'struct' type redefinition
c:\program files\windows ce tools\wce420\pocket pc 2003\include\armv4\winsock2.h(602) : error C2011: 'sockproto' : 'struct' type redefinition
c:\program files\windows ce tools\wce420\pocket pc 2003\include\armv4\winsock2.h(641) : error C2011: 'linger' : 'struct' type redefinition

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
davyp
Offline
Joined: 2007-01-03

I appear to remember a similar error. In cdc/src/win32/tools/jvmti/hprof/jvmti_hprof_md.h, remove
the following line that includes the winsock2.h header:

#include

I removed it and I did not get any winsock related errors during compilation of the JVMTI part.

Davy

yhilem
Offline
Joined: 2004-10-31

Thank you.

I applied your correction.

The build generates another error :

Linking /OpenSource/JavaME/PhoneMe/cdc/build/win32-arm-wm5/fp/bin/cvmi.dll
Création de la bibliothèque fp/bin/cvmi.lib et de l'objet fp/bin/cvmi.exp
Done Linking /OpenSource/JavaME/PhoneMe/cdc/build/win32-arm-wm5/fp/bin/cvmi.dll
Updating default MIME table...
<< Updating java.security file...
<< Updating java.policy file...
<< cc /OpenSource/JavaME/PhoneMe/cdc/src/portlibs/ansi_c/ansi_java_md.c
ansi_java_md.c
cc /OpenSource/JavaME/PhoneMe/cdc/src/win32/bin/java_md.c
java_md.c
Linking fp/bin/cvm.exe
Création de la bibliothèque fp/bin/cvm.lib et de l'objet fp/bin/cvm.exp
Compiling zic classes...
make CVM_TOOLS_BUILD=true tools
make[1]: Entering directory `/OpenSource/JavaME/PhoneMe/cdc/build/win32-arm-wm5'

Building crw library ...
... mkdir /OpenSource/JavaME/PhoneMe/cdc/build/win32-arm-wm5/fp/jvmti/crw/flags
crw flag CVM_SYMBOLS.false changed. Cleaning up.
crw flag CVM_OPTIMIZED.true changed. Cleaning up.
crw flag CVM_DEBUG.false changed. Cleaning up.
crw flag CVM_DEBUG_CLASSINFO.true changed. Cleaning up.
crw flag CVM_JVMTI.true changed. Cleaning up.
crw flag CVM_DYNAMIC_LINKING.true changed. Cleaning up.
... mkdir fp/jvmti/crw/obj
... mkdir /OpenSource/JavaME/PhoneMe/cdc/build/win32-arm-wm5/fp/jvmti/crw/classes
... fp/jvmti/crw/obj/java_crw_demo.o
java_crw_demo.c
... fp/jvmti/crw/obj/java_crw_demo_md.o
java_crw_demo_md.c
Linking /OpenSource/JavaME/PhoneMe/cdc/build/win32-arm-wm5/fp/bin/java_crw_demo.dll
Création de la bibliothèque D:/OpenSource/JavaME/PhoneMe/cdc/build/win32-arm-wm5/fp/bin/java_crw_demo.lib et de l'objet D:/OpenSource/JavaME/PhoneMe/cdc/build/win32-arm-wm5/fp/bin/java_crw_demo.exp
Done Linking /OpenSource/JavaME/PhoneMe/cdc/build/win32-arm-wm5/fp/bin/java_crw_demo.dll
Compiling crw classes...
... /OpenSource/JavaME/PhoneMe/cdc/build/win32-arm-wm5/fp/lib/java_crw_demo.jar

Building hprof tool ...
... mkdir /OpenSource/JavaME/PhoneMe/cdc/build/win32-arm-wm5/fp/jvmti/hprof/flags
Hprof flag CVM_SYMBOLS.false changed. Cleaning up.
Hprof flag CVM_OPTIMIZED.true changed. Cleaning up.
Hprof flag CVM_DEBUG.false changed. Cleaning up.
Hprof flag CVM_DEBUG_CLASSINFO.true changed. Cleaning up.
Hprof flag CVM_JVMTI.true changed. Cleaning up.
Hprof flag CVM_DYNAMIC_LINKING.true changed. Cleaning up.
... mkdir fp/jvmti/hprof/obj
... fp/jvmti/hprof/obj/debug_malloc.o
debug_malloc.c
... fp/jvmti/hprof/obj/jvmti_hprof_blocks.o
jvmti_hprof_blocks.c
... fp/jvmti/hprof/obj/jvmti_hprof_check.o
jvmti_hprof_check.c
... fp/jvmti/hprof/obj/jvmti_hprof_class.o
jvmti_hprof_class.c
... fp/jvmti/hprof/obj/jvmti_hprof_cpu.o
jvmti_hprof_cpu.c
... fp/jvmti/hprof/obj/jvmti_hprof_error.o
jvmti_hprof_error.c
... fp/jvmti/hprof/obj/jvmti_hprof_event.o
jvmti_hprof_event.c
... fp/jvmti/hprof/obj/jvmti_hprof_frame.o
jvmti_hprof_frame.c
... fp/jvmti/hprof/obj/jvmti_hprof_init.o
jvmti_hprof_init.c
... fp/jvmti/hprof/obj/jvmti_hprof_io.o
jvmti_hprof_io.c
... fp/jvmti/hprof/obj/jvmti_hprof_ioname.o
jvmti_hprof_ioname.c
... fp/jvmti/hprof/obj/jvmti_hprof_listener.o
jvmti_hprof_listener.c
... fp/jvmti/hprof/obj/jvmti_hprof_loader.o
jvmti_hprof_loader.c
... fp/jvmti/hprof/obj/jvmti_hprof_monitor.o
jvmti_hprof_monitor.c
... fp/jvmti/hprof/obj/jvmti_hprof_object.o
jvmti_hprof_object.c
... fp/jvmti/hprof/obj/jvmti_hprof_reference.o
jvmti_hprof_reference.c
... fp/jvmti/hprof/obj/jvmti_hprof_site.o
jvmti_hprof_site.c
... fp/jvmti/hprof/obj/jvmti_hprof_stack.o
jvmti_hprof_stack.c
... fp/jvmti/hprof/obj/jvmti_hprof_string.o
jvmti_hprof_string.c
... fp/jvmti/hprof/obj/jvmti_hprof_table.o
jvmti_hprof_table.c
... fp/jvmti/hprof/obj/jvmti_hprof_tag.o
jvmti_hprof_tag.c
... fp/jvmti/hprof/obj/jvmti_hprof_tls.o
jvmti_hprof_tls.c
... fp/jvmti/hprof/obj/jvmti_hprof_trace.o
jvmti_hprof_trace.c
... fp/jvmti/hprof/obj/jvmti_hprof_tracker.o
jvmti_hprof_tracker.c
... fp/jvmti/hprof/obj/jvmti_hprof_md.o
jvmti_hprof_md.c
... fp/jvmti/hprof/obj/linker_md.o
linker_md.c
... fp/jvmti/hprof/obj/jvmti_hprof_util.o
jvmti_hprof_util.c
Linking /OpenSource/JavaME/PhoneMe/cdc/build/win32-arm-wm5/fp/bin/jvmtihprof.dll
LINK : fatal error LNK1181: impossible d'ouvrir le fichier en entrée 'user32.lib'
make[1]: *** [/OpenSource/JavaME/PhoneMe/cdc/build/win32-arm-wm5/fp/bin/jvmtihprof.dll] Error 157
make[1]: Leaving directory `/OpenSource/JavaME/PhoneMe/cdc/build/win32-arm-wm5'
make: *** [tools] Error 2

yhilem@pmi01230 ~
$

yhilem
Offline
Joined: 2004-10-31

(follow pREV MESSAGE)

make CVM_TOOLS_BUILD=true tools
make[1]: Entering directory `/OpenSource/JavaME/PhoneMe/cdc/build/win32-arm-wm5'

Building crw library ...
... mkdir /OpenSource/JavaME/PhoneMe/cdc/build/win32-arm-wm5/fp/jvmti/crw/flags
crw flag CVM_SYMBOLS.false changed. Cleaning up.
crw flag CVM_OPTIMIZED.true changed. Cleaning up.
crw flag CVM_DEBUG.false changed. Cleaning up.
crw flag CVM_DEBUG_CLASSINFO.true changed. Cleaning up.
crw flag CVM_JVMTI.true changed. Cleaning up.
crw flag CVM_DYNAMIC_LINKING.true changed. Cleaning up.
... mkdir fp/jvmti/crw/obj
... mkdir /OpenSource/JavaME/PhoneMe/cdc/build/win32-arm-wm5/fp/jvmti/crw/classes
... fp/jvmti/crw/obj/java_crw_demo.o
java_crw_demo.c
... fp/jvmti/crw/obj/java_crw_demo_md.o
java_crw_demo_md.c
Linking /OpenSource/JavaME/PhoneMe/cdc/build/win32-arm-wm5/fp/bin/java_crw_demo.dll
Création de la bibliothèque D:/OpenSource/JavaME/PhoneMe/cdc/build/win32-arm-wm5/fp/bin/java_crw_demo.lib et de l'objet D:/OpenSource/JavaME/PhoneMe/cdc/build/win32-arm-wm5/fp/bin/java_crw_demo.exp
Done Linking /OpenSource/JavaME/PhoneMe/cdc/build/win32-arm-wm5/fp/bin/java_crw_demo.dll
Compiling crw classes...
... /OpenSource/JavaME/PhoneMe/cdc/build/win32-arm-wm5/fp/lib/java_crw_demo.jar

Building hprof tool ...
... mkdir /OpenSource/JavaME/PhoneMe/cdc/build/win32-arm-wm5/fp/jvmti/hprof/flags
Hprof flag CVM_SYMBOLS.false changed. Cleaning up.
Hprof flag CVM_OPTIMIZED.true changed. Cleaning up.
Hprof flag CVM_DEBUG.false changed. Cleaning up.
Hprof flag CVM_DEBUG_CLASSINFO.true changed. Cleaning up.
Hprof flag CVM_JVMTI.true changed. Cleaning up.
Hprof flag CVM_DYNAMIC_LINKING.true changed. Cleaning up.
... mkdir fp/jvmti/hprof/obj
... fp/jvmti/hprof/obj/debug_malloc.o
debug_malloc.c
... fp/jvmti/hprof/obj/jvmti_hprof_blocks.o
jvmti_hprof_blocks.c
... fp/jvmti/hprof/obj/jvmti_hprof_check.o
jvmti_hprof_check.c
... fp/jvmti/hprof/obj/jvmti_hprof_class.o
jvmti_hprof_class.c
... fp/jvmti/hprof/obj/jvmti_hprof_cpu.o
jvmti_hprof_cpu.c
... fp/jvmti/hprof/obj/jvmti_hprof_error.o
jvmti_hprof_error.c
... fp/jvmti/hprof/obj/jvmti_hprof_event.o
jvmti_hprof_event.c
... fp/jvmti/hprof/obj/jvmti_hprof_frame.o
jvmti_hprof_frame.c
... fp/jvmti/hprof/obj/jvmti_hprof_init.o
jvmti_hprof_init.c
... fp/jvmti/hprof/obj/jvmti_hprof_io.o
jvmti_hprof_io.c
... fp/jvmti/hprof/obj/jvmti_hprof_ioname.o
jvmti_hprof_ioname.c
... fp/jvmti/hprof/obj/jvmti_hprof_listener.o
jvmti_hprof_listener.c
... fp/jvmti/hprof/obj/jvmti_hprof_loader.o
jvmti_hprof_loader.c
... fp/jvmti/hprof/obj/jvmti_hprof_monitor.o
jvmti_hprof_monitor.c
... fp/jvmti/hprof/obj/jvmti_hprof_object.o
jvmti_hprof_object.c
... fp/jvmti/hprof/obj/jvmti_hprof_reference.o
jvmti_hprof_reference.c
... fp/jvmti/hprof/obj/jvmti_hprof_site.o
jvmti_hprof_site.c
... fp/jvmti/hprof/obj/jvmti_hprof_stack.o
jvmti_hprof_stack.c
... fp/jvmti/hprof/obj/jvmti_hprof_string.o
jvmti_hprof_string.c
... fp/jvmti/hprof/obj/jvmti_hprof_table.o
jvmti_hprof_table.c
... fp/jvmti/hprof/obj/jvmti_hprof_tag.o
jvmti_hprof_tag.c
... fp/jvmti/hprof/obj/jvmti_hprof_tls.o
jvmti_hprof_tls.c
... fp/jvmti/hprof/obj/jvmti_hprof_trace.o
jvmti_hprof_trace.c
... fp/jvmti/hprof/obj/jvmti_hprof_tracker.o
jvmti_hprof_tracker.c
... fp/jvmti/hprof/obj/jvmti_hprof_md.o
jvmti_hprof_md.c
... fp/jvmti/hprof/obj/linker_md.o
linker_md.c
... fp/jvmti/hprof/obj/jvmti_hprof_util.o
jvmti_hprof_util.c
Linking /OpenSource/JavaME/PhoneMe/cdc/build/win32-arm-wm5/fp/bin/jvmtihprof.dll
LINK : fatal error LNK1181: impossible d'ouvrir le fichier en entrée 'user32.lib'
make[1]: *** [/OpenSource/JavaME/PhoneMe/cdc/build/win32-arm-wm5/fp/bin/jvmtihprof.dll] Error 157
make[1]: Leaving directory `/OpenSource/JavaME/PhoneMe/cdc/build/win32-arm-wm5'
make: *** [tools] Error 2

yhilem
Offline
Joined: 2004-10-31

I replaced the line :
CVM_JVMTI_LINKLIBS += user32.lib kernel32.lib
with line :
CVM_JVMTI_LINKLIBS = winsock.lib
in file :
cdc\build\win32\rules_jvmti_hprof.mk

The build has progressed but generates another error :
............
... fp/jdwp/obj/linker_md.o
linker_md.c
... fp/jdwp/obj/exec_md.o
exec_md.c
... fp/jdwp/obj/util_md.o
util_md.c
../../src/win32\javavm/include/wceUtil.h(61) : error C2059: erreur de syntaxe : 'type'
../../src/win32/tools/jpda/back/util_md.c(42) : fatal error C1083: Impossible d'ouvrir le fichier include : 'sys/stat.h' : No such file or directory
make[1]: *** [fp/jdwp/obj/util_md.o] Error 2
make[1]: Leaving directory `/OpenSource/JavaME/PhoneMe/cdc/build/win32-arm-wm5'
make: *** [tools] Error 2

davyp
Offline
Joined: 2007-01-03

I removed the user32.lib kernel32.lib libraries too.

And just remove the sys/stat.h header too.

In cdc/src/win32/javavm/include/wceUtil.h you may need to remove the
line 'JAVAI_API char *getenv(const char* name);' as well.

In fact, all the changes I applied to enable debugging are incorporated in
this patch:

http://www.cs.kuleuven.be/~davy/phoneme/public/diff/Debug.diff

Davy

yhilem
Offline
Joined: 2004-10-31

With your valuable and appreciated big help, the build is now OK.
Again, Thank you very much for you help.