Issue when calling make on debian stretch (9.12)
mbodbg opened this issue · 4 comments
mbodbg commented
I get the following error after calling "make" on debian stretch (9.12):
/usr/bin/cmake -E cmake_link_script CMakeFiles/voip_patrol.dir/link.txt --verbose=1
/usr/bin/c++ -std=c++11 -g CMakeFiles/voip_patrol.dir/src/voip_patrol/mod_voip_patrol.cc.o CMakeFiles/voip_patrol.dir/src/voip_patrol/voip_patrol.cc.o CMakeFiles/voip_patrol.dir/src/voip_patrol/action.cc.o CMakeFiles/voip_patrol.dir/src/voip_patrol/check.cc.o CMakeFiles/voip_patrol.dir/src/ezxml/ezxml.c.o -o voip_patrol -rdynamic -lpjsua2-x86_64-unknown-linux-gnu -lstdc++ -lpjsua-x86_64-unknown-linux-gnu -lpjsip-ua-x86_64-unknown-linux-gnu -lpjsip-simple-x86_64-unknown-linux-gnu -lpjsip-x86_64-unknown-linux-gnu -lpjmedia-codec-x86_64-unknown-linux-gnu -lpjmedia-x86_64-unknown-linux-gnu -lpjmedia-videodev-x86_64-unknown-linux-gnu -lpjmedia-audiodev-x86_64-unknown-linux-gnu -lpjmedia-x86_64-unknown-linux-gnu -lpjnath-x86_64-unknown-linux-gnu -lpjlib-util-x86_64-unknown-linux-gnu -lsrtp-x86_64-unknown-linux-gnu -lresample-x86_64-unknown-linux-gnu -lgsmcodec-x86_64-unknown-linux-gnu -lspeex-x86_64-unknown-linux-gnu -lilbccodec-x86_64-unknown-linux-gnu -lg7221codec-x86_64-unknown-linux-gnu -lpj-x86_64-unknown-linux-gnu -lpthread -lcurl -lm -lasound -lssl -std=c++11 -lssl -lcrypto -lopus -luuid -lpjmedia-videodev-x86_64-unknown-linux-gnu -lpjmedia-audiodev-x86_64-unknown-linux-gnu -lpjnath-x86_64-unknown-linux-gnu -lpjlib-util-x86_64-unknown-linux-gnu -lsrtp-x86_64-unknown-linux-gnu -lresample-x86_64-unknown-linux-gnu -lgsmcodec-x86_64-unknown-linux-gnu -lspeex-x86_64-unknown-linux-gnu -lilbccodec-x86_64-unknown-linux-gnu -lg7221codec-x86_64-unknown-linux-gnu -lpj-x86_64-unknown-linux-gnu -lpthread -lcurl -lm -lasound -lssl -lcrypto -lopus -luuid
/usr/bin/ld: warning: libssl.so.1.0.2, needed by /usr/lib/gcc/x86_64-linux-gnu/6/../../../x86_64-linux-gnu/libcurl.so, may conflict with libssl.so.1.1
/usr/bin/ld: warning: libssl.so.1.0.2, needed by /usr/lib/gcc/x86_64-linux-gnu/6/../../../x86_64-linux-gnu/libcurl.so, may conflict with libssl.so.1.1
/usr/bin/ld: warning: libssl.so.1.0.2, needed by /usr/lib/gcc/x86_64-linux-gnu/6/../../../x86_64-linux-gnu/libcurl.so, may conflict with libssl.so.1.1
/usr/bin/ld: warning: libcrypto.so.1.0.2, needed by /usr/lib/gcc/x86_64-linux-gnu/6/../../../x86_64-linux-gnu/libcurl.so, may conflict with libcrypto.so.1.1
/usr/bin/ld: warning: libcrypto.so.1.0.2, needed by /usr/lib/gcc/x86_64-linux-gnu/6/../../../x86_64-linux-gnu/libcurl.so, may conflict with libcrypto.so.1.1
//usr/local/lib/libpjmedia-codec-x86_64-unknown-linux-gnu.a(opencore_amr.o): In function `amr_codec_decode':
opencore_amr.c:(.text+0x3d8): undefined reference to `Decoder_Interface_Decode'
//usr/local/lib/libpjmedia-codec-x86_64-unknown-linux-gnu.a(opencore_amr.o): In function `amr_codec_encode':
opencore_amr.c:(.text+0x642): undefined reference to `Encoder_Interface_Encode'
//usr/local/lib/libpjmedia-codec-x86_64-unknown-linux-gnu.a(opencore_amr.o): In function `amr_codec_close':
opencore_amr.c:(.text+0xf69): undefined reference to `Decoder_Interface_exit'
opencore_amr.c:(.text+0xf71): undefined reference to `Encoder_Interface_exit'
//usr/local/lib/libpjmedia-codec-x86_64-unknown-linux-gnu.a(opencore_amr.o): In function `amr_codec_modify':
opencore_amr.c:(.text+0x1009): undefined reference to `Encoder_Interface_exit'
opencore_amr.c:(.text+0x1011): undefined reference to `Encoder_Interface_init'
//usr/local/lib/libpjmedia-codec-x86_64-unknown-linux-gnu.a(opencore_amr.o): In function `amr_codec_open':
opencore_amr.c:(.text+0x13e1): undefined reference to `Encoder_Interface_init'
opencore_amr.c:(.text+0x1405): undefined reference to `Decoder_Interface_init'
collect2: error: ld returned 1 exit status
CMakeFiles/voip_patrol.dir/build.make:201: recipe for target 'voip_patrol' failed
make[2]: *** [voip_patrol] Error 1
make[2]: Leaving directory '/usr/src/voip_patrol'
CMakeFiles/Makefile2:70: recipe for target 'CMakeFiles/voip_patrol.dir/all' failed
make[1]: *** [CMakeFiles/voip_patrol.dir/all] Error 2
make[1]: Leaving directory '/usr/src/voip_patrol'
Makefile:86: recipe for target 'all' failed
make: *** [all] Error 2
bittorf commented
apt-get install libssl-dev
???
mbodbg commented
libssl dev is installed. I've found a solution, it works when I disable the opencore amr codec in pjproject
./configure --disable-libwebrtc --disable-opencore-amr
StefanYohansson commented
I have the same problem on debian buster (https://app.vagrantup.com/debian/boxes/buster64) just cloning this box and following Dockerfile give me this error. Following @mbodbg advice makes linking work again.
jchavanton commented
@mbodbg thanks for the solution, I will add this build config setting in the Dockerfile since it seems to be a problem now.