Deutsches Simutransforum
Nettool kompilieren? - Druckversion

+- Deutsches Simutransforum (https://simutrans-forum.de/mybb)
+-- Forum: Simutrans (https://simutrans-forum.de/mybb/forumdisplay.php?fid=3)
+--- Forum: Bugs und Probleme (https://simutrans-forum.de/mybb/forumdisplay.php?fid=11)
+---- Forum: behobene Bugs (https://simutrans-forum.de/mybb/forumdisplay.php?fid=12)
+---- Thema: Nettool kompilieren? (/showthread.php?tid=7156)



Nettool kompilieren? - Paco_m - 03-02-2013

Simutrans-Version:
112.1 (r 6212)

PAK-Set (+zusätzliche PAK-Dateien):
-

Betriebssystem:
Linux 64bit

Fehler (möglichst genaue Beschreibung):
Zitat:~/games/simutrans/SVN/trunk/nettools> make
===> CXX ../dataobj/freelist.cc
===> CXX ../dataobj/network_address.cc
===> CXX ../dataobj/network_cmd.cc
===> CXX ../dataobj/network_packet.cc
===> CXX ../dataobj/network_socket_list.cc
===> CXX ../dataobj/pwd_hash.cc
===> CXX ../simdebug.cc
===> CXX ../simmem.cc
===> CXX ../utils/memory_rw.cc
===> CXX ../utils/simstring.cc
../utils/simstring.cc: In function ‘char* ntos(int, const char*)’:
../utils/simstring.cc:20:6: warning: variable ‘r’ set but not used [-Wunused-but-set-variable]
===> CXX ../utils/fetchopt.cc
===> CXX ../utils/sha1.cc
===> CXX ../utils/log.cc
../utils/log.cc: In member function ‘void log_t::fatal(const char*, const char*, ...)’:
../utils/log.cc:267:6: warning: unused variable ‘n’ [-Wunused-variable]
../utils/log.cc: At global scope:
../utils/log.cc:377:1: warning: unused parameter ‘syslogtag’ [-Wunused-parameter]
===> CXX ../dataobj/network.cc
===> CXX ../dataobj/network_file_transfer.cc
===> CXX nettool.cc
nettool.cc: In function ‘int main(int, char**)’:
nettool.cc:473:41: error: too few arguments to function ‘void init_logging(const char*, bool, bool, const char*, const char*)’

In file included from ../dataobj/../tpl/slist_tpl.h:14:0,
from ../dataobj/network_cmd.h:5,
from nettool.cc:20:
../dataobj/../tpl/../simdebug.h:39:6: note: declared here
make: *** [../build/default/nettool/nettool-nettool.o] Error 1

Verhalten (Absturz, Einfrieren, ...):
s.o.


RE: Nettool kompilieren? - wernieman - 03-02-2013

OT:

Was bringen die nettools einem eigentlich??


RE: Nettool kompilieren? - Dwachs - 03-02-2013

Bitte nehme mal die aktuellen Quellen.

Wener: das hier kann nettool:
Code:
nettool for Simutrans 112.1.1 Nightly and higher Usage: nettool [options] <command> [command argument] Options: -s <server[:port]> : Specify server to connect to (default is localhost:13353) -p <password> : Set password on command line -P <filename> : Read password from file specified (use '-' to read from stdin) -q : Quiet mode, copyright message will be omitted Commands: announce Request server announce itself to the central listing server clients Receive list of playing clients from server companies Receive list of running companies from server info-company <company number> Show detailed info for company lock-company <company number> <new password> lock-company <company number> -F <filename> Set password, read from file if specified (use '-' to read from stdin) unlock-company <company number> Clear password of company, effectively unlocking it for all clients remove-company <company number> Immediately remove company and all its belongings kick-client <client number> ban-client <client number> Kick / ban client (use clients command to get client number) ban-ip <ip address> unban-ip <ip address> Ban / unban ip address blacklist Display list of banned clients say <message> Send admin message to all clients (maximum of 512 characters) shutdown Shut down server force-sync Force server to send sync command in order to save & reload the game
Kann nuetzlich sein, wenn man einen server laufen hat.


RE: Nettool kompilieren? - Paco_m - 03-02-2013

Zitat:Original von Dwachs
Bitte nehme mal die aktuellen Quellen.

Das nettool von der letzten Simutrans stable ist nicht aktuell?


RE: Nettool kompilieren? - Dwachs - 03-02-2013

Scheinbar laesst es sich ja nicht kompilieren. Bei nettool ist es mit den Versionen nicht so kritisch, du kannst aktuellen Code nehmen, kompilieren, und damit mit der 112.1 kommunizieren.


- Paco_m - 03-02-2013

Ok, 6315 kompiliert Smile