Hi Mahesh, I hope you can help to send me the preprocessing file by running following command at "~/tests/logsv" ----- gcc -DHAVE_CONFIG_H -I. -I../.. -I../../osaf/libs/saf/include -I../../osaf/libs/core/include -I../../osaf/libs/core/leap/include -I../../osaf/libs/core/mds/include -I../../osaf/libs/core/common/include -I../../tests/unit_test_fw/inc -I../../osaf/libs/common/immsv/include -std=gnu11 -Wall -fno-strict-aliasing -Werror -fPIC -D_FORTIFY_SOURCE=2 -fstack-protector -DINTERNAL_VERSION_ID='""' -g -O2 -MT logtest-tet_saLogStreamOpen_2.o -MD -MP -MF .deps/logtest-tet_saLogStreamOpen_2.Tpo -E -o logtest-tet_saLogStreamOpen_2.E `test -f 'tet_saLogStreamOpen_2.c' || echo './'`tet_saLogStreamOpen_2.c -----
The preprocessing file is located at "~/tests/logsv/logtest-tet_saLogStreamOpen_2.E". Regards, Vu. >-----Original Message----- >From: A V Mahesh [mailto:[email protected]] >Sent: Monday, April 04, 2016 3:56 PM >To: Vu Minh Nguyen >Cc: [email protected]; [email protected]; Anders >Widell >Subject: Re: [devel] Build error: implicit declaration of function >‘WEXITSTATUS’ [-Werror=implicit-function-declaration] > > >You want me test now ? > >-AVM > >On 4/4/2016 2:04 PM, Vu Minh Nguyen wrote: >> Hi Mahesh, >> >> Are you still encountering the issue or we can close it? Thanks. >> >> Regards, Vu. >> >>> -----Original Message----- >>> From: Vu Minh Nguyen [mailto:[email protected]] >>> Sent: Thursday, March 31, 2016 5:27 PM >>> To: 'A V Mahesh'; '[email protected]' >>> Subject: RE: [devel] Build error: implicit declaration of function >>> ‘WEXITSTATUS’ [-Werror=implicit-function-declaration] >>> >>> Hi Mahesh, >>> >>> Can you share your build options? I do not see the build error at my side. >>> >>> When I tried to run gcc with option "-E" instead of "-c" to see if the macro >>> WEXITSTATUS() is defined >>> in the scope of tet_saLogStreamOpen_2.c or not, like this: >>> >>> gcc -DHAVE_CONFIG_H -I. -I../.. -I../../osaf/libs/saf/include - >>> I../../osaf/libs/core/include -I../../osaf/libs/core/leap/include - >>> I../../osaf/libs/core/mds/include -I../../osaf/libs/core/common/include - >>> I../../tests/unit_test_fw/inc -I../../osaf/libs/common/immsv/include - >std=gnu11 >>> -Wall -fno-strict-aliasing -Werror -fPIC -D_FORTIFY_SOURCE=2 -fstack- >protector >>> -DINTERNAL_VERSION_ID='""' -g -O2 -MT logtest-tet_saLogStreamOpen_2.o - >MD >>> -MP -MF .deps/logtest-tet_saLogStreamOpen_2.Tpo -E -o logtest- >>> tet_saLogStreamOpen_2.E `test -f 'tet_saLogStreamOpen_2.c' || echo >>> './'`tet_saLogStreamOpen_2.c >>> >>> I got the result: >>> >>> if (((((__extension__ (((union { __typeof(rc) __in; int __i; }) { .__in = >>> (rc) >}).__i))) >>> & 0xff00) >> 8)) { >>> >>> fprintf(stderr, "Failed to perform command = %s\n", command); >>> rc_validate(((((__extension__ (((union { __typeof(rc) __in; int __i; }) >>> { .__in >= >>> (rc) }).__i))) & 0xff00) >> 8), 0); >>> goto done; >>> } >>> >>> So, wonder why same the gcc options, we got different results. >>> >>> Regards, Vu. >>> >>> >>>> -----Original Message----- >>>> From: A V Mahesh [mailto:[email protected]] >>>> Sent: Thursday, March 31, 2016 4:35 PM >>>> To: [email protected] >>>> Subject: [devel] Build error: implicit declaration of function >>>> ‘WEXITSTATUS’ [-Werror=implicit-function-declaration] >>>> >>>> >>>> >>>> make[2]: Entering directory `/avm/staging-publish/tests/logsv' >>>> gcc -DHAVE_CONFIG_H -I. -I../.. -I../../osaf/libs/saf/include >>>> -I../../osaf/libs/core/include -I../../osaf/libs/core/leap/include >>>> -I../../osaf/libs/core/mds/include -I../../osaf/libs/core/common/include >>>> -I../../tests/unit_test_fw/inc -I../../osaf/libs/common/immsv/include >>>> -std=gnu11 -Wall -fno-strict-aliasing -Werror -fPIC -D_FORTIFY_SOURCE=2 >>>> -fstack-protector -DINTERNAL_VERSION_ID='""' -g -O2 -MT >>>> logtest-tet_saLogStreamOpen_2.o -MD -MP -MF >>>> .deps/logtest-tet_saLogStreamOpen_2.Tpo -c -o >>>> logtest-tet_saLogStreamOpen_2.o `test -f 'tet_saLogStreamOpen_2.c' || >>>> echo './'`tet_saLogStreamOpen_2.c >>>> tet_saLogStreamOpen_2.c: In function ‘saLogStreamOpen_2_50’: >>>> tet_saLogStreamOpen_2.c:675:3: error: implicit declaration of function >>>> ‘WEXITSTATUS’ [-Werror=implicit-function-declaration] >>>> if (WEXITSTATUS(rc)) { >>>> ^ >>>> cc1: all warnings being treated as errors >>>> make[2]: *** [logtest-tet_saLogStreamOpen_2.o] Error 1 >>>> make[2]: Leaving directory `/avm/staging-publish/tests/logsv' >>>> make[1]: *** [all-recursive] Error 1 >>>> make[1]: Leaving directory `/avm/staging-publish' >>>> make: *** [all] Error 2 >>>> >>>> >>>> -AVM >>>> >>>> >>>> ------------------------------------------------------------------------------ >>>> Transform Data into Opportunity. >>>> Accelerate data analysis in your applications with >>>> Intel Data Analytics Acceleration Library. >>>> Click to learn more. >>>> http://pubads.g.doubleclick.net/gampad/clk?id=278785471&iu=/4140 >>>> _______________________________________________ >>>> Opensaf-devel mailing list >>>> [email protected] >>>> https://lists.sourceforge.net/lists/listinfo/opensaf-devel ------------------------------------------------------------------------------ _______________________________________________ Opensaf-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/opensaf-devel
