Hi Mahesh, please ignore the patch, it should only include <cinttypes> where the PRI macros are used, I noticed that the patch includes it in too many places. /Regards HansN
-----Original Message----- From: Hans Nordebäck Sent: den 31 januari 2017 12:44 To: A V Mahesh <mahesh.va...@oracle.com>; Chani Srivastava <chani.srivast...@oracle.com>; Anders Widell <anders.wid...@ericsson.com> Cc: opensaf-devel@lists.sourceforge.net; Hans Nordebäck <hans.nordeb...@ericsson.com> Subject: Re: [devel] `make rpm` giving error Hi Mahesh, I have built with gcc 4.8, 5.5 and 6.3 without any problem using Ubuntu 14. What environment are you using? Anyhow, the required header files should be explicitly included in each required source file, I enclose a patch that explicitly includes cinttypes, (not fully complete though), can you verify if it works? /Regards HansN On 01/31/2017 11:40 AM, A V Mahesh wrote: > Hi Hans N, > > > On 1/31/2017 3:58 PM, A V Mahesh wrote: >> Hi Hans N, >> >> This same issue exist with all following file , is their any common >> location we can include this >> >> <cinttypes> ? >> >> vi src/amf/amfd/mds.cc >> vi src/imm/agent/imma_mds.cc >> vi src/amf/amfd/ndfsm.cc >> vi src/amf/amfd/mds.cc >> vi src/amf/amfd/sgproc.cc >> vi src/amf/amfd/siass.cc >> vi src/amf/amfd/util.cc >> vi src/amf/amfnd/amfnd.cc > vi src/amf/amfnd/clc.cc > vi src/amf/amfnd/comp.cc > vi src/amf/amfnd/di.cc > vi src/amf/amfnd/mds.cc > vi src/amf/amfnd/proxy.cc > vi src/amf/amfnd/proxydb.cc > ................................... > > Most of them are related to LOG_ER() macro related . > > -AVM >> >> -AVM >> >> On 1/31/2017 3:10 PM, Hans Nordebäck wrote: >>> Perhaps the <inttypes.h> has to be changed to <cinttypes> in >>> mds_log.cc, (__STDC_FORMAT_MACROS). /Regards Hans >>> >>> -----Original Message----- >>> From: Chani Srivastava [mailto:chani.srivast...@oracle.com] >>> Sent: den 31 januari 2017 10:21 >>> To: opensaf-devel@lists.sourceforge.net >>> Subject: [devel] `make rpm` giving error >>> >>> Hi, >>> >>> While creating rpm from latest opensaf-staging, I am getting >>> following errors. >>> 64-bit machine >>> GCC version : 6.1 >>> >>> src/mds/mds_log.cc: In static member function 'static bool >>> MdsLog::Init()': >>> src/mds/mds_log.cc:93:50: error: expected ')' before 'PRIu32' >>> snprintf(pid_path, sizeof(pid_path), "/proc/%" PRIu32 >>> "/cmdline", process_id); >>> ^~~~~~ >>> src/mds/mds_log.cc:93:79: error: spurious trailing '%' in format >>> [-Werror=format=] >>> snprintf(pid_path, sizeof(pid_path), "/proc/%" PRIu32 >>> "/cmdline", process_id); ^ >>> src/mds/mds_log.cc:93:79: error: too many arguments for format >>> [-Werror=format-extra-args] >>> cc1plus: all warnings being treated as errors >>> make[3]: *** [src/mds/lib_libopensaf_core_la-mds_log.lo] Error 1 >>> make[3]: Leaving directory >>> `/home/chani/Builds/opensaf_latest/rpms/BUILD/opensaf-5.2.M0' >>> make[2]: *** [all-recursive] Error 1 >>> make[2]: Leaving directory >>> `/home/chani/Builds/opensaf_latest/rpms/BUILD/opensaf-5.2.M0' >>> make[1]: *** [all] Error 2 >>> make[1]: Leaving directory >>> `/home/chani/Builds/opensaf_latest/rpms/BUILD/opensaf-5.2.M0' >>> error: Bad exit status from >>> /home/chani/Builds/opensaf_latest/rpms/tmp/rpm-tmp.96704 (%build) >>> >>> >>> RPM build errors: >>> Bad exit status from >>> /home/chani/Builds/opensaf_latest/rpms/tmp/rpm-tmp.96704 (%build) >>> make: *** [rpm] Error 1 >>> >>> >> >> --------------------------------------------------------------------- >> --------- >> >> Check out the vibrant tech community on one of the world's most >> engaging tech sites, SlashDot.org! http://sdm.link/slashdot >> _______________________________________________ >> Opensaf-devel mailing list >> Opensaf-devel@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/opensaf-devel > ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, SlashDot.org! http://sdm.link/slashdot _______________________________________________ Opensaf-devel mailing list Opensaf-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/opensaf-devel