Author Topic: Building a Master Server  (Read 3362 times)

jmonteiro

  • Posts: 31
  • Turrets: +1/-0
    • http://www.tremulous.com.br
Building a Master Server
« on: August 26, 2006, 06:00:28 am »
Hello,

I am getting some work with my Tremded server. Since it is behind a ADSL modem, I am having problems to make the master server recognize it. It is fully playable, but it dont shows in the official "Get New List" onto Tremulous Client.

To discover what the error is, I would like to build a master server my own (like master.tremulous.net). To do this, I have already putted in the Makefile:

Quote

BUILD_CLIENT     = 0
BUILD_CLIENT_SMP = 0
BUILD_SERVER     = 0
BUILD_GAME_SO    = 0
BUILD_GAME_QVM   = 0
BUILD_MASTER_SERVER = 1


But when I try to make it, I recieve the following error:

Quote

jmonteiro@computer:~/tremulous$ make

(...)

make -C src/master release
make[1]: Entering directory `/home/jmonteiro/arquivos/labs/trem/tremulous/src/master'
make release-linux-x86/tremmaster BD=release-linux-x86 \
CFLAGS=" -Wall -O2" LDFLAGS=" -static -ltdb"
make[2]: Entering directory `/home/jmonteiro/arquivos/labs/trem/tremulous/src/master'
gcc -Wall -O2 -o release-linux-x86/master.o -c master.c
gcc -Wall -O2 -o release-linux-x86/messages.o -c messages.c
gcc -Wall -O2 -o release-linux-x86/stats.o -c stats.c
stats.c:31:17: error: tdb.h: No such file or directory
stats.c: In function âRecordClientStatâ:
stats.c:45: error: âTDB_CONTEXTâ undeclared (first use in this function)
stats.c:45: error: (Each undeclared identifier is reported only once
stats.c:45: error: for each function it appears in.)
stats.c:45: error: âtctxâ undeclared (first use in this function)
stats.c:46: error: âTDB_DATAâ undeclared (first use in this function)
stats.c:46: error: syntax error before âkeyâ
stats.c:52: warning: implicit declaration of function âtdb_openâ
stats.c:64: error: âkeyâ undeclared (first use in this function)
stats.c:82: error: âdataâ undeclared (first use in this function)
stats.c:85: warning: implicit declaration of function âtdb_storeâ
stats.c:88: warning: implicit declaration of function âtdb_closeâ
stats.c: In function âRecordGameStatâ:
stats.c:101: error: âTDB_CONTEXTâ undeclared (first use in this function)
stats.c:101: error: âtctxâ undeclared (first use in this function)
stats.c:102: error: âTDB_DATAâ undeclared (first use in this function)
stats.c:102: error: syntax error before âkeyâ
stats.c:122: error: âkeyâ undeclared (first use in this function)
stats.c:125: error: âdataâ undeclared (first use in this function)
make[2]: *** [release-linux-x86/stats.o] Error 1
make[2]: Leaving directory `/home/jmonteiro/arquivos/labs/trem/tremulous/src/master'
make[1]: *** [release] Error 2
make[1]: Leaving directory `/home/jmonteiro/arquivos/labs/trem/tremulous/src/master'
make: *** [build_release] Error 2


I am running a Fedora Core 4 (where I have already compiled Tremulous server and game_vm without any problem.

Thanks!


[/quote]
url=http://tremulous.com.br]All about Tremulous, in portuguese: Tremulous Lusófono[/url]

Please, help Tremulous development: donate.

jmonteiro

  • Posts: 31
  • Turrets: +1/-0
    • http://www.tremulous.com.br
Building a Master Server
« Reply #1 on: August 26, 2006, 06:10:40 am »
After a lot more of research, I discovered (and solved the problem).

It was missing TDB devel package (Trivial Database). (http://sf.net/projects/tdb/)

Thanks anyway :P
url=http://tremulous.com.br]All about Tremulous, in portuguese: Tremulous Lusófono[/url]

Please, help Tremulous development: donate.

PIE

  • Posts: 1471
  • Turrets: +96/-52
    • http://www.mercenariesguild.net
Building a Master Server
« Reply #2 on: August 26, 2006, 06:53:56 am »
GAH!... I was soo close.. saw
stats.c:31:17: error: tdb.h: No such file or directory
and went to town figuring out what that meant....
THANK YOU FOR POSTING WHAT IT WAS though.. rather than just saying "oh.. its fixed" like some people.

jmonteiro

  • Posts: 31
  • Turrets: +1/-0
    • http://www.tremulous.com.br
Building a Master Server
« Reply #3 on: August 26, 2006, 02:56:31 pm »
hey PIE, I am here to help too, not just to get helped ;)
url=http://tremulous.com.br]All about Tremulous, in portuguese: Tremulous Lusófono[/url]

Please, help Tremulous development: donate.