undefined reference to `crypto_get_random'

简介: undefined reference to `crypto_get_random'

  编译时的一个错误:

/usr/bin/ld: /home/quantum6/telecom/build_libs/lib/libtinyRTP.so: undefined reference to `crypto_get_random'
collect2: error: ld returned 1 exit status
make: *** [Makefile:687:telepresence] 错误 1

  具体来说,就是libtinyRTP引用到srtp,而srtp中没有这个函数。可是要编译通过,代码又不好大改(doubango的接口真的很老了)。怎么办?

  在libsrtp的历史记录中,有以下一段内容:

Commits on Nov 5, 2014
Remove crypto_get_random() since it's been agreed that libsrtp should…  …
@jfigus
jfigus committed on 5 Nov 2014

  就是说,2014年开始就删除了。结果过了6年,doubango还是没有更新。可能为了兼容?

  解决办法就是使用老库,或者删除这个代码。

https://github.com/quantum6/libsrtp-1.5.0

目录
相关文章
|
数据库
解决numpy.core._exceptions.UFuncTypeError: ufunc ‘add‘ did not contain a loop with signature matching
解决numpy.core._exceptions.UFuncTypeError: ufunc ‘add‘ did not contain a loop with signature matching
1363 0
解决numpy.core._exceptions.UFuncTypeError: ufunc ‘add‘ did not contain a loop with signature matching
undefined reference to `crypto_get_random'
undefined reference to `crypto_get_random'
91 0
undefined reference to `swr_init+
undefined reference to `swr_init+
121 0
undefined reference to symbol XGetWindowAttributes/cairo_destroy/XShapeGetRectangles
undefined reference to symbol XGetWindowAttributes/cairo_destroy/XShapeGetRectangles
157 0
libs/spandsp/src/floating_fudge.h:40:20: error: implicit declaration of function ‘sin’ [-Werror=impl
libs/spandsp/src/floating_fudge.h:40:20: error: implicit declaration of function ‘sin’ [-Werror=impl
126 0
成功解决AttributeError: type object 'h5py.h5r.Reference' has no attribute '__reduce_cython__'
成功解决AttributeError: type object 'h5py.h5r.Reference' has no attribute '__reduce_cython__'
成功解决AttributeError: type object 'h5py.h5r.Reference' has no attribute '__reduce_cython__'
|
Unix Apache 算法框架/工具
成功解决AttributeError: type object 'scipy.interpolate.interpnd.array' has no attribute '__reduce_cython
成功解决AttributeError: type object 'scipy.interpolate.interpnd.array' has no attribute '__reduce_cython
成功解决AttributeError: type object 'scipy.interpolate.interpnd.array' has no attribute '__reduce_cython