- **status**: review --> fixed
- **Comment**:
changeset: 6917:59f99717671b
branch: opensaf-4.5.x
parent: 6915:2858e3cff646
user: A V Mahesh <[email protected]>
date: Tue Sep 29 12:11:11 2015 +0530
summary: mds: fixed compilation issue gcc version 4.8.3 [#1487]
changeset: 6918:4cab894498a8
branch: opensaf-4.6.x
parent: 6916:639106f1c91e
user: A V Mahesh <[email protected]>
date: Tue Sep 29 12:11:21 2015 +0530
summary: mds: fixed compilation issue gcc version 4.8.3 [#1487]
changeset: 6919:a590b6eab3ec
tag: tip
parent: 6914:d0c45aac7464
user: A V Mahesh <[email protected]>
date: Tue Sep 29 12:11:36 2015 +0530
summary: mds: fixed compilation issue gcc version 4.8.3 [#1487]
---
** [tickets:#1487] OpenSAF Compilation failed on OEL6.4 machine**
**Status:** fixed
**Milestone:** 4.5.2
**Created:** Wed Sep 16, 2015 11:49 AM UTC by Ritu Raj
**Last Updated:** Tue Sep 29, 2015 06:34 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