Build of glite.lb.common fails due to failing unittest on 32-bit PPC. The problem is that this structure:
union {
int i;
char s;
struct timeval tv;
} null;
is handed over in edg_wll_InitContext() as variable parameter and then extracted in edg_wll_SetParam() by 'va_arg(ap,int)'. This results in random integer value instead of 0 (and there is a check for EDG_WLL_PARAM_SOURCE enum parameter).
It is probably needed to enhance lb.comon API by some edg_wll_SetParamDefault() function or repeat the full parameter switch in the edg_wll_InitContext().
Original issue: https://bugzilla.redhat.com/show_bug.cgi?id=1040396
Build of glite.lb.common fails due to failing unittest on 32-bit PPC. The problem is that this structure:
union { int i; char s; struct timeval tv; } null;
is handed over in edg_wll_InitContext() as variable parameter and then extracted in edg_wll_SetParam() by 'va_arg(ap,int)'. This results in random integer value instead of 0 (and there is a check for EDG_WLL_PARAM_SOURCE enum parameter).
It is probably needed to enhance lb.comon API by some edg_wll_SetParamDefault() function or repeat the full parameter switch in the edg_wll_InitContext().