[Starlingx-discuss] openSUSE: sm-db build failure
Arce Moreno, Abraham
abraham.arce.moreno at intel.com
Wed Sep 25 00:55:08 UTC 2019
Hi Bin,
Based in our work for openSUSE [0], and due to rpmlint configuration, we are having 2 warnings treated as errors while building sm-db package:
[ 4s] sm_db_service_heartbeat.c: In function 'SmErrorT sm_db_service_heartbeat_insert(SmDbHandleT*, SmDbServiceHeartbeatT*)':
[ 4s] sm_db_service_heartbeat.c:321:13: error: format '%li' expects argument of type 'long int', but argument 35 has type 'SmTimerIdT {aka int}' [-Werror=format=]
[ 4s] record->heartbeat_timer_id,
[ 4s] sm_db_service_heartbeat.c: In function 'SmErrorT sm_db_service_heartbeat_update(SmDbHandleT*, SmDbServiceHeartbeatT*)':
[ 4s] sm_db_service_heartbeat.c:438:49: error: format '%li' expects argument of type 'long int', but argument 5 has type 'SmTimerIdT {aka int}' [-Werror=format=]
[ 4s] record->heartbeat_timer_id );
[ 4s] cc1plus: all warnings being treated as errors
We have confirmed the package gets built after reverting commit "Enhance timer system to avoid double deregister" [1].
Can you please guide us into the right direction to get this properly fixed?
[0] https://review.opendev.org/#/c/679686/
[1] https://review.opendev.org/#/c/675936/
More information about the Starlingx-discuss
mailing list