While I Compile the L4 system libraries and support servers, I receive in output this error message:
/usr/lib/gcc/i486-linux-gnu/4.1.2/libsupc++.a(cp-demangle.o): In function `d_demangle': (.text+0x3fb7): undefined reference to `__stack_chk_fail_local' make[5]: *** [ipcmon] Error 1 make[4]: *** [/home/david/tudos/l4/microkerne1/pkg/ipcmon/server/src/OBJ-x86_686-l4v2] Error 2 make[3]: *** [src] Error 2 make[2]: *** [server] Error 2 make[1]: *** [ipcmon.bin] Error 2 make: *** [pkg] Error 2
What's the problem? Thanks for your help. Davide Fasoli
---------------------------------
--------------------------------- L'email della prossima generazione? Puoi averla con la nuova Yahoo! Mail
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Hi,
While I Compile the L4 system libraries and support servers, I receive in output this error message:
/usr/lib/gcc/i486-linux-gnu/4.1.2/libsupc++.a(cp-demangle.o): In function `d_demangle': (.text+0x3fb7): undefined reference to `__stack_chk_fail_local' make[5]: *** [ipcmon] Error 1 make[4]: *** [/home/david/tudos/l4/microkerne1/pkg/ipcmon/server/src/OBJ-x86_686-l4v2] Error 2 make[3]: *** [src] Error 2 make[2]: *** [server] Error 2 make[1]: *** [ipcmon.bin] Error 2 make: *** [pkg] Error 2
What's the problem?
Ubuntu. :)
According to our experience and Google (https://launchpad.net/ubuntu/+source/iptables/+bug/66681), this can be solved using the -fno-stack-protector option in CFLAGS and CXXFLAGS. However, our build system already sets this variable for you. Can you please perform "make cleanall && make V=1" in l4/pkg/ipcmon/server/src, and check if the output contains the -fno-stack-protector option?
Bjoern
Am Donnerstag September 13 2007 schrieb Bjoern Doebel:
Hi,
Hello Davide!
[...] What's the problem?
Ubuntu. :)
According to our experience and Google (https://launchpad.net/ubuntu/+source/iptables/+bug/66681), this can be solved using the -fno-stack-protector option in CFLAGS and CXXFLAGS. However, our build system already sets this variable for you. Can you please perform "make cleanall && make V=1" in l4/pkg/ipcmon/server/src, and check if the output contains the -fno-stack-protector option?
Unfortunately, this will not be sufficient. The problem is that the libsupc++.a shipping with Ubuntu's GCC-4.1 compiler has the stack-protector feature enabled and hence is not affected by compiler flags for the L4 packages. The attached patch is a work around for this problem. Another option would be to compile your L4 tree with GCC 3.4.6.
Greetings, Carsten
l4-hackers@os.inf.tu-dresden.de