X-Original-To: alpine-devel@mail.alpinelinux.org Delivered-To: alpine-devel@mail.alpinelinux.org Received: from mail.alpinelinux.org (dallas-a1.alpinelinux.org [127.0.0.1]) by mail.alpinelinux.org (Postfix) with ESMTP id 070F9DC061E for ; Mon, 29 Jun 2015 18:51:40 +0000 (UTC) Received: from mail-la0-f52.google.com (mail-la0-f52.google.com [209.85.215.52]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mail.alpinelinux.org (Postfix) with ESMTPS id 8DCF9DC0229 for ; Mon, 29 Jun 2015 18:51:39 +0000 (UTC) Received: by lagh6 with SMTP id h6so64850381lag.2 for ; Mon, 29 Jun 2015 11:51:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:date:from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-type:content-transfer-encoding; bh=fyXXULrTPUxQ7ss+oef0bpkxsfqIuMH1ivxj+jqf5rc=; b=L1K9BrRsaKtl3biGgpu34vYG4YZuH7bu9IPyh7kmFXrMkVPeBpTJWQR5ij3655iceW 6iD3Qk8RJkFKgMflVd4y9CJGGkkfTppAXJRbruWr9oM4ZpJ0HS6uzHAnKpKmMXunUKm7 ccejotPAEtQ3eqi9WS+rncD+F9xL068zlqBJGAMBeiiRmanEB4ESO39076atSPrv2zBX W8oQRADQ2u/ikF3oIsSGLvWKK706vvH/oWrBoz7On7lMWJRJ5/BkCQgbPPxxAw6X0zuu hYENxuD8PNv3mDmAk9gBoWIte2TrLuJ3wjVETBzVjeHMDx/xU5qcW8msD4YghoD1N0yC Cfqg== X-Received: by 10.112.210.137 with SMTP id mu9mr11922961lbc.95.1435603896892; Mon, 29 Jun 2015 11:51:36 -0700 (PDT) Received: from vostro ([83.145.235.202]) by mx.google.com with ESMTPSA id w7sm11028458lag.42.2015.06.29.11.51.36 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 29 Jun 2015 11:51:36 -0700 (PDT) Sender: =?UTF-8?Q?Timo_Ter=C3=A4s?= Date: Mon, 29 Jun 2015 21:51:35 +0300 From: Timo Teras To: Michael Fox <415fox@gmail.com> Cc: alpine-devel Subject: [alpine-devel] Re: openssl link problem Message-ID: <20150629215135.6bb97c0c@vostro> In-Reply-To: References: <20150629203945.5b5fa936@vostro> X-Mailer: Claws Mail 3.11.1 (GTK+ 2.24.25; x86_64-alpine-linux-musl) X-Mailinglist: alpine-devel Precedence: list List-Id: Alpine Development List-Unsubscribe: List-Post: List-Help: List-Subscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV using ClamSMTP On Mon, 29 Jun 2015 11:09:10 -0700 Michael Fox <415fox@gmail.com> wrote: > So just to clarify, adding `-lcrypto` is the correct solution? Yes. > On Mon, Jun 29, 2015 at 10:39 AM, Timo Teras > wrote: > > > On Mon, 29 Jun 2015 10:12:18 -0700 > > Michael Fox <415fox@gmail.com> wrote: > > > > > I encounter a problem linking with openssl: > > > > > > //lib/libssl.so.1.0.0: undefined reference to `EVP_idea_cbc' > > > > > > The symbol is provided by libcrypto and adding -lcrypto to the > > > link fixes it. The thing is that openssl already links libcrypto: > > > > > > al64:~/src/nix$ ldd //lib/libssl.so.1.0.0 > > > ldd (0x6f765b6cf000) > > > libcrypto.so.1.0.0 => /lib/libcrypto.so.1.0.0 (0x6f765b046000) > > > libc.musl-x86_64.so.1 => ldd (0x6f765b6cf000) > > > libz.so.1 => /lib/libz.so.1 (0x6f765ae30000) > > > > > > So I'm out of ideas ... > > > > If you are using the symbol, you need to explicitly link against it. > > We pass --as-needed to linker by default. --- Unsubscribe: alpine-devel+unsubscribe@lists.alpinelinux.org Help: alpine-devel+help@lists.alpinelinux.org ---