Hi Mahesh,

We still not seen the error with the same build option.
I guess, the mismatch may come due to difference in standard lib version b/w 
us. 

Could you re-try by adding the header "#include <sys/wait.h>" to " 
tests/logsv/logtest.h"?
If it works for you, I will deliver a fix for this.

--------------------
diff --git a/tests/logsv/logtest.h b/tests/logsv/logtest.h
--- a/tests/logsv/logtest.h
+++ b/tests/logsv/logtest.h
@@ -26,6 +26,7 @@
 #include <assert.h>
 #include <utest.h>
 #include <util.h>
+#include <sys/wait.h>
 
 #include <osaf_time.h>
 #include <logtrace.h>
--------------------

Regards, Vu.


>-----Original Message-----
>From: A V Mahesh [mailto:[email protected]]
>Sent: Monday, April 04, 2016 4:34 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]
>
>Hi Vu,
>
>Still  seeing the issue with :changeset:   7418 :
>
>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)) {
>    ^
>
>==================================================================
>=================
>
>Build options:
>
># ./bootstrap.sh ; ./configure  CFLAGS="-g -O2" CXXFLAGS="-g -O2"
>--enable-imm-pbe --enable-tests --enable-ntf-imcn;make rpm
>
>SC-1:~ # uname -a
>Linux SC-1 3.0.13-0.27-default #1 SMP Wed Feb 15 13:33:49 UTC 2012
>(d73692b) x86_64 x86_64 x86_64 GNU/Linux
>
>SC-1:~ # cat /etc/issue
>  Welcome to SUSE Linux Enterprise Server 11 SP2  (x86_64) - Kernel \r (\l).
>
>SC-1:~ # gcc -v
>Using built-in specs.
>COLLECT_GCC=gcc
>COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-unknown-linux-
>gnu/4.8.3/lto-wrapper
>Target: x86_64-unknown-linux-gnu
>Configured with: ../gcc-4.8.3/configure --prefix=/usr --enable-shared
>--enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu
>--enable-languages=c,c++ --disable-multilib --disable-bootstrap
>--with-system-zlib --with-gmp=/usr/local/gmp-4.3.2
>--with-mpfr=/usr/local/mpfr-2.4.2 --with-mpc=/usr/local/mpc-1.8.1 :
>(reconfigured) ../gcc-4.8.3/configure --prefix=/usr --enable-shared
>--enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu
>--enable-languages=c,c++ --disable-multilib --disable-bootstrap
>--with-system-zlib --with-gmp=/usr/local/gmp-4.3.2
>--with-mpfr=/usr/local/mpfr-2.4.2 --with-mpc=/usr/local/mpc-1.8.1
>Thread model: posix
>gcc version 4.8.3 (GCC)
>(reverse-i-search)`g': gcc -v
>==================================================================
>=================
>
>-AVM
>
>
>On 4/4/2016 2:39 PM, Vu Minh Nguyen wrote:
>> 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

Reply via email to