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

 

出现如下错误

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

 

 根据问题描述,显示为编译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”编译选项再次编译即可

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-14
  • 2022-12-23
  • 2022-12-23
  • 2021-06-22
  • 2022-12-23
猜你喜欢
  • 2021-12-22
  • 2021-07-12
  • 2021-12-05
  • 2022-12-23
  • 2021-06-28
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案