Bonjour à tous !

Je vous explique un peu la situation, je dois mettre en place un serveur de téléchargement bittorrent afin de partager des images systemes...

Je suis complètement nouveau sur openBSD mais j'ai commencé à me renseigner sur cet OS, son fonctionnement... Bref j'apprends tout doucement.

Mon problème à déjà été de trouver des trackers torrent disponibles sous openBDS, non pas parce qu'il n'y en a pas, simplement par manque de documentation.

Je suis donc tombé sur deux trackers dispo, bnbt et trackerbt.

Concernant trackerbt, j'ai laissé tomber car je n'ai trouvé aucun tuto ou how to pour effectuer l'installation.

Venons en à BNBT.

A l'adresse suivante se trouve un tuto...
http://bnbt.depthstrike.com/doc/

et mon problème se trouve dès la première étape, c'est à dire la compilation de BNBT.
http://bnbt.depthstrike.com/doc/compile_other.html

J'ai bien installé gcc et gnu make comme il le faut, installé les librairies zlib dans mon repertoir /home/zlib, effectué mon ./configure et mon gmake install (qui s'est bien passé)...

Mon problème se passe lors de la compilation de BNBT, je vous transmet mes erreurs (et mes nombreux warnings ?) : (désolé c'est dur de faire claire...)


Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
bash-3.2# gmake bnbt
g++ -o atom.o  -O2 -Wall  -W -Wfloat-equal -Wundef -Wshadow -Wpointer-arith -Wca                                                                              st-qual -Wcast-align -Wwrite-strings -Wconversion -Wsign-compare -Wmissing-noret                                                                              urn -Wmissing-format-attribute -Wpacked -Wredundant-decls -Wctor-dtor-privacy -W                                                                              non-virtual-dtor -Wreorder -Woverloaded-virtual -Wsign-promo -Wsynth -I. -c atom                                                                              .cpp
atom.cpp: In copy constructor `CAtomInt::CAtomInt(const CAtomInt&)':
atom.cpp:41: warning: base class `class CAtom' should be explicitly initialized
   in the copy constructor
atom.cpp: In copy constructor `CAtomLong::CAtomLong(const CAtomLong&)':
atom.cpp:95: warning: base class `class CAtom' should be explicitly initialized
   in the copy constructor
atom.cpp: In copy constructor `CAtomString::CAtomString(const CAtomString&)':
atom.cpp:157: warning: base class `class CAtom' should be explicitly
   initialized in the copy constructor
atom.cpp: In copy constructor `CAtomList::CAtomList(const CAtomList&)':
atom.cpp:212: warning: base class `class CAtom' should be explicitly
   initialized in the copy constructor
atom.cpp: In member function `std::vector<CAtom*, std::allocator<CAtom*> >*
   CAtomList::getValuePtr() const':
atom.cpp:286: warning: cast from `const std::vector<CAtom*,
   std::allocator<CAtom*> >*' to `std::vector<CAtom*, std::allocator<CAtom*> >*
   ' discards qualifiers from pointer target type
atom.cpp: In copy constructor `CAtomDicti::CAtomDicti(const CAtomDicti&)':
atom.cpp:324: warning: base class `class CAtom' should be explicitly
   initialized in the copy constructor
atom.cpp: In member function `std::map<std::string, CAtom*,
   std::less<std::string>, std::allocator<std::pair<const std::string, CAtom*>
   > >* CAtomDicti::getValuePtr() const':
atom.cpp:392: warning: cast from `const std::map<std::string, CAtom*,
   std::less<std::string>, std::allocator<std::pair<const std::string, CAtom*>
   > >*' to `std::map<std::string, CAtom*, std::less<std::string>,
   std::allocator<std::pair<const std::string, CAtom*> > >*' discards
   qualifiers from pointer target type
g++ -o base64.o  -O2 -Wall  -W -Wfloat-equal -Wundef -Wshadow -Wpointer-arith -W                                                                              cast-qual -Wcast-align -Wwrite-strings -Wconversion -Wsign-compare -Wmissing-nor                                                                              eturn -Wmissing-format-attribute -Wpacked -Wredundant-decls -Wctor-dtor-privacy                                                                               -Wnon-virtual-dtor -Wreorder -Woverloaded-virtual -Wsign-promo -Wsynth -I. -c ba                                                                              se64.cpp
g++ -o bencode.o  -O2 -Wall  -W -Wfloat-equal -Wundef -Wshadow -Wpointer-arith -                                                                              Wcast-qual -Wcast-align -Wwrite-strings -Wconversion -Wsign-compare -Wmissing-no                                                                              return -Wmissing-format-attribute -Wpacked -Wredundant-decls -Wctor-dtor-privacy                                                                               -Wnon-virtual-dtor -Wreorder -Woverloaded-virtual -Wsign-promo -Wsynth -I. -c b                                                                              encode.cpp
g++ -o client.o  -O2 -Wall  -W -Wfloat-equal -Wundef -Wshadow -Wpointer-arith -W                                                                              cast-qual -Wcast-align -Wwrite-strings -Wconversion -Wsign-compare -Wmissing-nor                                                                              eturn -Wmissing-format-attribute -Wpacked -Wredundant-decls -Wctor-dtor-privacy                                                                               -Wnon-virtual-dtor -Wreorder -Woverloaded-virtual -Wsign-promo -Wsynth -I. -c cl                                                                              ient.cpp
client.cpp: In member function `bool CClient::Update()':
client.cpp:453: warning: cast from `const char*' to `unsigned char*' discards
   qualifiers from pointer target type
client.cpp:498: warning: unsigned int format, size_t arg (arg 4)
g++ -o config.o  -O2 -Wall  -W -Wfloat-equal -Wundef -Wshadow -Wpointer-arith -W                                                                              cast-qual -Wcast-align -Wwrite-strings -Wconversion -Wsign-compare -Wmissing-nor                                                                              eturn -Wmissing-format-attribute -Wpacked -Wredundant-decls -Wctor-dtor-privacy                                                                               -Wnon-virtual-dtor -Wreorder -Woverloaded-virtual -Wsign-promo -Wsynth -I. -c co                                                                              nfig.cpp
g++ -o md5.o  -O2 -Wall  -W -Wfloat-equal -Wundef -Wshadow -Wpointer-arith -Wcas                                                                              t-qual -Wcast-align -Wwrite-strings -Wconversion -Wsign-compare -Wmissing-noretu                                                                              rn -Wmissing-format-attribute -Wpacked -Wredundant-decls -Wctor-dtor-privacy -Wn                                                                              on-virtual-dtor -Wreorder -Woverloaded-virtual -Wsign-promo -Wsynth -I. -c md5.c                                                                              pp
g++ -o server.o  -O2 -Wall  -W -Wfloat-equal -Wundef -Wshadow -Wpointer-arith -W                                                                              cast-qual -Wcast-align -Wwrite-strings -Wconversion -Wsign-compare -Wmissing-nor                                                                              eturn -Wmissing-format-attribute -Wpacked -Wredundant-decls -Wctor-dtor-privacy                                                                               -Wnon-virtual-dtor -Wreorder -Woverloaded-virtual -Wsign-promo -Wsynth -I. -c se                                                                              rver.cpp
g++ -o sha1.o  -O2 -Wall  -W -Wfloat-equal -Wundef -Wshadow -Wpointer-arith -Wca                                                                              st-qual -Wcast-align -Wwrite-strings -Wconversion -Wsign-compare -Wmissing-noret                                                                              urn -Wmissing-format-attribute -Wpacked -Wredundant-decls -Wctor-dtor-privacy -W                                                                              non-virtual-dtor -Wreorder -Woverloaded-virtual -Wsign-promo -Wsynth -I. -c sha1                                                                              .cpp
g++ -o sort.o  -O2 -Wall  -W -Wfloat-equal -Wundef -Wshadow -Wpointer-arith -Wca                                                                              st-qual -Wcast-align -Wwrite-strings -Wconversion -Wsign-compare -Wmissing-noret                                                                              urn -Wmissing-format-attribute -Wpacked -Wredundant-decls -Wctor-dtor-privacy -W                                                                              non-virtual-dtor -Wreorder -Woverloaded-virtual -Wsign-promo -Wsynth -I. -c sort                                                                              .cpp
g++ -o tracker_admin.o  -O2 -Wall  -W -Wfloat-equal -Wundef -Wshadow -Wpointer-a                                                                              rith -Wcast-qual -Wcast-align -Wwrite-strings -Wconversion -Wsign-compare -Wmiss                                                                              ing-noreturn -Wmissing-format-attribute -Wpacked -Wredundant-decls -Wctor-dtor-p                                                                              rivacy -Wnon-virtual-dtor -Wreorder -Woverloaded-virtual -Wsign-promo -Wsynth -I                                                                              . -c tracker_admin.cpp
g++ -o tracker_comments.o  -O2 -Wall  -W -Wfloat-equal -Wundef -Wshadow -Wpointe                                                                              r-arith -Wcast-qual -Wcast-align -Wwrite-strings -Wconversion -Wsign-compare -Wm                                                                              issing-noreturn -Wmissing-format-attribute -Wpacked -Wredundant-decls -Wctor-dto                                                                              r-privacy -Wnon-virtual-dtor -Wreorder -Woverloaded-virtual -Wsign-promo -Wsynth                                                                               -I. -c tracker_comments.cpp
tracker_comments.cpp: In member function `void
   CTracker::serverResponseComments(request_t*, response_t*)':
tracker_comments.cpp:287: warning: declaration of `tNow' shadows a previous
   local
tracker_comments.cpp:38: warning: shadowed declaration is here
tracker_comments.cpp:288: warning: declaration of `szTime' shadows a previous
   local
tracker_comments.cpp:39: warning: shadowed declaration is here
g++ -o tracker_file.o  -O2 -Wall  -W -Wfloat-equal -Wundef -Wshadow -Wpointer-ar                                                                              ith -Wcast-qual -Wcast-align -Wwrite-strings -Wconversion -Wsign-compare -Wmissi                                                                              ng-noreturn -Wmissing-format-attribute -Wpacked -Wredundant-decls -Wctor-dtor-pr                                                                              ivacy -Wnon-virtual-dtor -Wreorder -Woverloaded-virtual -Wsign-promo -Wsynth -I.                                                                               -c tracker_file.cpp
g++ -o tracker_index.o  -O2 -Wall  -W -Wfloat-equal -Wundef -Wshadow -Wpointer-a                                                                              rith -Wcast-qual -Wcast-align -Wwrite-strings -Wconversion -Wsign-compare -Wmiss                                                                              ing-noreturn -Wmissing-format-attribute -Wpacked -Wredundant-decls -Wctor-dtor-p                                                                              rivacy -Wnon-virtual-dtor -Wreorder -Woverloaded-virtual -Wsign-promo -Wsynth -I                                                                              . -c tracker_index.cpp
tracker_index.cpp: In member function `void
   CTracker::serverResponseIndex(request_t*, response_t*)':
tracker_index.cpp:1146: warning: declaration of `j' shadows a previous local
tracker_index.cpp:593: warning: shadowed declaration is here
g++ -o tracker_info.o  -O2 -Wall  -W -Wfloat-equal -Wundef -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings -Wconversion -Wsign-compare -Wmissing-noreturn -Wmissing-format-attribute -Wpacked -Wredundant-decls -Wctor-dtor-privacy -Wnon-virtual-dtor -Wreorder -Woverloaded-virtual -Wsign-promo -Wsynth -I. -c tracker_info.cpp
tracker_info.cpp: In member function `void
   CTracker::serverResponseInfo(request_t*, response_t*)':
tracker_info.cpp:109: warning: declaration of `tNow' shadows a previous local
tracker_info.cpp:33: warning: shadowed declaration is here
tracker_info.cpp:110: warning: declaration of `szTime' shadows a previous local
tracker_info.cpp:34: warning: shadowed declaration is here
tracker_info.cpp: In member function `void
   CTracker::serverResponseBencodeInfo(request_t*, response_t*)':
tracker_info.cpp:159: warning: unused parameter `request_t*pRequest'
tracker_info.cpp:189:2: warning: no newline at end of file
g++ -o tracker_login.o  -O2 -Wall  -W -Wfloat-equal -Wundef -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings -Wconversion -Wsign-compare -Wmissing-noreturn -Wmissing-format-attribute -Wpacked -Wredundant-decls -Wctor-dtor-privacy -Wnon-virtual-dtor -Wreorder -Woverloaded-virtual -Wsign-promo -Wsynth -I. -c tracker_login.cpp
g++ -o tracker_signup.o  -O2 -Wall  -W -Wfloat-equal -Wundef -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings -Wconversion -Wsign-compare -Wmissing-noreturn -Wmissing-format-attribute -Wpacked -Wredundant-decls -Wctor-dtor-privacy -Wnon-virtual-dtor -Wreorder -Woverloaded-virtual -Wsign-promo -Wsynth -I. -c tracker_signup.cpp
g++ -o tracker_stats.o  -O2 -Wall  -W -Wfloat-equal -Wundef -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings -Wconversion -Wsign-compare -Wmissing-noreturn -Wmissing-format-attribute -Wpacked -Wredundant-decls -Wctor-dtor-privacy -Wnon-virtual-dtor -Wreorder -Woverloaded-virtual -Wsign-promo -Wsynth -I. -c tracker_stats.cpp
tracker_stats.cpp: In member function `void
   CTracker::serverResponseStats(request_t*, response_t*)':
tracker_stats.cpp:628: warning: comparing floating point with == or != is
   unsafe
tracker_stats.cpp:639: warning: comparing floating point with == or != is
   unsafe
tracker_stats.cpp:856: warning: comparing floating point with == or != is
   unsafe
tracker_stats.cpp:867: warning: comparing floating point with == or != is
   unsafe
g++ -o tracker_torrent.o  -O2 -Wall  -W -Wfloat-equal -Wundef -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings -Wconversion -Wsign-compare -Wmissing-noreturn -Wmissing-format-attribute -Wpacked -Wredundant-decls -Wctor-dtor-privacy -Wnon-virtual-dtor -Wreorder -Woverloaded-virtual -Wsign-promo -Wsynth -I. -c tracker_torrent.cpp
g++ -o tracker_upload.o  -O2 -Wall  -W -Wfloat-equal -Wundef -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings -Wconversion -Wsign-compare -Wmissing-noreturn -Wmissing-format-attribute -Wpacked -Wredundant-decls -Wctor-dtor-privacy -Wnon-virtual-dtor -Wreorder -Woverloaded-virtual -Wsign-promo -Wsynth -I. -c tracker_upload.cpp
g++ -o tracker_users.o  -O2 -Wall  -W -Wfloat-equal -Wundef -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings -Wconversion -Wsign-compare -Wmissing-noreturn -Wmissing-format-attribute -Wpacked -Wredundant-decls -Wctor-dtor-privacy -Wnon-virtual-dtor -Wreorder -Woverloaded-virtual -Wsign-promo -Wsynth -I. -c tracker_users.cpp
g++ -o util.o  -O2 -Wall  -W -Wfloat-equal -Wundef -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings -Wconversion -Wsign-compare -Wmissing-noreturn -Wmissing-format-attribute -Wpacked -Wredundant-decls -Wctor-dtor-privacy -Wnon-virtual-dtor -Wreorder -Woverloaded-virtual -Wsign-promo -Wsynth -I. -c util.cpp
util.cpp: In function `void UTIL_AccessLogPrint(std::basic_string<char,
   std::char_traits<char>, std::allocator<char> >, std::basic_string<char,
   std::char_traits<char>, std::allocator<char> >, std::basic_string<char,
   std::char_traits<char>, std::allocator<char> >, int, int)':
util.cpp:142: error: invalid operands of types `char*()(int, int)' and `int' to
   binary `operator/'
util.cpp:142: error: invalid operands of types `char*()(int, int)' and `int' to
   binary `operator/'
util.cpp:144: error: invalid operands of types `char*()(int, int)' and `int' to
   binary `operator/'
util.cpp:144: error: invalid operands of types `char*()(int, int)' and `int' to
   binary `operator/'
util.cpp: In function `std::string UTIL_AddedToDate(std::basic_string<char,
   std::char_traits<char>, std::allocator<char> >)':
util.cpp:197: error: invalid operands of types `char*()(int, int)' and `int' to
   binary `operator/'
util.cpp:197: error: invalid operands of types `char*()(int, int)' and `int' to
   binary `operator/'
util.cpp:199: error: invalid operands of types `char*()(int, int)' and `int' to
   binary `operator/'
util.cpp:199: error: invalid operands of types `char*()(int, int)' and `int' to
   binary `operator/'
gmake: *** [util.o] Error 1
... Donc apparemment ya un souci lors de la création de mon executable util.o mais je vois pas comment régler ce problème.

D'autre part, j'ai trouvé ce site concernant trackerbt :
http://www.alhem.net/project/trackerbt/index.html

Mais il n'y a pas de procédure d'installation précise, juste une liste des dépendances à savoir openssl, libxml2, C++ Sockets Library, The minder.
J'ai simplement de mauvais souvenir concernant le paramétrage d'openSSL sous debian, donc j'aimerai éviter de me lancer dans tous ça, sans forcément avoir de résultats.

Voilà, si quelqu'un est déjà passé par là, j'accepte volontiers son aide.

Merci d'avance !