sourcey / libsourcey

C++14 evented IO libraries for high performance networking and media based applications
https://sourcey.com/libsourcey
GNU Lesser General Public License v2.1
1.31k stars 344 forks source link

libwebrtc_full.a undefined symbol #287

Closed juha-h closed 3 years ago

juha-h commented 3 years ago

I'm trying to use libwebrtc_full.a from webrtc-22215-ab42706-linux-x64.tar.gz in baresip app. Build works fine, but when I start the app, it complains:

dl: mod: /usr/lib/baresip/modules/webrtc_aec.so (/usr/lib/baresip/modules/webrtc_aec.so: undefined symbol: _ZN6webrtc17WebRtcAec_ProcessEPvPKPKfmPKPfmsi)

When I check libwebrtc_full.a, it does include this symbol, but it is both defined "U" and defined "T":

$ nm /usr/src/orig/webrtc_sdk/lib/x64/Release/libwebrtc_full.a  | grep WebRtcAec_Process
                 U _ZN6webrtc17WebRtcAec_ProcessEPvPKPKfmPKPfmsi
0000000000000000 T _ZN6webrtc17WebRtcAec_ProcessEPvPKPKfmPKPfmsi
                 U _ZN6webrtc23WebRtcAec_ProcessFramesEPNS_7AecCoreEPKPKfmmiPKPf
0000000000000000 T _ZN6webrtc23WebRtcAec_ProcessFramesEPNS_7AecCoreEPKPKfmmiPKPf

Why is that? Any hints on how to solve the problem?

juha-h commented 3 years ago

It turned out that the static lib was not included in baresip app binary.