Giter Club home page Giter Club logo

Comments (10)

GoogleCodeExporter avatar GoogleCodeExporter commented on July 21, 2024
That's a warning, not an error. It's safe to ignore.

Original comment by olafvdspek on 9 Jun 2013 at 9:24

from xbt.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 21, 2024
if error:
Start XBT Tracker
/usr/lib/libstdc++.so.6: version GLIBCXX_3.4.11 required by 
/usr/home/xbt/xbt_tracker not found1

do:
mcedit /etc/libmap.conf

insert:
libstdc++.so.6 gcc48/libstdc++.so.6

Original comment by [email protected] on 12 Jun 2013 at 12:05

from xbt.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 21, 2024
Can FBSD 10 compile XBTT as-is?

Original comment by olafvdspek on 26 Jan 2014 at 5:33

from xbt.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 21, 2024
[deleted comment]

from xbt.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 21, 2024
Couldn't compile XBTT on FBSD 10 at all. Tried all available versions of 
compilers and stuff.

Had to build FBSD 8.4 on Jail with ezjail and compile inside - worked 
successfully with instructions above.

Original comment by [email protected] on 6 Sep 2014 at 9:46

from xbt.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 21, 2024
Got a report on success with compiling latest source on FreeBSD 10-RELEASE.
Installed packages(which take part in compiling):
 boost-all-1.55.0
 cmake-3.0.2
 gcc48-4.8.4.s20141016
 lzlib-1.5
 mysql56-client-5.6.21
Actions were the following:
 1. Added to connection.cpp:
   #include <sys/uio.h>
   include <sys/socket.h>
 2. Added to server.cpp:
   #include <sys/socket.h>
 3. Changed the first line of make.sh to the following:
g++ $@ -DNDEBUG -I ../misc -I /usr/local/include -I . -O3 -o xbt_tracker 
-std=c++0x \

After that compiling went successfully(a sort of), got a stack of warnings:
###########################################
connection.cpp:29:36: warning: '&&' within '||' [-Wlogical-op-parentheses]
        return FD_ISSET(m_s, fd_read_set) && recv()
               ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~
connection.cpp:29:36: note: place parentheses around the '&&' expression to 
silence this warning
        return FD_ISSET(m_s, fd_read_set) && recv()
               ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~
connection.cpp:30:34: warning: '&&' within '||' [-Wlogical-op-parentheses]
                || FD_ISSET(m_s, fd_write_set) && send()
                ~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~
connection.cpp:30:34: note: place parentheses around the '&&' expression to 
silence this warning
                || FD_ISSET(m_s, fd_write_set) && send()
                   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~
connection.cpp:32:19: warning: '&&' within '||' [-Wlogical-op-parentheses]
                || m_state == 5 && m_r.empty();
                ~~ ~~~~~~~~~~~~~^~~~~~~~~~~~~~
connection.cpp:32:19: note: place parentheses around the '&&' expression to 
silence this warning
                || m_state == 5 && m_r.empty();
                                ^
                   (                          )
connection.cpp:271:58: warning: '&&' within '||' [-Wlogical-op-parentheses]
        if (events & (EPOLLIN | EPOLLPRI | EPOLLERR | EPOLLHUP) && recv()
            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~
connection.cpp:271:58: note: place parentheses around the '&&' expression to 
silence this warning
        if (events & (EPOLLIN | EPOLLPRI | EPOLLERR | EPOLLHUP) && recv()
                                                                ^
            (                                                            )
connection.cpp:272:24: warning: '&&' within '||' [-Wlogical-op-parentheses]
                || events & EPOLLOUT && send()
                ~~ ~~~~~~~~~~~~~~~~~~^~~~~~~~~
connection.cpp:272:24: note: place parentheses around the '&&' expression to 
silence this warning
                || events & EPOLLOUT && send()
                                     ^
                   (                          )
connection.cpp:273:19: warning: '&&' within '||' [-Wlogical-op-parentheses]
                || m_state == 5 && m_write_b.empty())
                ~~ ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~
connection.cpp:273:19: note: place parentheses around the '&&' expression to 
silence this warning
                || m_state == 5 && m_write_b.empty())
                                ^
                   (                                )
6 warnings generated.
###########################################

Tracker itself is working fine, except for setting options in 'xbt_config' sql 
table. However if you place them there manually - it reads them well.

Original comment by [email protected] on 24 Oct 2014 at 7:23

from xbt.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 21, 2024
I've added <sys/socket.h> and <sys/uio.h>

Original comment by olafvdspek on 25 Oct 2014 at 2:26

from xbt.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 21, 2024
Compiling latest XBTT on FreeBSD 10.1-RELEASE.

1. Installed packages:
 clang35-3.5.1
 cmake-3.1.3
 gcc48-4.8.5.s20150212
 mysql56-client-5.6.23
 lzlib-1.5
 boost-libs-1.55.0_4 !!I HAD to compile Boost from ports, not to install with pkg, otherwise it couldn't be found by complier!!

2. Changed only the first line in 'make.sh':
c++ $@ -DNDEBUG -I ../misc -I /usr/local/include -I . -O3 -o xbt_tracker 
-std=c++0x \

3. Compiled with 6 warnings, working properly except for setting options by 
itself in mysql table.

(Every time I feel that I write this more for myself to find this ticket later 
to remember "how the hell did I complie it, again?!")

Original comment by [email protected] on 3 Mar 2015 at 12:48

from xbt.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 21, 2024
> except for setting options by itself in mysql table.

What do you mean?

Original comment by olafvdspek on 3 Mar 2015 at 12:50

from xbt.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 21, 2024
>> except for setting options by itself in mysql table.

>What do you mean?

I mean same as before problem: application does not fill its options into 
'xbt_config' sql table automaitcally(except for "torrent_pass_private_key"). 
And they work if you add them manually.

Sorry for delayed answer, I didn't check this ticket for a while.

Original comment by [email protected] on 12 Jun 2015 at 1:54

from xbt.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.