Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build Failed #19

Closed
marciocamello opened this issue May 14, 2019 · 6 comments
Closed

Build Failed #19

marciocamello opened this issue May 14, 2019 · 6 comments
Assignees

Comments

@marciocamello
Copy link

Distributor ID: Ubuntu
Description: Ubuntu 18.04.2 LTS
Release: 18.04
Codename: bionic

  • Operating system : linux
  • Core count : 2
  • GCC version : 7.4.0
  • Build option : RELEASE
  • Total Projects count : 26

/usr/local/lib/libsrtp2.a(hmac_ossl.o): In function srtp_hmac_dealloc': hmac_ossl.c:(.text+0xd9): undefined reference to HMAC_CTX_cleanup'
/usr/local/lib/libsrtp2.a(hmac_ossl.o): In function srtp_hmac_alloc': hmac_ossl.c:(.text+0x296): undefined reference to HMAC_CTX_init'
collect2: error: ld returned 1 exit status
core/build_executable.mk:7: recipe for target 'bin/RELEASE/OvenMediaEngine' failed

@sfreet
Copy link
Contributor

sfreet commented May 14, 2019

Hello @marciocamello

Could you run the following command and show me the result?

benjamin:~$ openssl version 
OpenSSL 1.1.0g  2 Nov 2017
benjamin:~$ strings /usr/local/lib/libsrtp2.a | grep HMAC_CTX
HMAC_CTX_free
HMAC_CTX_new

@sfreet sfreet self-assigned this May 14, 2019
@marciocamello
Copy link
Author

marciocamello commented May 14, 2019

Hi @sfreet

OpenSSL 1.1.0g 2 Nov 2017

HMAC_CTX_cleanup
HMAC_CTX_init

@sfreet
Copy link
Contributor

sfreet commented May 14, 2019

Did you install libressl instead of libssl-dev?

@marciocamello
Copy link
Author

no, i am install libssl-dev

libssl-dev is already the newest version (1.1.0g-2ubuntu4.3).
Os seguintes pacotes foram instalados automaticamente e já não são necessários:
g++-5 javascript-common libass5 libboost-filesystem1.58.0 libboost-system1.58.0 libcapnp-0.5.3 libegl1-mesa libfdk-aac0 libgles2-mesa libjs-excanvas libllvm6.0 libprotobuf-lite9v5 libprotobuf9v5 libpython3.5
libtxc-dxtn-s2tc0 libva-drm1 libva-egl1 libva-glx1 libva-tpi1 libva-wayland1 libva-x11-1 libva1 libvpx3 libwayland-egl1-mesa x11proto-dri2-dev x11proto-gl-dev

@sfreet
Copy link
Contributor

sfreet commented May 14, 2019

The message shows that the srtp library refers to a previous version of the ssl library or libressl.

I get the following message now in the following.
(install libressl -> install libsrtp -> uninstall libressl -> install libssl-dev -> compile OvenmediaEngine)

/usr/local/lib/libsrtp2.a(hmac_ossl.o): In function `srtp_hmac_dealloc':
hmac_ossl.c:(.text+0xd9): undefined reference to `HMAC_CTX_cleanup'
/usr/local/lib/libsrtp2.a(hmac_ossl.o): In function `srtp_hmac_alloc':
hmac_ossl.c:(.text+0x235): undefined reference to `HMAC_CTX_init'
collect2: error: ld returned 1 exit status
core/build_executable.mk:7: recipe for target 'bin/DEBUG/OvenMediaEngine' failed

In this situation, I solved it as follow. (recompile and reinstall libsrtp)

$ sudo apt-get install libssl-dev => Try it again to make sure. 
$ (curl -OL https://github.com/cisco/libsrtp/archive/v2.2.0.tar.gz && tar xvfz v2.2.0.tar.gz && cd libsrtp-2.2.0 && ./configure --enable-openssl && make && sudo make install)

If libsrtp installation is finished and the output is as follows, it will work.

$ strings /usr/local/lib/libsrtp2.a | grep HMAC_CTX
HMAC_CTX_free
HMAC_CTX_new

(Try to run again "make clean" and "make" OvenMediaengine source)

If the issue is not resolved, please let me know again.

@marciocamello
Copy link
Author

Thanks, i am create a Dockerfile :D and resolve that

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants