when you see errors:hidden symbol `__stack_chk_fail_local'

来源:互联网 发布:淘宝如何养小号 编辑:程序博客网 时间:2024/05/20 13:05
when you see errors like this:
"
/usr/bin/ld: build/dns-sd: hidden symbol `__stack_chk_fail_local'
in /usr/lib/libc_nonshared.a(stack_chk_fail_local.oS) is referenced by DSO
/usr/bin/ld: final link failed: Nonrepresentable section on output
"
you will do like this:
"
Edit Makefile, and find line xx:

LD = ld -shared

and change it to:

LD = gcc -shared
"
Now when you build, everything works.
0 0
原创粉丝点击