---
** [tickets:#649] java: Java bindings produce GCC warnings**
**Status:** accepted
**Created:** Fri Dec 06, 2013 11:18 AM UTC by Anders Widell
**Last Updated:** Fri Dec 06, 2013 11:18 AM UTC
**Owner:** Anders Widell
The java bindings produce GCC compiler warnings. Also, the makefile does not
include the OpenSAF common makefile, so warnings are not treated as errors. Two
of the warnings are actual bugs: the parameter type mismatch detected by GCC is
caused by calling the wrong function.
../../java/ais_api_impl_native/j_ais_socketUtil.c: In function
‘Java_org_opensaf_ais_SelectionObjectMediator_00024Worker_doSelect’:
../../java/ais_api_impl_native/j_ais_socketUtil.c:138:12: error:
variable ‘rfds_copy’ set but not used [-Werror=unused-but-set-variable]
cc1: all warnings being treated as errors
make[1]: *** [libjava_ais_api_native_la-j_ais_socketUtil.lo] Error 1
CC libjava_ais_api_native_la-j_utils.lo
../../java/ais_api_impl_native/j_utils.c: In function ‘JNI_OnLoad’:
../../java/ais_api_impl_native/j_utils.c:280:5: error: implicit
declaration of function ‘JNU_ProcessMonitoring_initIDs_OK’
[-Werror=implicit-function-declaration]
../../java/ais_api_impl_native/j_utils.c: In function
‘JNU_GetStringNativeChars’:
../../java/ais_api_impl_native/j_utils.c:398:9: error: implicit
declaration of function ‘malloc’ [-Werror=implicit-function-declaration]
../../java/ais_api_impl_native/j_utils.c:398:26: error: incompatible
implicit declaration of built-in function ‘malloc’ [-Werror]
../../java/ais_api_impl_native/j_utils.c:401:13: error: implicit
declaration of function ‘JNU_ThrowByName’
[-Werror=implicit-function-declaration]
cc1: all warnings being treated as errors
make[1]: *** [libjava_ais_api_native_la-j_utils.lo] Error 1
CC libjava_ais_api_native_la-j_utilsPrint.lo
../../java/ais_api_impl_native/j_utilsPrint.c: In function
‘U_printSaClusterNotificationBuffer_4’:
../../java/ais_api_impl_native/j_utilsPrint.c:211:9: error: passing
argument 2 of ‘U_printSaClusterNotification’ from incompatible pointer type
[-Werror]
../../java/ais_api_impl_native/j_utilsPrint.h:69:6: note: expected
‘const struct SaClmClusterNotificationT *’ but argument is of type ‘struct
SaClmClusterNotificationT_4 * const’
../../java/ais_api_impl_native/j_utilsPrint.c: In function
‘U_printSaClusterNotification_4’:
../../java/ais_api_impl_native/j_utilsPrint.c:253:5: error: passing
argument 2 of ‘U_printSaClusterNode’ from incompatible pointer type [-Werror]
../../java/ais_api_impl_native/j_utilsPrint.h:75:6: note: expected
‘const struct SaClmClusterNodeT *’ but argument is of type ‘const struct
SaClmClusterNodeT_4 *’
cc1: all warnings being treated as errors
make[1]: *** [libjava_ais_api_native_la-j_utilsPrint.lo] Error 1
CC libjava_ais_api_native_la-tracer.lo
make[1]: Target `all' not remade because of errors.
---
Sent from sourceforge.net because [email protected] is
subscribed to https://sourceforge.net/p/opensaf/tickets/
To unsubscribe from further messages, a project admin can change settings at
https://sourceforge.net/p/opensaf/admin/tickets/options. Or, if this is a
mailing list, you can unsubscribe from the mailing list.------------------------------------------------------------------------------
Sponsored by Intel(R) XDK
Develop, test and display web and hybrid apps with a single code base.
Download it for free now!
http://pubads.g.doubleclick.net/gampad/clk?id=111408631&iu=/4140/ostg.clktrk
_______________________________________________
Opensaf-tickets mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensaf-tickets