Hi Jose

On 17.03.2014 12:34, Jose Vidal wrote:
> Hi again,
> 
> I have this error:
> 
> =====================
> 
> target thumb C++: clatd_test <= external/android-clat/clatd_test.cpp
> external/android-clat/clatd_test.cpp: In function 'void 
> do_translate_packet(const uint8_t*, size_t, uint8_t*, size_t*, char const*)':
> external/android-clat/clatd_test.cpp:424:25: error: 'SOCK_NONBLOCK' was not 
> declared in this scope

SOCK_NONBLOCK is not supported by bionic. Just define it to whatever
constant the Linux kernel expects. The actual value should be hidden
somewhere in the header files on your Linux desktop. ;) Reading 'man 2
socket' on your Linux will tell you the details.

I wonder where clat comes from TBH. It's not from us AFAIK. Can't you
just leave it out?


> external/android-clat/clatd_test.cpp: In member function 'virtual void 
> ClatdTest_AdjustChecksum_Test::TestBody()':
> external/android-clat/clatd_test.cpp:631:15: error: unused variable 'failed' 
> [-Werror=unused-variable]
> external/android-clat/clatd_test.cpp: In member function 'virtual void 
> ClatdTest_Fragmentation_Test::TestBody()':
> external/android-clat/clatd_test.cpp:664:7: error: unused variable 'len' 
> [-Werror=unused-variable]
> external/android-clat/clatd_test.cpp:664:12: error: unused variable 'i' 
> [-Werror=unused-variable]
> In file included from external/android-clat/clatd_test.cpp:25:0:
> external/gtest/include/gtest/gtest.h: In function 'testing::AssertionResult 
> testing::internal::CmpHelperEQ(char const*, char const*, const T1&, const 
> T2&) [with T1 = int, T2 = unsigned int]':
> external/gtest/include/gtest/gtest.h:1353:30:   instantiated from 'static 
> testing::AssertionResult 
> testing::internal::EqHelper<lhs_is_null_literal>::Compare(char const*, char 
> const*, const T1&, const T2&) [with T1 = int, T2 = unsigned int, bool 
> lhs_is_null_literal = false]'
> external/android-clat/clatd_test.cpp:307:330:   instantiated from here
> external/gtest/include/gtest/gtest.h:1316:3: error: comparison between signed 
> and unsigned integer expressions [-Werror=sign-compare]
> cc1plus: all warnings being treated as errors

And these errors from from gcc's -Werror flag.

Best regards
Thomas

> make: *** 
> [out/target/product/arm2_6dq/obj/EXECUTABLES/clatd_test_intermediates/clatd_test.o]
>  Error 1
> 
> =======================
> 
> Any idea ?
> 
> Thanks in advance.
> 
> 
> Regards.
> 
> jvidalsm
> _______________________________________________
> dev-b2g mailing list
> dev-b2g@lists.mozilla.org
> https://lists.mozilla.org/listinfo/dev-b2g
> 

_______________________________________________
dev-b2g mailing list
dev-b2g@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-b2g

Reply via email to