1

Topic: [DEBIAN] Teeworlds Server

Hi all,

how can i compile teeworlds on debian x64-bit and start there a server? On the "Downloads" blog is just Teeworlds for linux (ok, debian and linux are almost same) but it doesnt work. Please answer me, because i want to make a server.

MyRace:   |   run_fool
Help
Me:    |   Pennergame
My
Clan:    |   «Òó°L»

2

Re: [DEBIAN] Teeworlds Server

(ok, debian and linux are almost same)

Well this is syntactically a bit confused. Debian *is* linux, or *has* a linux kernel.

Debian is to linux what
the Corvette is to General Motors.

All "Linux" instruction apply to the fullest.

3

Re: [DEBIAN] Teeworlds Server

I get this error:
./teeworlds_srv: /lib/libc.so.6: version `GLIBC_2.4' not found (required by ./teeworlds_srv)

Please help me neutral neutral neutral big_smile neutral neutral neutral

MyRace:   |   run_fool
Help
Me:    |   Pennergame
My
Clan:    |   «Òó°L»

4

Re: [DEBIAN] Teeworlds Server

Compile it by your self or get glibc v2.4

5

Re: [DEBIAN] Teeworlds Server

I cant find this paket. Does anyone know the name of this paket?

MyRace:   |   run_fool
Help
Me:    |   Pennergame
My
Clan:    |   «Òó°L»

6

Re: [DEBIAN] Teeworlds Server

The debian package name is libc6 but it's a "core" package and should already be installed on your system.
Therefore I suggest you try to compile teeworlds by yourself, or maybe install it via aptitude since it has been accepted in debian repositories (don't know which one though)

spl0k, aka Al`. From the HuH clan.
Noobing pwns since 01/01/1970.
TeeViewer - TeeComp

7 (edited by catpaw 2008-05-22 23:43:46)

Re: [DEBIAN] Teeworlds Server

dont mess around with your libc installation if you don't know what you are doing, or you might end up with an unusable system...

libc is *the* interface all applications use to talk to system kernel...

Otherwise, Yes you best just compile teeworlds for your system... The "standard" seems to be compiled to a different libc, either because of 64, 32bit differences, or you just got a different version...

8

Re: [DEBIAN] Teeworlds Server

So funny i don't understand anything you talk lol

*** JUSTICE ALWAYS WINS ***

9

Re: [DEBIAN] Teeworlds Server

you can just say "oh yeah right, thanks" and never post bout that again =P

10

Re: [DEBIAN] Teeworlds Server

Sorry, but it doest work now. At www.debian.org is a paket "teeworlds-server", but i can "apt-get install -f unstable" it...
Please help me sad

MyRace:   |   run_fool
Help
Me:    |   Pennergame
My
Clan:    |   «Òó°L»

11

Re: [DEBIAN] Teeworlds Server

how do i compile teeworlds on linux debian?

12

Re: [DEBIAN] Teeworlds Server

TripleT: have you read the docs ? neutral

spl0k, aka Al`. From the HuH clan.
Noobing pwns since 01/01/1970.
TeeViewer - TeeComp

13

Re: [DEBIAN] Teeworlds Server

yeah i am trying to do what they say at the moment....will report whether i am successful or not

14 (edited by TripleT 2008-05-27 20:17:13)

Re: [DEBIAN] Teeworlds Server

when i start the make_unix.sh the shell sais this:
src/lua/src/ltable.c: In function 'luaH_mainposition':
src/lua/src/ltable.c:108: warning: cast from pointer to integer of different size
src/lua/src/ltable.c:110: warning: cast from pointer to integer of different size
after that i change the folder to teeworlds-0.4.2-src and type:
../bam/src/bam release
because i want to compile everything server and game. and then the shell sais:
infback.c:(.text+0x1e4): undefined reference to `__stack_chk_guard'
infback.c:(.text+0x4e3): undefined reference to `__stack_chk_fail'
/home/www/web26/files/teeworlds/teeworlds-0.4.2-src/objs/trees.o: In function `init_block':
trees.c:(.text+0x7): undefined reference to `__stack_chk_guard'
trees.c:(.text+0x60): undefined reference to `__stack_chk_guard'
trees.c:(.text+0x9f): undefined reference to `__stack_chk_fail'
/home/www/web26/files/teeworlds/teeworlds-0.4.2-src/objs/trees.o: In function `_tr_init':
trees.c:(.text+0xcd): undefined reference to `__stack_chk_guard'
trees.c:(.text+0x132): undefined reference to `__stack_chk_guard'
trees.c:(.text+0x142): undefined reference to `__stack_chk_fail'
/home/www/web26/files/teeworlds/teeworlds-0.4.2-src/objs/trees.o: In function `pqdownheap':
trees.c:(.text+0x177): undefined reference to `__stack_chk_guard'
trees.c:(.text+0x213): undefined reference to `__stack_chk_guard'
trees.c:(.text+0x251): undefined reference to `__stack_chk_fail'
/home/www/web26/files/teeworlds/teeworlds-0.4.2-src/objs/trees.o: In function `scan_tree':
trees.c:(.text+0x276): undefined reference to `__stack_chk_guard'
trees.c:(.text+0x35a): undefined reference to `__stack_chk_guard'
trees.c:(.text+0x37d): undefined reference to `__stack_chk_fail'
/home/www/web26/files/teeworlds/teeworlds-0.4.2-src/objs/trees.o: In function `send_tree':
trees.c:(.text+0x3ac): undefined reference to `__stack_chk_guard'
trees.c:(.text+0x7c8): undefined reference to `__stack_chk_guard'
trees.c:(.text+0x9c7): undefined reference to `__stack_chk_fail'
/home/www/web26/files/teeworlds/teeworlds-0.4.2-src/objs/trees.o: In function `_tr_tally':
trees.c:(.text+0x9e0): undefined reference to `__stack_chk_guard'
trees.c:(.text+0xa39): undefined reference to `__stack_chk_guard'
trees.c:(.text+0xa97): undefined reference to `__stack_chk_fail'
/home/www/web26/files/teeworlds/teeworlds-0.4.2-src/objs/trees.o: In function `compress_block':
trees.c:(.text+0xab8): undefined reference to `__stack_chk_guard'
trees.c:(.text+0xed7): undefined reference to `__stack_chk_guard'
trees.c:(.text+0xfb6): undefined reference to `__stack_chk_fail'
/home/www/web26/files/teeworlds/teeworlds-0.4.2-src/objs/trees.o: In function `build_tree':
trees.c:(.text+0xfda): undefined reference to `__stack_chk_guard'
trees.c:(.text+0x1445): undefined reference to `__stack_chk_guard'
trees.c:(.text+0x1478): undefined reference to `__stack_chk_fail'
/home/www/web26/files/teeworlds/teeworlds-0.4.2-src/objs/trees.o: In function `bi_flush':
trees.c:(.text+0x1487): undefined reference to `__stack_chk_guard'
trees.c:(.text+0x14d0): undefined reference to `__stack_chk_guard'
trees.c:(.text+0x1520): undefined reference to `__stack_chk_fail'
/home/www/web26/files/teeworlds/teeworlds-0.4.2-src/objs/trees.o: In function `_tr_align':
trees.c:(.text+0x1546): undefined reference to `__stack_chk_guard'
trees.c:(.text+0x1736): undefined reference to `__stack_chk_guard'
trees.c:(.text+0x17cb): undefined reference to `__stack_chk_fail'
/home/www/web26/files/teeworlds/teeworlds-0.4.2-src/objs/trees.o: In function `bi_windup':
trees.c:(.text+0x17d7): undefined reference to `__stack_chk_guard'
trees.c:(.text+0x181f): undefined reference to `__stack_chk_guard'
trees.c:(.text+0x185e): undefined reference to `__stack_chk_fail'
/home/www/web26/files/teeworlds/teeworlds-0.4.2-src/objs/trees.o: In function `_tr_stored_block':
trees.c:(.text+0x188c): undefined reference to `__stack_chk_guard'
trees.c:(.text+0x197d): undefined reference to `__stack_chk_guard'
trees.c:(.text+0x19a2): undefined reference to `__stack_chk_fail'
/home/www/web26/files/teeworlds/teeworlds-0.4.2-src/objs/trees.o: In function `_tr_flush_block':
trees.c:(.text+0x19d1): undefined reference to `__stack_chk_guard'
trees.c:(.text+0x1d9f): undefined reference to `__stack_chk_guard'
trees.c:(.text+0x1ebd): undefined reference to `__stack_chk_guard'
trees.c:(.text+0x1f78): undefined reference to `__stack_chk_fail'
/home/www/web26/files/teeworlds/teeworlds-0.4.2-src/objs/compress.o: In function `compressBound':
compress.c:(.text+0xe): undefined reference to `__stack_chk_guard'
compress.c:(.text+0x30): undefined reference to `__stack_chk_guard'
compress.c:(.text+0x3c): undefined reference to `__stack_chk_fail'
/home/www/web26/files/teeworlds/teeworlds-0.4.2-src/objs/compress.o: In function `compress2':
compress.c:(.text+0x63): undefined reference to `__stack_chk_guard'
compress.c:(.text+0x83): undefined reference to `__stack_chk_guard'
compress.c:(.text+0x137): undefined reference to `__stack_chk_fail'
/home/www/web26/files/teeworlds/teeworlds-0.4.2-src/objs/compress.o: In function `compress':
compress.c:(.text+0x147): undefined reference to `__stack_chk_guard'
compress.c:(.text+0x15a): undefined reference to `__stack_chk_guard'
compress.c:(.text+0x170): undefined reference to `__stack_chk_fail'
/home/www/web26/files/teeworlds/teeworlds-0.4.2-src/objs/crc32.o: In function `get_crc_table':
crc32.c:(.text+0x7): undefined reference to `__stack_chk_guard'
crc32.c:(.text+0x1f): undefined reference to `__stack_chk_guard'
crc32.c:(.text+0x2b): undefined reference to `__stack_chk_fail'
/home/www/web26/files/teeworlds/teeworlds-0.4.2-src/objs/crc32.o: In function `crc32':
crc32.c:(.text+0x3a): undefined reference to `__stack_chk_guard'
crc32.c:(.text+0x34a): undefined reference to `__stack_chk_guard'
crc32.c:(.text+0x612): undefined reference to `__stack_chk_fail'
/home/www/web26/files/teeworlds/teeworlds-0.4.2-src/objs/crc32.o: In function `gf2_matrix_times':
crc32.c:(.text+0x627): undefined reference to `__stack_chk_guard'
crc32.c:(.text+0x65a): undefined reference to `__stack_chk_guard'
crc32.c:(.text+0x666): undefined reference to `__stack_chk_fail'
/home/www/web26/files/teeworlds/teeworlds-0.4.2-src/objs/crc32.o: In function `gf2_matrix_square':
crc32.c:(.text+0x683): undefined reference to `__stack_chk_guard'
crc32.c:(.text+0x6b2): undefined reference to `__stack_chk_guard'
crc32.c:(.text+0x6c2): undefined reference to `__stack_chk_fail'
/home/www/web26/files/teeworlds/teeworlds-0.4.2-src/objs/crc32.o: In function `crc32_combine':
crc32.c:(.text+0x6ed): undefined reference to `__stack_chk_guard'
crc32.c:(.text+0x798): undefined reference to `__stack_chk_guard'
crc32.c:(.text+0x7c4): undefined reference to `__stack_chk_fail'
/home/www/web26/files/teeworlds/teeworlds-0.4.2-src/objs/deflate.o: In function `deflateSetHeader':
deflate.c:(.text+0x7): undefined reference to `__stack_chk_guard'
deflate.c:(.text+0x24): undefined reference to `__stack_chk_guard'
deflate.c:(.text+0x4b): undefined reference to `__stack_chk_fail'
/home/www/web26/files/teeworlds/teeworlds-0.4.2-src/objs/deflate.o: In function `deflatePrime':
deflate.c:(.text+0x57): undefined reference to `__stack_chk_guard'
deflate.c:(.text+0x74): undefined reference to `__stack_chk_guard'
deflate.c:(.text+0xa5): undefined reference to `__stack_chk_fail'
/home/www/web26/files/teeworlds/teeworlds-0.4.2-src/objs/deflate.o: In function `deflateTune':
deflate.c:(.text+0xb7): undefined reference to `__stack_chk_guard'
deflate.c:(.text+0xd4): undefined reference to `__stack_chk_guard'
deflate.c:(.text+0x107): undefined reference to `__stack_chk_fail'
/home/www/web26/files/teeworlds/teeworlds-0.4.2-src/objs/deflate.o: In function `putShortMSB':
deflate.c:(.text+0x11e): undefined reference to `__stack_chk_guard'
deflate.c:(.text+0x14e): undefined reference to `__stack_chk_guard'
deflate.c:(.text+0x15a): undefined reference to `__stack_chk_fail'
/home/www/web26/files/teeworlds/teeworlds-0.4.2-src/objs/deflate.o: In function `deflateEnd':
deflate.c:(.text+0x171): undefined reference to `__stack_chk_guard'
deflate.c:(.text+0x191): undefined reference to `__stack_chk_guard'
deflate.c:(.text+0x282): undefined reference to `__stack_chk_fail'
/home/www/web26/files/teeworlds/teeworlds-0.4.2-src/objs/deflate.o: In function `longest_match':
deflate.c:(.text+0x2ad): undefined reference to `__stack_chk_guard'
deflate.c:(.text+0x451): undefined reference to `__stack_chk_guard'
deflate.c:(.text+0x46a): undefined reference to `__stack_chk_fail'
/home/www/web26/files/teeworlds/teeworlds-0.4.2-src/objs/deflate.o: In function `longest_match_fast':
deflate.c:(.text+0x47b): undefined reference to `__stack_chk_guard'
deflate.c:(.text+0x56a): undefined reference to `__stack_chk_guard'
deflate.c:(.text+0x581): undefined reference to `__stack_chk_fail'
/home/www/web26/files/teeworlds/teeworlds-0.4.2-src/objs/deflate.o: In function `deflateCopy':
deflate.c:(.text+0x5ae): undefined reference to `__stack_chk_guard'
deflate.c:(.text+0x5d6): undefined reference to `__stack_chk_guard'
deflate.c:(.text+0x7a1): undefined reference to `__stack_chk_fail'
/home/www/web26/files/teeworlds/teeworlds-0.4.2-src/objs/deflate.o: In function `flush_pending':
deflate.c:(.text+0x7dd): undefined reference to `__stack_chk_guard'
deflate.c:(.text+0x804): undefined reference to `__stack_chk_guard'
deflate.c:(.text+0x85d): undefined reference to `__stack_chk_fail'
/home/www/web26/files/teeworlds/teeworlds-0.4.2-src/objs/deflate.o: In function `fill_window':
deflate.c:(.text+0x888): undefined reference to `__stack_chk_guard'
deflate.c:(.text+0xa59): undefined reference to `__stack_chk_guard'
deflate.c:(.text+0xaa5): undefined reference to `__stack_chk_fail'
/home/www/web26/files/teeworlds/teeworlds-0.4.2-src/objs/deflate.o: In function `deflateSetDictionary':
deflate.c:(.text+0xad8): undefined reference to `__stack_chk_guard'
deflate.c:(.text+0xaf5): undefined reference to `__stack_chk_guard'
deflate.c:(.text+0xc1d): undefined reference to `__stack_chk_fail'
/home/www/web26/files/teeworlds/teeworlds-0.4.2-src/objs/deflate.o: In function `deflate':
deflate.c:(.text+0xc6b): undefined reference to `__stack_chk_guard'
deflate.c:(.text+0xc88): undefined reference to `__stack_chk_guard'
deflate.c:(.text+0xe01): undefined reference to `__stack_chk_fail'
/home/www/web26/files/teeworlds/teeworlds-0.4.2-src/objs/deflate.o: In function `deflateParams':
deflate.c:(.text+0x168d): undefined reference to `__stack_chk_guard'
deflate.c:(.text+0x16ac): undefined reference to `__stack_chk_guard'
deflate.c:(.text+0x1797): undefined reference to `__stack_chk_fail'
/home/www/web26/files/teeworlds/teeworlds-0.4.2-src/objs/deflate.o: In function `deflate_slow':
deflate.c:(.text+0x17c3): undefined reference to `__stack_chk_guard'
deflate.c:(.text+0x1a75): undefined reference to `__stack_chk_guard'
deflate.c:(.text+0x1cf5): undefined reference to `__stack_chk_fail'
/home/www/web26/files/teeworlds/teeworlds-0.4.2-src/objs/deflate.o: In function `deflate_fast':
deflate.c:(.text+0x1d18): undefined reference to `__stack_chk_guard'
deflate.c:(.text+0x1f74): undefined reference to `__stack_chk_guard'
deflate.c:(.text+0x2111): undefined reference to `__stack_chk_fail'
/home/www/web26/files/teeworlds/teeworlds-0.4.2-src/objs/deflate.o: In function `deflate_stored':
deflate.c:(.text+0x2135): undefined reference to `__stack_chk_guard'
deflate.c:(.text+0x224e): undefined reference to `__stack_chk_guard'
deflate.c:(.text+0x22f7): undefined reference to `__stack_chk_fail'
/home/www/web26/files/teeworlds/teeworlds-0.4.2-src/objs/deflate.o: In function `deflateBound':
deflate.c:(.text+0x230b): undefined reference to `__stack_chk_guard'
deflate.c:(.text+0x2346): undefined reference to `__stack_chk_guard'
deflate.c:(.text+0x235f): undefined reference to `__stack_chk_guard'
deflate.c:(.text+0x2372): undefined reference to `__stack_chk_fail'
/home/www/web26/files/teeworlds/teeworlds-0.4.2-src/objs/deflate.o: In function `deflateReset':
deflate.c:(.text+0x2391): undefined reference to `__stack_chk_guard'
deflate.c:(.text+0x23b1): undefined reference to `__stack_chk_guard'
deflate.c:(.text+0x2507): undefined reference to `__stack_chk_fail'
/home/www/web26/files/teeworlds/teeworlds-0.4.2-src/objs/deflate.o: In function `deflateInit2_':
deflate.c:(.text+0x2565): undefined reference to `__stack_chk_guard'
deflate.c:(.text+0x258c): undefined reference to `__stack_chk_guard'
deflate.c:(.text+0x25d2): undefined reference to `__stack_chk_fail'
deflate.c:(.text+0x27ee): undefined reference to `__stack_chk_guard'
/home/www/web26/files/teeworlds/teeworlds-0.4.2-src/objs/deflate.o: In function `deflateInit_':
deflate.c:(.text+0x28b2): undefined reference to `__stack_chk_guard'
deflate.c:(.text+0x28ca): undefined reference to `__stack_chk_guard'
deflate.c:(.text+0x28d6): undefined reference to `__stack_chk_fail'
/home/www/web26/files/teeworlds/teeworlds-0.4.2-src/objs/inffast.o: In function `inflate_fast':
inffast.c:(.text+0x22): undefined reference to `__stack_chk_guard'
inffast.c:(.text+0x35b): undefined reference to `__stack_chk_guard'
inffast.c:(.text+0x57e): undefined reference to `__stack_chk_fail'
/home/www/web26/files/teeworlds/teeworlds-0.4.2-src/objs/inftrees.o: In function `inflate_table':
inftrees.c:(.text+0x1d): undefined reference to `__stack_chk_guard'
inftrees.c:(.text+0xd2): undefined reference to `__stack_chk_guard'
inftrees.c:(.text+0x53a): undefined reference to `__stack_chk_fail'
collect2: ld returned 1 exit status
bam: link returned error number 256
bam: error during build
(that is what i get after it stops spamming in my shell ^^)
what do i do wrong? have i forgotten to install anything before runing the compiler? and where can i find the teeworlds_srv after compiling? do i need the linux files too which i can find in the download section?
please help me

15

Re: [DEBIAN] Teeworlds Server

In the head of the doc:

FAQ
Q: How do I get rid of these errors?

undefined reference to `__stack_chk_guard'

Remove

-fstack-protector -fstack-protector-all

from default.bam in Teeworlds root directory and then run

../bam/src/bam -c all

spl0k, aka Al`. From the HuH clan.
Noobing pwns since 01/01/1970.
TeeViewer - TeeComp

16

Re: [DEBIAN] Teeworlds Server

sorry i am just stupid i AM familier with setting up a server but in tmn but this time i was just to lazy to read the errors -.- sorry but what is with my oother questions? do i need the linux files from the download section too? probably not or am i wrong? and where is the teeworlds_srv? well i will remove the line and will have a look
thx for the help spl0k

17

Re: [DEBIAN] Teeworlds Server

well i made it but i still do not have the teeworlds_srv? what do i have to do? sorry for these noob questions -.-

18

Re: [DEBIAN] Teeworlds Server

If you take the linux archive in the downloads section, then you don't need to compile. But you might experience the same dependencies problems as [_Xe'n'eX_]
The teeworlds_srv binary is in the root of the teeworlds directory, so the same from the one you have compiled.
If the expected binary isn't there, then you have error(s) during compilation, or you haven't build the good target.

spl0k, aka Al`. From the HuH clan.
Noobing pwns since 01/01/1970.
TeeViewer - TeeComp

19

Re: [DEBIAN] Teeworlds Server

well ok i have errors during compilation but i can not log them because it goes too fast -.- ^^ what do you mean by "or you haven't build the good target"

TripleT

20 (edited by Kademlia 2008-05-30 10:35:46)

Re: [DEBIAN] Teeworlds Server

u cant log the errors? o_O


What are you using? Putty? Its long enough.

However do it this way:

> log.txt to write to file
cat log.txt to view file

tw12@ks356538:~/teeworlds-0.4.2-src$ ../bam/src/bam server_release > log.txt
tw12@ks356538:~/teeworlds-0.4.2-src$ cat log.txt
bam: building 'server_release'
c deflate.c
c crc32.c
c e_engine.c
c e_datafile.c
c e_compression.c
c e_config.c
c e_console.c
link teeworlds_srv
bam: done

Edit: If you HAVE compiled with this -stack thing already and got errors.
you need to DELETE all files in /objs (not the folder itself). Else you will just get the same errors even if you changed default.

21

Re: [DEBIAN] Teeworlds Server

http://packages.debian.org/lenny/teeworlds

22

Re: [DEBIAN] Teeworlds Server

well thx grundik i downloaded the files and got a bunch of "non defined data-types with no ending" after extracting many times am i doing anything wrong i extracting .deb files?
used ar -x xyz.deb

23

Re: [DEBIAN] Teeworlds Server

.deb packages have to be installed with
dpkg -i file.deb
But the teeworlds package is in the repository, so you just need to type the following command:
apt-get install teeworlds
(for both you need to be the root user)

spl0k, aka Al`. From the HuH clan.
Noobing pwns since 01/01/1970.
TeeViewer - TeeComp

24

Re: [DEBIAN] Teeworlds Server

so well i looked up in google and found some nice answers but the problem is that i share the server with my hoster and i have just accsess to my folder so the .deb installation does not work because i have no root accsess. what do i have to do now? any other packages?

25

Re: [DEBIAN] Teeworlds Server

thx spl0k while i posted my theme you posted yours too but this doesn´t help me see my post above!