Skip to main content

Error building MIDP, for Linux ARM

No replies
elia09
Offline
Joined: 2009-02-09

Hi,all.
I have followed the getting started guide for release MR3, and successed to get PCSL and CLDC to compile. When trying to compile MIDP I get an error below, can someone give me some suggestions?

========================
MIDP Build Configuration
========================

VAR_IMPORT_FROM =

USE_NATIVE_AMS = false
USE_NAMS_TEST_SERVICE = false
USE_RAW_AMS_IMAGES = true
USE_RESTRICTED_CRYPTO = false
USE_SSL = false
USE_BINARY_CRYPTO = false
USE_FIXED = false
USE_CLDC_11 = true
USE_MONET = false
USE_STATIC_PROPERTIES = true
USE_GCC = true
USE_I3_TEST = false
USE_IMAGE_CACHE = true
USE_ICON_CACHE = true
USE_JAVA_DEBUGGER = false
USE_JAVA_PROFILER = false
USE_MIDP_MALLOC = true
USE_MULTIPLE_ISOLATES = false
USE_DEBUG = false
USE_GCOV = false
USE_CLDC_RELEASE = false
USE_NATIVE_PROFILER = false
USE_NETWORK_INDICATOR = true
USE_NUTS_FRAMEWORK = false
USE_RMS_TREE_INDEX = false
USE_MIDP_ABB = false
USE_JSR_177 = false
USE_JSR_75 = false
USE_JSR_82 = false
USE_JSR_120 = false
USE_JSR_172 = false
USE_JSR_226 = false
USE_PISCES = false
USE_JSR_179 = false
USE_JSR_180 = false
USE_JSR_184 = false
USE_JSR_205 = false
USE_JSR_211 = false
USE_JSR_229 = false
USE_JSR_230 = false
USE_JSR_234 = false
USE_JSR_135 = false
USE_JSR_238 = false
USE_JSR_239 = false
USE_JSR_280 = false
USE_JSR_256 = false
USE_ABSTRACTIONS = false
USE_VERBOSE_MAKE = false
USE_CONTROL_ARGS_FROM_JAD = false
USE_JPEG = false
USE_GCI = false
USE_DIRECTDRAW = false
USE_FILE_SYSTEM = true
USE_NATIVE_PTI = false
USE_VERIFY_ONCE = false
USE_VM_PROFILES = false
USE_SERVER_SOCKET = true
USE_LINKS = true
USE_ON_DEVICE_DEBUG = false
USE_WTK_DEBUG = false
USE_AMS_FOLDERS = false

CFLAGS = -DLINUX -DUNIX -Werror -W -Wall -DGCC -O3 -fexpensive-optimizations -s -fomit-frame-pointer -DENABLE_CDC=0 -DENABLE_MIDP_MALLOC=1 -DENABLE_IMAGE_CACHE=1 -DENABLE_ICON_CACHE=1 -DENABLE_I3_TEST=0 -DENABLE_NUTS_FRAMEWORK=0 -DENABLE_NETWORK_INDICATOR=1 -DENABLE_MULTIPLE_ISOLATES=0 -DENABLE_JAVA_DEBUGGER=0 -DENABLE_NATIVE_AMS=0 -DENABLE_NAMS_TEST_SERVICE=0 -DENABLE_NATIVE_PTI=0 -DENABLE_MESSAGE_STRINGS=0 -DENABLE_CLDC_11=1 -DENABLE_VM_PROFILES=0 -DENABLE_MONET=0 -DENABLE_SERVER_SOCKET=1 -DENABLE_JPEG=0 -DENABLE_DIRECT_DRAW=0 -DENABLE_FILE_SYSTEM=1 -DENABLE_ON_DEVICE_DEBUG=0 -DENABLE_WTK_DEBUG=0 -DENABLE_AMS_FOLDERS=0 -DENABLE_LINKS=0 -DPROJECT_NAME='phoneME Feature project' -DPRODUCT -DENABLE_DEBUG=0 -DENABLE_CONTROL_ARGS_FROM_JAD=0 -DRELEASE='root:02.09.09-22:53' -DIMPL_VERSION='' -DFULL_VERSION='root:02.09.09-22:53' -DROMIZING -DARM -msoft-float -DPRODUCT -pipe -DGCC -Wreturn-type -Wcomment -Wparentheses -Wformat -fstrict-aliasing -DPRODUCT -DLINUX -DREQUIRES_JVMCONFIG_H=1 -DHARDWARE_LITTLE_ENDIAN=1 -DHOST_LITTLE_ENDIAN=1 -DMSW_FIRST_FOR_DOUBLE=1 -DROMIZING=1 -DJVM_RELEASE_VERSION='1.1' -DJVM_BUILD_VERSION='internal' -DJVM_NAME='phoneME Feature VM' -I/usr/phoneme_feature/midp/build/linux_fb_gcc/../../src/protocol/socket/include

CPPFLAGS = -fconserve-space -DARM -msoft-float -DPRODUCT -pipe -DGCC -Wreturn-type -Wcomment -Wparentheses -Wformat -fstrict-aliasing -DPRODUCT -DLINUX -DREQUIRES_JVMCONFIG_H=1 -DHARDWARE_LITTLE_ENDIAN=1 -DHOST_LITTLE_ENDIAN=1 -DMSW_FIRST_FOR_DOUBLE=1 -DROMIZING=1 -DJVM_RELEASE_VERSION='1.1' -DJVM_BUILD_VERSION='internal' -DJVM_NAME='phoneME Feature VM' -fno-gnu-keywords -fno-operator-names -fno-exceptions -fno-optional-diags -fno-rtti -DLINUX -DUNIX -Werror -W -Wall -DGCC -O3 -fexpensive-optimizations -s -fomit-frame-pointer -DENABLE_CDC=0 -DENABLE_MIDP_MALLOC=1 -DENABLE_IMAGE_CACHE=1 -DENABLE_ICON_CACHE=1 -DENABLE_I3_TEST=0 -DENABLE_NUTS_FRAMEWORK=0 -DENABLE_NETWORK_INDICATOR=1 -DENABLE_MULTIPLE_ISOLATES=0 -DENABLE_JAVA_DEBUGGER=0 -DENABLE_NATIVE_AMS=0 -DENABLE_NAMS_TEST_SERVICE=0 -DENABLE_NATIVE_PTI=0 -DENABLE_MESSAGE_STRINGS=0 -DENABLE_CLDC_11=1 -DENABLE_VM_PROFILES=0 -DENABLE_MONET=0 -DENABLE_SERVER_SOCKET=1 -DENABLE_JPEG=0 -DENABLE_DIRECT_DRAW=0 -DENABLE_FILE_SYSTEM=1 -DENABLE_ON_DEVICE_DEBUG=0 -DENABLE_WTK_DEBUG=0 -DENABLE_AMS_FOLDERS=0 -DENABLE_LINKS=0 -DPROJECT_NAME='phoneME Feature project' -DPRODUCT -DENABLE_DEBUG=0 -DENABLE_CONTROL_ARGS_FROM_JAD=0 -DRELEASE='root:02.09.09-22:53' -DIMPL_VERSION='' -DFULL_VERSION='root:02.09.09-22:53' -DROMIZING -DARM -msoft-float -DPRODUCT -pipe -DGCC -Wreturn-type -Wcomment -Wparentheses -Wformat -fstrict-aliasing -DPRODUCT -DLINUX -DREQUIRES_JVMCONFIG_H=1 -DHARDWARE_LITTLE_ENDIAN=1 -DHOST_LITTLE_ENDIAN=1 -DMSW_FIRST_FOR_DOUBLE=1 -DROMIZING=1 -DJVM_RELEASE_VERSION='1.1' -DJVM_BUILD_VERSION='internal' -DJVM_NAME='phoneME Feature VM' -I/usr/phoneme_feature/midp/build/linux_fb_gcc/../../src/protocol/socket/include

LD_FLAGS = -Xlinker --no-warn-mismatch -lpthread

JDK_DIR = /usr/java/j2sdk1.4.2_13 (v1.4.2_13)
TARGET_VM = cldc_vm
MIDP_DIR = /usr/phoneme_feature/midp/build/linux_fb_gcc/../..
PROJECT_MIDP_DIR = /usr/phoneme_feature/midp/build/linux_fb_gcc/../..
CLDC_DIST_DIR = /usr/phoneme_feature/output/cldc/linux_arm/dist
TOOLS_DIR = /usr/phoneme_feature/tools
ABSTRACTIONS_DIR =
JSR_75_DIR =
PROJECT_JSR_75_DIR =
JSR_82_DIR =
PROJECT_JSR_82_DIR =
JSR_120_DIR =
PROJECT_JSR_120_DIR =
JSR_135_DIR =
JSR_172_DIR =
PROJECT_JSR_172_DIR =
JSR_226_DIR =
PISCES_DIR =
JSR_177_DIR =
PROJECT_JSR_177_DIR =
JSR_179_DIR =
PROJECT_JSR_179_DIR =
JSR_180_DIR =
JSR_184_DIR =
JSR_205_DIR =
PROJECT_JSR_205_DIR =
JSR_211_DIR =
PROJECT_JSR_211_DIR =
JSR_229_DIR =
PROJECT_JSR_229_DIR =
JSR_230_DIR =
JSR_234_DIR =
JSR_238_DIR =
PROJECT_JSR_238_DIR =
JSR_239_DIR =
PROJECT_JSR_239_DIR =
JSR_280_DIR =
PROJECT_JSR_280_DIR =
JSR_256_DIR =
PROJECT_JSR_256_DIR =
JC_DIR =
RESTRICTED_CRYPTO_DIR =
CRYPTO_OUTPUT_DIR = /usr/phoneme_feature/midp/build/linux_fb_gcc/crypto_output
JPEG_DIR =
PCSL_OUTPUT_DIR = /usr/phoneme_feature/output/pcsl
MIDP_OUTPUT_DIR = /usr/phoneme_feature/output/midp

=======================================
MIDP Subsystem and Module Configuration
=======================================

SUBSYSTEMS = configuration configuration properties_port example example verifier ams_folders ams_debug on_device_debug jams example core i18n highlevelui lowlevelui rms security gcf file http serial serial_port socket socket_notify ssocket udp push events tool automation media
SUBSYSTEM_AMS_MODULES = jams
SUBSYSTEM_EVENTS_MODULES = master_mode
SUBSYSTEM_PUSH_MODULES =
SUBSYSTEM_I18N_MODULES = common
SUBSYSTEM_LCDUI_MODULES = chameleon
SUBSYSTEM_GRAPHICS_MODULES = gx_putpixel
SUBSYSTEM_MMAPI_MODULES =
SUBSYSTEM_PTI_MODULES = javapti
SUBSYSTEM_PROTOCOL_MODULES = ssocket
SUBSYSTEM_RMS_MODULES = common linear_index
SUBSYSTEM_SECURITY_MODULES = crypto file_digest internal_api_protection midp_permissions reference_permission_dialog pki publickeystore secure_random access_controller
SUBSYSTEM_TOOL_MODULES = keytool jadtool imageutil skinromization l10n_generator romizer

make[1]: Entering directory `/usr/phoneme_feature/midp/build/linux_fb_gcc'
... searching updated .java files
... no need to recompile .java files
make[1]: Leaving directory `/usr/phoneme_feature/midp/build/linux_fb_gcc'
... searching updated .java files
... no need to recompile .java files
... converting OTA images to raw format
Overwrite raw image: /usr/phoneme_feature/output/midp/appdb/_ack8.raw
Overwrite raw image: /usr/phoneme_feature/output/midp/appdb/_dukeok8.raw
... converting AMS images to raw format
Overwrite raw image: /usr/phoneme_feature/output/midp/appdb/_ch_disabled.raw
Overwrite raw image: /usr/phoneme_feature/output/midp/appdb/_ch_fg_requested.raw
Overwrite raw image: /usr/phoneme_feature/output/midp/appdb/_ch_hilight_bg.raw
Overwrite raw image: /usr/phoneme_feature/output/midp/appdb/_ch_single.raw
Overwrite raw image: /usr/phoneme_feature/output/midp/appdb/_ch_suite.raw
Overwrite raw image: /usr/phoneme_feature/output/midp/appdb/_single8.raw
Overwrite raw image: /usr/phoneme_feature/output/midp/appdb/_suite8.raw
Overwrite raw image: /usr/phoneme_feature/output/midp/appdb/trustedmidlet_icon.raw
Overwrite raw image: /usr/phoneme_feature/output/midp/appdb/splash_screen_176x210.raw
Overwrite raw image: /usr/phoneme_feature/output/midp/appdb/splash_screen_210x176.raw
exporting parameter values to /usr/phoneme_feature/output/midp/Settings.gmk ...
created /usr/phoneme_feature/output/midp/Settings.gmk
... linking /usr/phoneme_feature/output/midp/bin/arm/runMidlet
/usr/phoneme_feature/output/midp/obj/arm/libobj.a(ROMImage.o)(.rodata+0x27da4): undefined reference to `Java_com_sun_midp_crypto_MD2_nativeUpdate'
/usr/phoneme_feature/output/midp/obj/arm/libobj.a(ROMImage.o)(.rodata+0x27df4): undefined reference to `Java_com_sun_midp_crypto_MD2_nativeFinal'
/usr/phoneme_feature/output/midp/obj/arm/libobj.a(ROMImage.o)(.rodata+0x27e68): undefined reference to `Java_com_sun_midp_crypto_MD5_nativeUpdate'
/usr/phoneme_feature/output/midp/obj/arm/libobj.a(ROMImage.o)(.rodata+0x27e9c): undefined reference to `Java_com_sun_midp_crypto_MD5_nativeFinal'
/usr/phoneme_feature/output/midp/obj/arm/libobj.a(ROMImage.o)(.rodata+0x27f18): undefined reference to `Java_com_sun_midp_crypto_SHA_nativeUpdate'
/usr/phoneme_feature/output/midp/obj/arm/libobj.a(ROMImage.o)(.rodata+0x27f4c): undefined reference to `Java_com_sun_midp_crypto_SHA_nativeFinal'
collect2: ld returned 1 exit status
make: *** [/usr/phoneme_feature/output/midp/bin/arm/runMidlet] 错误 1
make: Leaving directory `/usr/phoneme_feature/midp/build/linux_fb_gcc'
sjwc_status=failed