1

Topic: Compiling teeworld: "undefined reference to `__stack_chk_guard'"

Hi, i'm trying to compile teeworlds on debian and I have a problem. When I compile bam I have no message, I think it's ok. But when i compile the server I have this:



philippe@TOTO:~/teeworlds_race2$ ../bam/src/bam server_release
bam: building 'server_release'
link teeworlds_srv
/home/philippe/teeworlds_race2/objs/g_collision.o: In function `col_width()':
g_collision.cpp:(.text+0x7): undefined reference to `__stack_chk_guard'
g_collision.cpp:(.text+0x1a): undefined reference to `__stack_chk_guard'
/home/philippe/teeworlds_race2/objs/g_collision.o: In function `col_height()':
g_collision.cpp:(.text+0x37): undefined reference to `__stack_chk_guard'
g_collision.cpp:(.text+0x4a): undefined reference to `__stack_chk_guard'
/home/philippe/teeworlds_race2/objs/g_collision.o: In function `col_is_solid(int, int)':
g_collision.cpp:(.text+0x6b): undefined reference to `__stack_chk_guard'
/home/philippe/teeworlds_race2/objs/g_collision.o:g_collision.cpp:(.text+0xcd): more undefined references to `__stack_chk_guard' follow
collect2: ld returned 1 exit status
bam: link returned error number 256
bam: error during build



So do you know what is going on? (the first time, there was more writings but then I tryied again and again and it gave me that)
Thanks for your help smile

Maps: Dusty and Horny and run_body
Server: 82.225.20.24:31340

2

Re: Compiling teeworld: "undefined reference to `__stack_chk_guard'"

Have you read the first lines of the Compiling Everything doc ?
http://www.teeworlds.com/?page=docs& … Everything

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

3 (edited by Carrion 2008-06-29 17:32:25)

Re: Compiling teeworld: "undefined reference to `__stack_chk_guard'"

yes I have, but there isn't undefined reference to `__stack_chk_guard' files in any folder (bam root or teeworld root). I think I misunderstood that first part... Can you explain me please?

Edit: oh, I found defaut.bam, I though I was looking for -fstack-protector -fstack-protector-all
.... xD
I did this thing and it worked smile Thanks
the thing is I didn't understand what was written... sad

Maps: Dusty and Horny and run_body
Server: 82.225.20.24:31340

4

Re: Compiling teeworld: "undefined reference to `__stack_chk_guard'"

The file is called default.bam and is in the teeworlds root directory. You need to remove this '-fstack-protector -fstack-protector-all' from it. The FAQ clearly states that, its the first Q/A.

We will meet again when the flowers spread their glorious scent of victory and the birds sing us the melody of justice...