Menu

xbt Tracker does not compile[FreeBSD7][patch]

2009-09-09
2013-05-13
  • Alexey Ivanov

    Alexey Ivanov - 2009-09-09

    nnm-club# sh make.bsd.sh
    In file included from ../misc/bt_tracker_account.cpp:2:
    ../misc/bt_tracker_account.h:36: error: 'Cvirtual_binary' does not name a type
    ../misc/bt_tracker_account.h:38: error: expected ',' or '...' before '&' token
    ../misc/bt_tracker_account.h:38: error: ISO C++ forbids declaration of 'Cvirtual_binary' with no type
    ../misc/bt_tracker_account.cpp:29: error: no 'Cvirtual_binary Cbt_tracker_accounts::dump() const' member function declared in class 'Cbt_tracker_accounts'
    ../misc/bt_tracker_account.cpp:54: error: prototype for 'void Cbt_tracker_accounts::load(const Cvirtual_binary&)' does not match any in class 'Cbt_tracker_accounts'
    ../misc/bt_tracker_account.h:38: error: candidate is: void Cbt_tracker_accounts::load(int)

    This was messed up @rev.1978, patch:

    Index: bt_tracker_account.cpp

    --- bt_tracker_account.cpp    (revision 1982)
    +++ bt_tracker_account.cpp    (working copy)
    @@ -1,4 +1,5 @@
    #include "stdafx.h"
    +#include "xbt/virtual_binary.h"
    #include "bt_tracker_account.h"

    #include "stream_reader.h"

     
    • Olaf van der Spek

      You're right. Does BSD7 not work?

       
    • Alexey Ivanov

      Alexey Ivanov - 2009-09-10

      It works great, thanks.
      But without that patch it can not be compiled under FreeBSD (i've tested only 7.2 amd64)

      PS. Even without patch it compiles under CentOS (5.3 i386) via #make.sh

       
      • Olaf van der Spek

        Does make.sh not work on FreeBSD 7? make.bsd.sh might no longer be required.

         
    • Alexey Ivanov

      Alexey Ivanov - 2009-09-10

      $./make.sh works under BSD only if you add
      -I /usr/local/include

      to it

       
      • Olaf van der Spek

        Maybe I should do it then.

         

Log in to post a comment.

MongoDB Logo MongoDB