Opened 9 years ago

Closed 9 years ago

#305 closed Bug / Defect (fixed)

configure script fails with static openssl libraries

Reported by: psagers Owned by:
Priority: major Milestone:
Component: Building / Compiling Version: OpenVPN 2.3.1 (Community Ed)
Severity: Not set (select this one, unless your'e a OpenVPN developer) Keywords: configure crypto SSL_CTX_new



  1. Build openssl with only static libraries (./Configure no-shared ...).
  2. Configure openvpn against the static openssl libraries.

Expect: Openssl is correctly detected.

Actual: Configure fails to detect openssl.

When openssl is used as static libraries, libssl can't be linked without libcrypto to go along with it. The openssl check attempts to find SSL_CTX_new with only -lssl. Fix is to add -lcrypto to the relevant "other libraries" argument in

Diff against a1010a849dc3642037eed17c88f73aa2fb162e4d:

@@ -761,7 +761,9 @@ PKG_CHECK_MODULES(
-    ]
+    ],
+    [],
+    [-lcrypto]

Change History (2)

comment:1 Changed 9 years ago by Samuli Seppänen

Heiko Hund gave this proposed change an ACK.

comment:2 Changed 9 years ago by Gert Döring

Resolution: fixed
Status: newclosed

committed and pushed to master and release/2.3

commit 30e358e5de352c8de04a955dc89f33e1710e9b97 (master)
commit 588c5fe795169c6b53e8e61f060714c1334b8e8e (release/2.3)

Note: See TracTickets for help on using tickets.