make OS="LINUX" BUILD="DBG"
make[1]: Entering directory '/home/dev/srs/trunk/objs/st-1.9'
ld -shared -soname=libst.so.1 -lc LINUX_4.13.0-43-generic_DBG/sched-pic.o LINUX_4.13.0-43-generic_DBG/stk-pic.o LINUX_4.13.0-43-generic_DBG/sync-pic.o LINUX_4.13.0-43-generic_DBG/key-pic.o LINUX_4.13.0-43-generic_DBG/io-pic.o LINUX_4.13.0-43-generic_DBG/event-pic.o LINUX_4.13.0-43-generic_DBG/md-pic.o -o LINUX_4.13.0-43-generic_DBG/libst.so.1.9
LINUX_4.13.0-43-generic_DBG/sched-pic.o: In function `st_poll':
/home/dev/srs/trunk/objs/st-1.9/sched.c:108: undefined reference to `__stack_chk_fail_local'
LINUX_4.13.0-43-generic_DBG/sync-pic.o: In function `st_utime':
/home/dev/srs/trunk/objs/st-1.9/sync.c:70: undefined reference to `__stack_chk_fail_local'
LINUX_4.13.0-43-generic_DBG/io-pic.o: In function `_st_io_init':
/home/dev/srs/trunk/objs/st-1.9/io.c:106: undefined reference to `__stack_chk_fail_local'
LINUX_4.13.0-43-generic_DBG/io-pic.o: In function `_st_netfd_new':
/home/dev/srs/trunk/objs/st-1.9/io.c:166: undefined reference to `__stack_chk_fail_local'
LINUX_4.13.0-43-generic_DBG/io-pic.o: In function `st_netfd_poll':
/home/dev/srs/trunk/objs/st-1.9/io.c:241: undefined reference to `__stack_chk_fail_local'
LINUX_4.13.0-43-generic_DBG/io-pic.o:/home/dev/srs/trunk/objs/st-1.9/io.c:438: more undefined references to `__stack_chk_fail_local' follow
Makefile:356: recipe for target 'LINUX_4.13.0-43-generic_DBG/libst.so.1.9' failed
make[1]: *** [LINUX_4.13.0-43-generic_DBG/libst.so.1.9] Error 1
make[1]: Leaving directory '/home/dev/srs/trunk/objs/st-1.9'
Makefile:441: recipe for target 'linux-debug' failed
make: *** [linux-debug] Error 2
开始以为是确实 libssp.so
安装之, apt install gcc-snapshot
还是不行,
后面尝试 gcc 链接 , ok了
gcc -shared -lc LINUX_4.13.0-43-generic_DBG/sched-pic.o LINUX_4.13.0-43-generic_DBG/stk-pic.o LINUX_4.13.0-43-generic_DBG/sync-pic.o LINUX_4.13.0-43-generic_DBG/key-pic.o LINUX_4.13.0-43-generic_DBG/io-pic.o LINUX_4.13.0-43-generic_DBG/event-pic.o LINUX_4.13.0-43-generic_DBG/md-pic.o -o LINUX_4.13.0-43-generic_DBG/libst.so.1.9
阅读(1768) | 评论(0) | 转发(0) |