[sr-dev] git:master:432c1e3b: modules/websocket: ensure linkage to libcrypto

Andrey Utkin andrey.od.utkin at gmail.com
Mon Dec 14 15:09:27 CET 2015


Module: kamailio
Branch: master
Commit: 432c1e3b0f7ff6a9fa11e6d8ed8b897dc3f9246f
URL: https://github.com/kamailio/kamailio/commit/432c1e3b0f7ff6a9fa11e6d8ed8b897dc3f9246f

Author: Andrey Utkin <andrey.od.utkin at gmail.com>
Committer: Andrey Utkin <andrey.od.utkin at gmail.com>
Date: 2015-12-12T22:37:15+02:00

modules/websocket: ensure linkage to libcrypto

Fixes linkage for Ubuntu Wily (15.10).
The issue manifests itself as "undefined symbol: SHA1" error at module loading.

---

Modified: modules/websocket/Makefile

---

Diff:  https://github.com/kamailio/kamailio/commit/432c1e3b0f7ff6a9fa11e6d8ed8b897dc3f9246f.diff
Patch: https://github.com/kamailio/kamailio/commit/432c1e3b0f7ff6a9fa11e6d8ed8b897dc3f9246f.patch

---

diff --git a/modules/websocket/Makefile b/modules/websocket/Makefile
index 915c81a..010aa90 100644
--- a/modules/websocket/Makefile
+++ b/modules/websocket/Makefile
@@ -13,6 +13,12 @@ SSL_BUILDER=$(shell \
 	if pkg-config --exists libssl; then \
 		echo 'pkg-config libssl'; \
 	fi)
+ifneq($(SSL_BUILDER),)
+SSL_BUILDER+=$(shell \
+	if pkg-config --exists libcrypto; then \
+		echo 'libcrypto'; \
+	fi)
+endif
 endif
 
 ifneq ($(SSL_BUILDER),)




More information about the sr-dev mailing list