- **status**: unassigned --> review
- **assigned_to**: A V Mahesh (AVM)
---
** [tickets:#1487] OpenSAF Compilation failed on OEL6.4 machine**
**Status:** review
**Milestone:** 4.5.2
**Created:** Wed Sep 16, 2015 11:49 AM UTC by Ritu Raj
**Last Updated:** Wed Sep 16, 2015 11:49 AM UTC
**Owner:** A V Mahesh (AVM)
Setup:
This issue is seen on 4.7MO with changeset 6829
OEL6.4(64bit) with TIPC version 1.7.7 and gcc version 4.9.0
Issues Observed:
*OpenSAF fails to compile, as 'pidname' uninitialized in 'mdsc_db.c' and
'mds_log.c'
--> make fails with below errors:
(1). mds_c_db.c: In function ‘get_adest_details’:
**mds_c_db.c:102:5: error: ‘pid_name’ may be used uninitialized in** this
function [-Werror=maybe-uninitialized]
snprintf(process_name, MDS_MAX_PROCESS_NAME_LEN, "%s[%d]", pid_name,
process_id);
^
mds_c_db.c: In function ‘get_subtn_adest_details’:
**mds_c_db.c:170:5: error: ‘pid_name’ may be used uninitialized in this
function** [-Werror=maybe-uninitialized]
snprintf(process_name, MDS_MAX_PROCESS_NAME_LEN, "%s[%u]", pid_name,
process_id);
cc1: all warnings being treated as errors
make[6]: *** [libmds_la-mds_c_db.lo] Error 1
(2). mds_log.c: In function ‘get_process_name’:
**mds_log.c:61:2: error: ‘pid_name’ may be used uninitialized** in this
function [-Werror=maybe-uninitialized]
snprintf(process_name, MDS_MAX_PROCESS_NAME_LEN, "%s[%d]", pid_name,
process_id);
---
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.------------------------------------------------------------------------------
_______________________________________________
Opensaf-tickets mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensaf-tickets