# Error installing asterisk

**URL:** <https://community.asterisk.org/t/error-installing-asterisk/72743>\
**Category:** Asterisk Support\
**Created:** [November 23, 2017, 10:13am UTC](https://community.asterisk.org/t/error-installing-asterisk/72743 "2017-11-23T10:13:36Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![jinubvarghese](https://avatars.discourse-cdn.com/v4/letter/j/958977/32.png) [@jinubvarghese](https://community.asterisk.org/u/jinubvarghese)\
**Post date:** [November 23, 2017, 10:13am UTC](https://community.asterisk.org/t/error-installing-asterisk/72743/1 "2017-11-23T10:13:36Z")

</div>

Hi,

While I am installing asterisk, the make command gives the below error.

+++++++++  
creating config.h  
[LD] abstract\_jb.o acl.o adsi.o alaw.o alertpipe.o aoc.o app.o ast\_expr2.o ast\_expr2f.o asterisk.o astfd.o astmm.o astobj2.o astobj2\_container.o astobj2\_hash.o astobj2\_rbtree.o audiohook.o autochan.o autoservice.o backtrace.o bridge.o bridge\_after.o bridge\_basic.o bridge\_channel.o bridge\_roles.o bucket.o callerid.o ccss.o cdr.o cel.o channel.o channel\_internal\_api.o chanvars.o cli.o codec.o codec\_builtin.o config.o config\_options.o core\_local.o core\_unreal.o crypt.o data.o datastore.o db.o devicestate.o dial.o dns.o dnsmgr.o dsp.o endpoints.o enum.o event.o features.o features\_config.o file.o fixedjitterbuf.o format.o format\_cache.o format\_cap.o format\_compatibility.o frame.o framehook.o fskmodem.o global\_datastores.o hashtab.o heap.o http.o image.o indications.o io.o jitterbuf.o json.o libasteriskpj.o loader.o lock.o logger.o manager.o manager\_bridges.o manager\_channels.o manager\_endpoints.o manager\_mwi.o manager\_system.o max\_forwards.o md5.o media\_index.o message.o mixmonitor.o named\_acl.o named\_locks.o netsock.o netsock2.o optional\_api.o parking.o pbx.o pbx\_app.o pbx\_builtins.o pbx\_functions.o pbx\_hangup\_handler.o pbx\_switch.o pbx\_timing.o pbx\_variables.o pickup.o plc.o poll.o presencestate.o privacy.o rtp\_engine.o say.o sched.o sdp\_srtp.o security\_events.o sem.o sha1.o sip\_api.o slinfactory.o smoother.o sorcery.o sounds\_index.o srv.o stasis.o stasis\_bridges.o stasis\_cache.o stasis\_cache\_pattern.o stasis\_channels.o stasis\_endpoints.o stasis\_message.o stasis\_message\_router.o stasis\_system.o stdtime/localtime.o strcompat.o stringfields.o strings.o stun.o syslog.o taskprocessor.o tcptls.o tdd.o term.o test.o threadpool.o threadstorage.o timing.o translate.o udptl.o ulaw.o uri.o utils.o uuid.o version.o xml.o xmldoc.o editline/libedit.a -\> asterisk  
./libasteriskssl.so: undefined reference to `CRYPTO\_num\_locks’  
collect2: error: ld returned 1 exit status  
make[1]: \*\*\* [asterisk] Error 1  
make: \*\*\* [main] Error 2  
++++++++++++

Can any one please let me know urgently why this error happens. I am installing on centos 7 machine. Asterisk version I am trying to install is asterisk-13.18.2]# pwd  
/root/build/asterisk-13.18.2

---

<div class="post-metadata">

**Author:** ![jinubvarghese](https://avatars.discourse-cdn.com/v4/letter/j/958977/32.png) [@jinubvarghese](https://community.asterisk.org/u/jinubvarghese)\
**Post date:** [November 23, 2017, 12:01pm UTC](https://community.asterisk.org/t/error-installing-asterisk/72743/2 "2017-11-23T12:01:54Z")

</div>

If someone can give any tips regarding this issue, it would be great.

---

<div class="post-metadata">

**Author:** ![david551](https://avatars.discourse-cdn.com/v4/letter/d/3bc359/32.png) [@david551](https://community.asterisk.org/u/david551)\
**Post date:** [November 23, 2017, 12:34pm UTC](https://community.asterisk.org/t/error-installing-asterisk/72743/3 "2017-11-23T12:34:30Z")

</div>

Bump time for this forum is 24 hours.

You are presumably either missing or have the wrong version of the OpenSSL library.

Do you actually need encryption?

---

<div class="post-metadata">

**Author:** ![jinubvarghese](https://avatars.discourse-cdn.com/v4/letter/j/958977/32.png) [@jinubvarghese](https://community.asterisk.org/u/jinubvarghese)\
**Post date:** [November 23, 2017, 12:50pm UTC](https://community.asterisk.org/t/error-installing-asterisk/72743/4 "2017-11-23T12:50:26Z")

</div>

I don’t need encryption. If its disabled, will the compile work. If yes, can you please let me know how to disable it.

---

<div class="post-metadata">

**Author:** ![jinubvarghese](https://avatars.discourse-cdn.com/v4/letter/j/958977/32.png) [@jinubvarghese](https://community.asterisk.org/u/jinubvarghese)\
**Post date:** [November 24, 2017, 10:14am UTC](https://community.asterisk.org/t/error-installing-asterisk/72743/5 "2017-11-24T10:14:15Z")

</div>

Any help on this is greatly appreciated.

---

<div class="post-metadata">

**Author:** ![david551](https://avatars.discourse-cdn.com/v4/letter/d/3bc359/32.png) [@david551](https://community.asterisk.org/u/david551)\
**Post date:** [November 24, 2017, 10:37am UTC](https://community.asterisk.org/t/error-installing-asterisk/72743/6 "2017-11-24T10:37:04Z")

</div>

What options are compiled in depend on a combination of what build time libraries were available when configure was run and what you select in make menuconfig. I don’t have a recent source tree to experiment with, so it is up to you to look at what options are available.

---

<div class="post-metadata">

**Author:** ![jinubvarghese](https://avatars.discourse-cdn.com/v4/letter/j/958977/32.png) [@jinubvarghese](https://community.asterisk.org/u/jinubvarghese)\
**Post date:** [November 24, 2017, 11:20am UTC](https://community.asterisk.org/t/error-installing-asterisk/72743/7 "2017-11-24T11:20:20Z")

</div>

> [@david551](#):
>
> make menuconfi

Actually where will be the ssl option. I checked all the options in menuconfig but couldn’t see the option to disable it.

---

<div class="post-metadata">

**Author:** ![david551](https://avatars.discourse-cdn.com/v4/letter/d/3bc359/32.png) [@david551](https://community.asterisk.org/u/david551)\
**Post date:** [November 24, 2017, 1:04pm UTC](https://community.asterisk.org/t/error-installing-asterisk/72743/8 "2017-11-24T13:04:26Z")

</div>

Looks like it will try to use SSL if you have any feature that can use it and configure finds it.

I’d try ./configure --with-ssl=no to stop it looking for OpenSSL at all.

---

<div class="post-metadata">

**Author:** ![jinubvarghese](https://avatars.discourse-cdn.com/v4/letter/j/958977/32.png) [@jinubvarghese](https://community.asterisk.org/u/jinubvarghese)\
**Post date:** [November 24, 2017, 1:20pm UTC](https://community.asterisk.org/t/error-installing-asterisk/72743/9 "2017-11-24T13:20:49Z")

</div>

> [@david551](#):
>
> ./configure --with-ssl=no

I have already tried it but unfortunately it didn’t work. My asterisk version is 13.18.2 and openssl version is OpenSSL 1.0.2k-fips. Will these versions have compatibility version.

---

<div class="post-metadata">

**Author:** ![david551](https://avatars.discourse-cdn.com/v4/letter/d/3bc359/32.png) [@david551](https://community.asterisk.org/u/david551)\
**Post date:** [November 24, 2017, 2:29pm UTC](https://community.asterisk.org/t/error-installing-asterisk/72743/10 "2017-11-24T14:29:25Z")

</div>

I can’t help further. The last Asterisk I built was much older and I did want SSL.

---

<div class="post-metadata">

**Author:** ![sarthak667](https://avatars.discourse-cdn.com/v4/letter/s/e9c0ed/32.png) [@sarthak667](https://community.asterisk.org/u/sarthak667)\
**Post date:** [March 8, 2018, 5:02pm UTC](https://community.asterisk.org/t/error-installing-asterisk/72743/11 "2018-03-08T17:02:29Z")

</div>

Hi, have you got any solution for the problem?  
I am using CentOS 6 and Asterisk 13.x.  
I am facing the same problem:  
[LD] abstract\_jb.o acl.o adsi.o alaw.o alertpipe.o aoc.o app.o ast\_expr2.o ast\_expr2f.o asterisk.o astfd.o astmm.o astobj2.o astobj2\_container.o astobj2\_hash.o astobj2\_rbtree.o audiohook.o autochan.o autoservice.o backtrace.o bridge.o bridge\_after.o bridge\_basic.o bridge\_channel.o bridge\_roles.o bucket.o callerid.o ccss.o cdr.o cel.o channel.o channel\_internal\_api.o chanvars.o cli.o codec.o codec\_builtin.o config.o config\_options.o core\_local.o core\_unreal.o crypt.o data.o datastore.o db.o devicestate.o dial.o dns.o dnsmgr.o dsp.o endpoints.o enum.o event.o features.o features\_config.o file.o fixedjitterbuf.o format.o format\_cache.o format\_cap.o format\_compatibility.o frame.o framehook.o fskmodem.o global\_datastores.o hashtab.o heap.o http.o image.o indications.o io.o jitterbuf.o json.o libasteriskpj.o loader.o lock.o logger.o manager.o manager\_bridges.o manager\_channels.o manager\_endpoints.o manager\_mwi.o manager\_system.o max\_forwards.o md5.o media\_index.o message.o mixmonitor.o named\_acl.o named\_locks.o netsock.o netsock2.o optional\_api.o parking.o pbx.o pbx\_app.o pbx\_builtins.o pbx\_functions.o pbx\_hangup\_handler.o pbx\_switch.o pbx\_timing.o pbx\_variables.o pickup.o plc.o poll.o presencestate.o privacy.o rtp\_engine.o say.o sched.o sdp\_srtp.o security\_events.o sem.o sha1.o sip\_api.o slinfactory.o smoother.o sorcery.o sounds\_index.o srv.o stasis.o stasis\_bridges.o stasis\_cache.o stasis\_cache\_pattern.o stasis\_channels.o stasis\_endpoints.o stasis\_message.o stasis\_message\_router.o stasis\_system.o stdtime/localtime.o strcompat.o stringfields.o strings.o stun.o syslog.o taskprocessor.o tcptls.o tdd.o term.o test.o threadpool.o threadstorage.o timing.o translate.o udptl.o ulaw.o uri.o utils.o uuid.o version.o xml.o xmldoc.o editline/libedit.a -\> asterisk  
./libasteriskssl.so: undefined reference to `CRYPTO\_num\_locks’  
collect2: ld returned 1 exit status  
make[1]: \*\*\* [asterisk] Error 1  
make: \*\*\* [main] Error 2

Please help…
