srs Ubuntu16.04编译错误more undefined references to `__stack_chk_fail_local'


srs4.0编译问题,下载srs源码 执行

出现如下错误

 根据问题描述,显示为编译st时出错

解决:修改配置文件auto/depends.sh

#####################################################################################
# state-threads
#####################################################################################
# check the cross build flag file, if flag changed, need to rebuild the st.
_ST_MAKE=linux-debug && _ST_EXTRA_CFLAGS="-O0" && _ST_LD=${SRS_TOOL_LD} && _ST_OBJ="LINUX_`uname -r`_DBG"

修改为

#####################################################################################
# state-threads
#####################################################################################
# check the cross build flag file, if flag changed, need to rebuild the st.
_ST_MAKE=linux-debug && _ST_EXTRA_CFLAGS="-O0  -fno-stack-protector " && _ST_LD=${SRS_TOOL_LD} && _ST_OBJ="LINUX_`uname -r`_DBG"

即加入“-fno-stack-protector”编译选项再次编译即可