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

目录
相关文章
undefined reference to symbol 'dlsym@@GLIBC_2.17' libdl.so: error adding symbols: DSO missing from c
undefined reference to symbol 'dlsym@@GLIBC_2.17' libdl.so: error adding symbols: DSO missing from c
618 0
解决办法:undefined reference to symbol 'shm_open@@GLIBC_2.2.5'
解决办法:undefined reference to symbol 'shm_open@@GLIBC_2.2.5'
398 0
|
Linux C语言 计算机视觉
OpenIN2 Linux 编译OpenCV 报错undefined reference to `xxx@xxx‘
OpenIN2 Linux 编译OpenCV 报错undefined reference to `xxx@xxx‘
342 0
OpenIN2 Linux 编译OpenCV 报错undefined reference to `xxx@xxx‘
|
Ubuntu C语言
【ubuntu】2.c:(.text+0xd2): undefined reference to `pthread_create‘ collect2: error: ld returned
【ubuntu】2.c:(.text+0xd2): undefined reference to `pthread_create‘ collect2: error: ld returned
148 0
undefined reference to `major‘
undefined reference to `major‘
281 0
undefined reference to `gdk_monitor_get_scale_factor/gtk_widget_get_scale_factor‘
undefined reference to `gdk_monitor_get_scale_factor/gtk_widget_get_scale_factor‘
96 0
|
C++
undefined reference to `vtable for XXX‘
undefined reference to `vtable for XXX‘
186 0
NDK编译doubango时出现错误:undefined reference to ‘stderr‘
NDK编译doubango时出现错误:undefined reference to ‘stderr‘
140 0
|
计算机视觉
交叉编译opencv:undefined reference to `png_riffle_palette_neon
交叉编译opencv:undefined reference to `png_riffle_palette_neon
208 0