You may want to take a look at this post to the googletestframework group: http://groups.google.com/group/googletestframework/browse_thread/thread/8d2ecb3d0211f6db. It appears to point to the same underlying issue.
On Dec 21, 2012 8:18 AM, "Maxim Kot" <work.m...@gmail.com> wrote:
>
> Gmock not compiling for subj platform.
> Toolchain here.
> Command line: cmake -DCMAKE_TOOLCHAIN_FILE=../../cmake/arm-marvell-linux-gnu.cmake ../ && make
> arm-marvell-linux-gnu.cmake:
> set(CMAKE_SYSTEM_MAKE Linux)
>
> set(CMAKE_C_COMPILER /usr/arm-marvell-linux-gnu/bin/arm-marvell-linux-gnu-gcc )
> set(CMAKE_CXX_COMPILER /usr/arm-marvell-linux-gnu/bin/arm-marvell-linux-gnu-g++ )
> set(CMAKE_AR /usr/arm-marvell-linux-gnu/bin/arm-marvell-linux-gnu-ar)
>
>
>
> set(CMAKE_FIND_ROOT_PATH /usr/arm-marvell-linux-gnu)
> set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM ONLY)
> set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
> set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)
>
> Output:
> Scanning dependencies of target gtest
> [ 25%] Building CXX object gtest/CMakeFiles/gtest.dir/src/gtest-all.cc.o
> In file included from /home/maxim/projects/gmock-1.6.0/gtest/src/gtest-all.cc:42:
> /home/maxim/projects/gmock-1.6.0/gtest/src/gtest.cc: In member function `void testing::internal::StreamingListener::MakeConnection()':
> /home/maxim/projects/gmock-1.6.0/gtest/src/gtest.cc:3482: error: `socket' undeclared (first use this function)
> /home/maxim/projects/gmock-1.6.0/gtest/src/gtest.cc:3482: error: (Each undeclared identifier is reported only once for each function it appears in.)
> /home/maxim/projects/gmock-1.6.0/gtest/src/gtest.cc:3485: error: `connect' undeclared (first use this function)
> In file included from /home/maxim/projects/gmock-1.6.0/gtest/src/gtest-all.cc:44:
> /home/maxim/projects/gmock-1.6.0/gtest/src/gtest-filepath.cc: In static member function `static testing::internal::FilePath testing::internal::FilePath::GetCurrentDir()':
> /home/maxim/projects/gmock-1.6.0/gtest/src/gtest-filepath.cc:109: error: `_POSIX_PATH_MAX' undeclared (first use this function)
> /home/maxim/projects/gmock-1.6.0/gtest/src/gtest-filepath.cc:110: error: `cwd' undeclared (first use this function)
> make[2]: *** [gtest/CMakeFiles/gtest.dir/src/gtest-all.cc.o] Ошибка 1
> make[1]: *** [gtest/CMakeFiles/gtest.dir/all] Ошибка 2
> make: *** [all] Ошибка 2
>
> Is it an issue or just my fault?
> Will it be fixed if it an issue or it will be my problem :)?
>
>