Reputation: 13
I've downloaded the source code of Asterisk from http://downloads.asterisk.org/pub/telephony/asterisk/.
I'm getting an erro compiling this from source code in Ubuntu 16.04.1, while trying to invoke make
:
./libasteriskssl.so: undefined reference to `CRYPTO_num_locks' collect2: error: ld returned 1 exit status Makefile:321: recipe for target 'asterisk' failed make[1]: * [asterisk] Error 1 Makefile:368: recipe for target 'main' failed make: * [main] Error 2
Thanks
Upvotes: 0
Views: 2349
Reputation: 652
As @arheops pointed, the compilation depends on the version of OS and on the version of asterisk itself. The following works in a Debian 9 with an asterisk v14
Let's suppose you have the source code in /usr/src/asterisk. So, first things first. You have to download the dependencies:
# apt-get update
# apt-get install autoconf
# cd /usr/src/asterisk/contrib/scripts
# ./install_prereq install
Then, the configure step:
# cd /usr/asterisk
# ./bootstrap.sh
# ./configure <your fancy options>
# make menuconfig
Now, the compile phase:
# make
Installation of executables and libraries
# make install
Installation of config templates
# make samples
Installation of service
# make config
Upvotes: 2
Reputation: 15247
Your asterisk version not support that libcrypto/openssl version or you have broken openssl install.
Try different versions, as reference get versions from RHEL/Centos of same year as source code you use.
Upvotes: 0