Skip to main content

Failed to build PhoneME advanced MR2 b97 for Linux - dereferencing pointer

No replies
royzhou2_phoneme
Offline
Joined: 2008-05-10

Dear sir or Madam,

I need your great help ASAP.

When I build PhoneME advanced MR2 b97 release in November 2008, I meet one kind of error: dereferencing pointer to incompatible type. I check the source codes, all of this error is due to one problem in PhoneME bunlded package.

Corresponding Data type conversion in JNI.
such as one source line: getNativeInputModePtr(thisObject)->id = id;

This is because in the c source file: lfj_native_input_mode.c, the id data type is jint, but the member variable of getNativeInputModePtr(thisObject)->id is int.

All the errors I met is like this kind. Such as from boolean to jboolean.

Look at my following building error log:

... /home/rzhou/pkg/src/phoneme_advanced_mr2_2008_October/cdc/build/linux-arm-generic/midp/midp_linux_fb_gcc/obj_g/arm/lfj_export.o
... /home/rzhou/pkg/src/phoneme_advanced_mr2_2008_October/cdc/build/linux-arm-generic/midp/midp_linux_fb_gcc/obj_g/arm/lfj_cskin.o
... /home/rzhou/pkg/src/phoneme_advanced_mr2_2008_October/cdc/build/linux-arm-generic/midp/midp_linux_fb_gcc/obj_g/arm/lfj_native_input_mode.o
/home/rzhou/pkg/src/phoneme_advanced_mr2_2008_October/midp/build/linux_fb_gcc/../../src/highlevelui/lcdlf/lfjava/native/lfj_native_input_mode.c: In function `CNIcom_sun_midp_chameleon_input_NativeInputMode_initialize':
/home/rzhou/pkg/src/phoneme_advanced_mr2_2008_October/midp/build/linux_fb_gcc/../../src/highlevelui/lcdlf/lfjava/native/lfj_native_input_mode.c:73: error: dereferencing pointer to incomplete type
/home/rzhou/pkg/src/phoneme_advanced_mr2_2008_October/midp/build/linux_fb_gcc/../../src/highlevelui/lcdlf/lfjava/native/lfj_native_input_mode.c:76: error: dereferencing pointer to incomplete type
/home/rzhou/pkg/src/phoneme_advanced_mr2_2008_October/midp/build/linux_fb_gcc/../../src/highlevelui/lcdlf/lfjava/native/lfj_native_input_mode.c:76: error: dereferencing pointer to incomplete type
/home/rzhou/pkg/src/phoneme_advanced_mr2_2008_October/midp/build/linux_fb_gcc/../../src/highlevelui/lcdlf/lfjava/native/lfj_native_input_mode.c:79: error: dereferencing pointer to incomplete type
/home/rzhou/pkg/src/phoneme_advanced_mr2_2008_October/midp/build/linux_fb_gcc/../../src/highlevelui/lcdlf/lfjava/native/lfj_native_input_mode.c:79: error: dereferencing pointer to incomplete type
/home/rzhou/pkg/src/phoneme_advanced_mr2_2008_October/midp/build/linux_fb_gcc/../../src/highlevelui/lcdlf/lfjava/native/lfj_native_input_mode.c:83: error: dereferencing pointer to incomplete type
/home/rzhou/pkg/src/phoneme_advanced_mr2_2008_October/midp/build/linux_fb_gcc/../../src/highlevelui/lcdlf/lfjava/native/lfj_native_input_mode.c: In function `CNIcom_sun_midp_chameleon_input_NativeInputMode_finalize':
/home/rzhou/pkg/src/phoneme_advanced_mr2_2008_October/midp/build/linux_fb_gcc/../../src/highlevelui/lcdlf/lfjava/native/lfj_native_input_mode.c:100: error: dereferencing pointer to incomplete type
/home/rzhou/pkg/src/phoneme_advanced_mr2_2008_October/midp/build/linux_fb_gcc/../../src/highlevelui/lcdlf/lfjava/native/lfj_native_input_mode.c:100: error: dereferencing pointer to incomplete type
/home/rzhou/pkg/src/phoneme_advanced_mr2_2008_October/midp/build/linux_fb_gcc/../../src/highlevelui/lcdlf/lfjava/native/lfj_native_input_mode.c: In function `CNIcom_sun_midp_chameleon_input_NativeInputMode_supportsConstraints':
/home/rzhou/pkg/src/phoneme_advanced_mr2_2008_October/midp/build/linux_fb_gcc/../../src/highlevelui/lcdlf/lfjava/native/lfj_native_input_mode.c:112: error: dereferencing pointer to incomplete type
/home/rzhou/pkg/src/phoneme_advanced_mr2_2008_October/midp/build/linux_fb_gcc/../../src/highlevelui/lcdlf/lfjava/native/lfj_native_input_mode.c:112: error: dereferencing pointer to incomplete type
/home/rzhou/pkg/src/phoneme_advanced_mr2_2008_October/midp/build/linux_fb_gcc/../../src/highlevelui/lcdlf/lfjava/native/lfj_native_input_mode.c: In function `CNIcom_sun_midp_chameleon_input_NativeInputMode_getName':
/home/rzhou/pkg/src/phoneme_advanced_mr2_2008_October/midp/build/linux_fb_gcc/../../src/highlevelui/lcdlf/lfjava/native/lfj_native_input_mode.c:128: error: dereferencing pointer to incomplete type
/home/rzhou/pkg/src/phoneme_advanced_mr2_2008_October/midp/build/linux_fb_gcc/../../src/highlevelui/lcdlf/lfjava/native/lfj_native_input_mode.c:128: error: dereferencing pointer to incomplete type
/home/rzhou/pkg/src/phoneme_advanced_mr2_2008_October/midp/build/linux_fb_gcc/../../src/highlevelui/lcdlf/lfjava/native/lfj_native_input_mode.c: In function `CNIcom_sun_midp_chameleon_input_NativeInputMode_getCommandName':
/home/rzhou/pkg/src/phoneme_advanced_mr2_2008_October/midp/build/linux_fb_gcc/../../src/highlevelui/lcdlf/lfjava/native/lfj_native_input_mode.c:156: error: dereferencing pointer to incomplete type
/home/rzhou/pkg/src/phoneme_advanced_mr2_2008_October/midp/build/linux_fb_gcc/../../src/highlevelui/lcdlf/lfjava/native/lfj_native_input_mode.c:156: error: dereferencing pointer to incomplete type
/home/rzhou/pkg/src/phoneme_advanced_mr2_2008_October/midp/build/linux_fb_gcc/../../src/highlevelui/lcdlf/lfjava/native/lfj_native_input_mode.c: In function `CNIcom_sun_midp_chameleon_input_NativeInputMode_beginInput0':
/home/rzhou/pkg/src/phoneme_advanced_mr2_2008_October/midp/build/linux_fb_gcc/../../src/highlevelui/lcdlf/lfjava/native/lfj_native_input_mode.c:181: error: dereferencing pointer to incomplete type
/home/rzhou/pkg/src/phoneme_advanced_mr2_2008_October/midp/build/linux_fb_gcc/../../src/highlevelui/lcdlf/lfjava/native/lfj_native_input_mode.c:181: error: dereferencing pointer to incomplete type
/home/rzhou/pkg/src/phoneme_advanced_mr2_2008_October/midp/build/linux_fb_gcc/../../src/highlevelui/lcdlf/lfjava/native/lfj_native_input_mode.c: In function `CNIcom_sun_midp_chameleon_input_NativeInputMode_processKey0':
/home/rzhou/pkg/src/phoneme_advanced_mr2_2008_October/midp/build/linux_fb_gcc/../../src/highlevelui/lcdlf/lfjava/native/lfj_native_input_mode.c:204: error: dereferencing pointer to incomplete type
/home/rzhou/pkg/src/phoneme_advanced_mr2_2008_October/midp/build/linux_fb_gcc/../../src/highlevelui/lcdlf/lfjava/native/lfj_native_input_mode.c:204: error: dereferencing pointer to incomplete type
/home/rzhou/pkg/src/phoneme_advanced_mr2_2008_October/midp/build/linux_fb_gcc/../../src/highlevelui/lcdlf/lfjava/native/lfj_native_input_mode.c: In function `CNIcom_sun_midp_chameleon_input_NativeInputMode_getPendingChar':
/home/rzhou/pkg/src/phoneme_advanced_mr2_2008_October/midp/build/linux_fb_gcc/../../src/highlevelui/lcdlf/lfjava/native/lfj_native_input_mode.c:227: error: dereferencing pointer to incomplete type
/home/rzhou/pkg/src/phoneme_advanced_mr2_2008_October/midp/build/linux_fb_gcc/../../src/highlevelui/lcdlf/lfjava/native/lfj_native_input_mode.c:227: error: dereferencing pointer to incomplete type
/home/rzhou/pkg/src/phoneme_advanced_mr2_2008_October/midp/build/linux_fb_gcc/../../src/highlevelui/lcdlf/lfjava/native/lfj_native_input_mode.c: In function `CNIcom_sun_midp_chameleon_input_NativeInputMode_getNextMatch':
/home/rzhou/pkg/src/phoneme_advanced_mr2_2008_October/midp/build/linux_fb_gcc/../../src/highlevelui/lcdlf/lfjava/native/lfj_native_input_mode.c:243: error: dereferencing pointer to incomplete type
/home/rzhou/pkg/src/phoneme_advanced_mr2_2008_October/midp/build/linux_fb_gcc/../../src/highlevelui/lcdlf/lfjava/native/lfj_native_input_mode.c:243: error: dereferencing pointer to incomplete type
/home/rzhou/pkg/src/phoneme_advanced_mr2_2008_October/midp/build/linux_fb_gcc/../../src/highlevelui/lcdlf/lfjava/native/lfj_native_input_mode.c: In function `CNIcom_sun_midp_chameleon_input_NativeInputMode_hasMoreMatches':
/home/rzhou/pkg/src/phoneme_advanced_mr2_2008_October/midp/build/linux_fb_gcc/../../src/highlevelui/lcdlf/lfjava/native/lfj_native_input_mode.c:265: error: dereferencing pointer to incomplete type
/home/rzhou/pkg/src/phoneme_advanced_mr2_2008_October/midp/build/linux_fb_gcc/../../src/highlevelui/lcdlf/lfjava/native/lfj_native_input_mode.c:265: error: dereferencing pointer to incomplete type
/home/rzhou/pkg/src/phoneme_advanced_mr2_2008_October/midp/build/linux_fb_gcc/../../src/highlevelui/lcdlf/lfjava/native/lfj_native_input_mode.c: In function `CNIcom_sun_midp_chameleon_input_NativeInputMode_getMatchList':
/home/rzhou/pkg/src/phoneme_advanced_mr2_2008_October/midp/build/linux_fb_gcc/../../src/highlevelui/lcdlf/lfjava/native/lfj_native_input_mode.c:281: error: dereferencing pointer to incomplete type
/home/rzhou/pkg/src/phoneme_advanced_mr2_2008_October/midp/build/linux_fb_gcc/../../src/highlevelui/lcdlf/lfjava/native/lfj_native_input_mode.c:281: error: dereferencing pointer to incomplete type
/home/rzhou/pkg/src/phoneme_advanced_mr2_2008_October/midp/build/linux_fb_gcc/../../src/highlevelui/lcdlf/lfjava/native/lfj_native_input_mode.c: In function `CNIcom_sun_midp_chameleon_input_NativeInputMode_endInput0':
/home/rzhou/pkg/src/phoneme_advanced_mr2_2008_October/midp/build/linux_fb_gcc/../../src/highlevelui/lcdlf/lfjava/native/lfj_native_input_mode.c:324: error: dereferencing pointer to incomplete type
/home/rzhou/pkg/src/phoneme_advanced_mr2_2008_October/midp/build/linux_fb_gcc/../../src/highlevelui/lcdlf/lfjava/native/lfj_native_input_mode.c:324: error: dereferencing pointer to incomplete type
make[1]: *** [/home/rzhou/pkg/src/phoneme_advanced_mr2_2008_October/cdc/build/linux-arm-generic/midp/midp_linux_fb_gcc/obj_g/arm/lfj_native_input_mode.o] Error 1
make: *** [/home/rzhou/pkg/src/phoneme_advanced_mr2_2008_October/cdc/build/linux-arm-generic/midp/midp_linux_fb_gcc/bin/arm/runMidlet] Error 2
[ibmserver1]:/home/rzhou/pkg/src>

Could you please help me out soon, I have struggled for long time.

Thanks for your help in advance.

Best Regards,
Roy Zhou