Błąd podczas kompilacji silnika gry

0

witam, próbuje skompilować silnik gry (theforgottenserver) na freebsd 10.3 ale wywala następujące błędy:

[spoiler]

/usr/src/tfs/forgottenserver-1.2/src/connection.cpp:119:30: error: no matching
      conversion for functional-style cast from 'Connection::<anonymous enum at
      /usr/src/tfs/forgottenserver-1.2/src/connection.h:67:3>' to
      'boost::posix_time::seconds'
  ...boost::posix_time::seconds(Connection::read_timeout));
     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/local/include/boost/date_time/posix_time/posix_time_duration.hpp:53:30: note:
      candidate constructor (the implicit copy constructor) not viable: no known
      conversion from 'Connection::<anonymous enum at
      /usr/src/tfs/forgottenserver-1.2/src/connection.h:67:3>' to 'const
      boost::posix_time::seconds' for 1st argument
  class BOOST_SYMBOL_VISIBLE seconds : public time_duration
                             ^
/usr/local/include/boost/date_time/posix_time/posix_time_duration.hpp:53:30: note:
      candidate constructor (the implicit move constructor) not viable: no known
      conversion from 'Connection::<anonymous enum at
      /usr/src/tfs/forgottenserver-1.2/src/connection.h:67:3>' to
      'boost::posix_time::seconds' for 1st argument
  class BOOST_SYMBOL_VISIBLE seconds : public time_duration
                             ^
/usr/local/include/boost/date_time/posix_time/posix_time_duration.hpp:58:37: note:
      candidate template ignored: disabled by 'enable_if' [with T =
      Connection::<anonymous enum at
      /usr/src/tfs/forgottenserver-1.2/src/connection.h:67:3>]
          typename boost::enable_if<boost::is_integral<T>, void>::type* = 0) :
                                    ^
/usr/src/tfs/forgottenserver-1.2/src/connection.cpp:163:30: error: no matching
      conversion for functional-style cast from 'Connection::<anonymous enum at
      /usr/src/tfs/forgottenserver-1.2/src/connection.h:67:3>' to
      'boost::posix_time::seconds'
  ...boost::posix_time::seconds(Connection::read_timeout));
     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/local/include/boost/date_time/posix_time/posix_time_duration.hpp:53:30: note:
      candidate constructor (the implicit copy constructor) not viable: no known
      conversion from 'Connection::<anonymous enum at
      /usr/src/tfs/forgottenserver-1.2/src/connection.h:67:3>' to 'const
      boost::posix_time::seconds' for 1st argument
  class BOOST_SYMBOL_VISIBLE seconds : public time_duration
                             ^
/usr/local/include/boost/date_time/posix_time/posix_time_duration.hpp:53:30: note:
      candidate constructor (the implicit move constructor) not viable: no known
      conversion from 'Connection::<anonymous enum at
      /usr/src/tfs/forgottenserver-1.2/src/connection.h:67:3>' to
      'boost::posix_time::seconds' for 1st argument
  class BOOST_SYMBOL_VISIBLE seconds : public time_duration
                             ^
/usr/local/include/boost/date_time/posix_time/posix_time_duration.hpp:58:37: note:
      candidate template ignored: disabled by 'enable_if' [with T =
      Connection::<anonymous enum at
      /usr/src/tfs/forgottenserver-1.2/src/connection.h:67:3>]
          typename boost::enable_if<boost::is_integral<T>, void>::type* = 0) :
                                    ^
/usr/src/tfs/forgottenserver-1.2/src/connection.cpp:225:30: error: no matching
      conversion for functional-style cast from 'Connection::<anonymous enum at
      /usr/src/tfs/forgottenserver-1.2/src/connection.h:67:3>' to
      'boost::posix_time::seconds'
  ...boost::posix_time::seconds(Connection::read_timeout));
     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/local/include/boost/date_time/posix_time/posix_time_duration.hpp:53:30: note:
      candidate constructor (the implicit copy constructor) not viable: no known
      conversion from 'Connection::<anonymous enum at
      /usr/src/tfs/forgottenserver-1.2/src/connection.h:67:3>' to 'const
      boost::posix_time::seconds' for 1st argument
  class BOOST_SYMBOL_VISIBLE seconds : public time_duration
                             ^
/usr/local/include/boost/date_time/posix_time/posix_time_duration.hpp:53:30: note:
      candidate constructor (the implicit move constructor) not viable: no known
      conversion from 'Connection::<anonymous enum at
      /usr/src/tfs/forgottenserver-1.2/src/connection.h:67:3>' to
      'boost::posix_time::seconds' for 1st argument
  class BOOST_SYMBOL_VISIBLE seconds : public time_duration
                             ^
/usr/local/include/boost/date_time/posix_time/posix_time_duration.hpp:58:37: note:
      candidate template ignored: disabled by 'enable_if' [with T =
      Connection::<anonymous enum at
      /usr/src/tfs/forgottenserver-1.2/src/connection.h:67:3>]
          typename boost::enable_if<boost::is_integral<T>, void>::type* = 0) :
                                    ^
/usr/src/tfs/forgottenserver-1.2/src/connection.cpp:257:31: error: no matching
      conversion for functional-style cast from 'Connection::<anonymous enum at
      /usr/src/tfs/forgottenserver-1.2/src/connection.h:66:3>' to
      'boost::posix_time::seconds'
  ...boost::posix_time::seconds(Connection::write_timeout));
     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/local/include/boost/date_time/posix_time/posix_time_duration.hpp:53:30: note:
      candidate constructor (the implicit copy constructor) not viable: no known
      conversion from 'Connection::<anonymous enum at
      /usr/src/tfs/forgottenserver-1.2/src/connection.h:66:3>' to 'const
      boost::posix_time::seconds' for 1st argument
  class BOOST_SYMBOL_VISIBLE seconds : public time_duration
                             ^
/usr/local/include/boost/date_time/posix_time/posix_time_duration.hpp:53:30: note:
      candidate constructor (the implicit move constructor) not viable: no known
      conversion from 'Connection::<anonymous enum at
      /usr/src/tfs/forgottenserver-1.2/src/connection.h:66:3>' to
      'boost::posix_time::seconds' for 1st argument
  class BOOST_SYMBOL_VISIBLE seconds : public time_duration
                             ^
/usr/local/include/boost/date_time/posix_time/posix_time_duration.hpp:58:37: note:
      candidate template ignored: disabled by 'enable_if' [with T =
      Connection::<anonymous enum at
      /usr/src/tfs/forgottenserver-1.2/src/connection.h:66:3>]
          typename boost::enable_if<boost::is_integral<T>, void>::type* = 0) :

[/spoiler]
byłby ktoś wstanie mi pomóc, jak naprawić te błędy

plik: https://github.com/otland/forgottenserver/blob/1.2/src/connection.h

1

Przyjrzyj się dokładnie którą wersję **Boost **a potrzebuje projekt. W opisie błędów jest problem z utworzeniem obiektu klasy seconds .
W nowszej wersji konstruktor class seconds jest szablonem

 template<typename T> 
    explicit seconds(T const &, 
                     typename boost::enable_if< boost::is_integral< T >, void >::type * = BOOST_DATE_TIME_NULLPTR);

gdzie w starszej

 explicit seconds(long);

Nie znalazłem w opisie projektu, która wersja biblioteki **Boost **jest poprawna, ale podejrzewam, że tutaj kryje się problem.

1 użytkowników online, w tym zalogowanych: 0, gości: 1