Запуск make приводит к ошибкам в области надстройки 'boost-asio' - PullRequest
0 голосов
/ 04 октября 2018

Я пытаюсь скомпилировать этот проект в Windows 10, используя cygwin.Пока мне удалось успешно запустить cmake:

cmake.exe -DCMAKE_BUILD_TYPE=Debug -DCMAKE_LEGACY_CYGWIN_WIN32=1 -G "CodeBlocks - Unix Makefiles" /cygdrive/c/Repositories/forgottenserver
-- The C compiler identification is GNU 7.3.0
-- The CXX compiler identification is GNU 7.3.0
-- Defining WIN32 under Cygwin due to CMAKE_LEGACY_CYGWIN_WIN32
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++.exe
-- Check for working CXX compiler: /usr/bin/c++.exe -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- cotire 1.7.6 loaded.
-- Performing Test COMPILER_KNOWS_CXX11
-- Performing Test COMPILER_KNOWS_CXX11 - Success
-- Performing Test COMPILER_KNOWS_STDLIB
-- Performing Test COMPILER_KNOWS_STDLIB - Failed
-- Performing Test COMPILER_KNOWS_LTO
-- Performing Test COMPILER_KNOWS_LTO - Success
-- Found GMP: /usr/include  
-- Found PugiXML: /usr/include  
-- MySQL Include dir: /usr/include/mysql  library dir: /usr/lib
-- MySQL client libraries: /usr/lib/libmysqlclient.dll.a;ws2_32
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - found
-- Found Threads: TRUE  
-- Found LuaJIT: /usr/lib/libluajit-5.1.dll.a;/usr/lib/libm.a (found version "2.0.4") 
-- Boost version: 1.66.0
-- Found the following Boost libraries:
--   system
--   iostreams
--   regex
-- Configuring done
-- Generating done
-- Build files have been written to: /cygdrive/c/Repositories/forgottenserver/cmake-build-debug

Но при запуске make выдает ошибки, связанные с boost-asio:

/usr/include/boost/asio/error.hpp:204:7: error: 'EAI_SERVICE' was not declared in this scope
       BOOST_ASIO_GETADDRINFO_ERROR(EAI_SERVICE)),
       ^
/usr/include/boost/asio/error.hpp:209:7: error: 'EAI_SOCKTYPE' was not declared in this scope
       BOOST_ASIO_GETADDRINFO_ERROR(EAI_SOCKTYPE))
       ^
/usr/include/boost/asio/error.hpp:209:7: note: suggested alternative: 'SO_TYPE'
In file included from /usr/include/boost/asio/detail/posix_fd_set_adapter.hpp:26:0,
                 from /usr/include/boost/asio/detail/fd_set_adapter.hpp:22,
                 from /usr/include/boost/asio/detail/select_reactor.hpp:27,
                 from /usr/include/boost/asio/detail/reactor.hpp:29,
                 from /usr/include/boost/asio/detail/impl/scheduler.ipp:23,
                 from /usr/include/boost/asio/detail/scheduler.hpp:212,
                 from /usr/include/boost/asio/system_context.hpp:19,
                 from /usr/include/boost/asio/impl/system_executor.hpp:22,
                 from /usr/include/boost/asio/system_executor.hpp:129,
                 from /usr/include/boost/asio/associated_executor.hpp:21,
                 from /usr/include/boost/asio.hpp:21,
                 from /cygdrive/c/Repositories/forgottenserver/src/otpch.h:42,
                 from /cygdrive/c/Repositories/forgottenserver/src/otpch.cpp:20:
/usr/include/boost/asio/detail/socket_types.hpp:316:9: error: 'addrinfo' does not name a type; did you mean 'addr_t'?
 typedef addrinfo addrinfo_type;
         ^~~~~~~~
         addr_t

Как решить эту проблему

...