problems compiling cedega

Anyone getting the following error when compiling cedega:

undefined reference to `__stack_chk_fail’

Try editing the Makefile in miscemu and adding “-fno-stack-protector”. Thus:

CFLAGS = -g -O2 -Wall -mpreferred-stack-boundary=2 -fno-keep-static-consts -D__const=const -fno-strict-aliasing -Wa,–execstack -D__int8=char -D__int16=short -D__int32=int “-D__int64=long long”

becomes…

CFLAGS = -g -O2 -Wall -mpreferred-stack-boundary=2 -fno-stack-protector -fno-keep-static-consts -D__const=const -fno-strict-aliasing -Wa,–execstack -D__int8=char -D__int16=short -D__int32=int “-D__int64=long long”

I also added it to the root Makefile, but that appeared to make absolutely no difference. No guarantees it will sort all problems and/or even run after compiling, but it certainly got me past that problem.

Took a bit of googling and even then a bit more experimentation to figure that out. Hopefully this post might shortcut the searching for someone else…

PS. Came to a complete and rather painful halt with configuration shortly afterwards. Approaching the more-pain-than-fun limit, so about to give up…

RSS feed | Trackback URI

4 Comments »

Comment by Fish
2007-01-07 03:50:02

doesn’t work for me, sorry

 
Comment by Acathla
2007-01-08 02:32:07

Works for me, thanks.
Fish:
Don’t cut & paste the line from your browser, juste add -fno-stack-protector .
And do a “make clean” in the miscemu directory.

 
Comment by Mass-Yas
2007-01-24 09:22:17

Thanks, that works for me (Ubuntu 6.10)
I made like Acathia comment says.

 
Comment by JsL1
2007-02-10 06:38:49

Thanks, work for me too (Ubuntu 7.04)

 
Name (required)
E-mail (required - never shown publicly)
URI
Your Comment (smaller size | larger size)
You may use <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> in your comment.

Trackback responses to this post