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 64BDEDC061E for ; Mon, 29 Jun 2015 17:39:54 +0000 (UTC) Received: from mail-la0-f46.google.com (mail-la0-f46.google.com [209.85.215.46]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mail.alpinelinux.org (Postfix) with ESMTPS id 155A9DC0229 for ; Mon, 29 Jun 2015 17:39:53 +0000 (UTC) Received: by lagx9 with SMTP id x9so134513359lag.1 for ; Mon, 29 Jun 2015 10:39:51 -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=rY9pwKMNIry60laDAnV4NB+fAWQqeOM7OHT0NAhuutA=; b=mGG7QEJnS1/IoJ4MugEVkCZ1xBzatyVskwrXK2/HIt/17Y9dGT1V4Kf08rxX9txgYL mcLnfCNU7O2vNd+SUYM6Sn261rhjL3OyCswIpnXQC/DwXLRC0yjbxUi0jAPN8nkSw1WW I1Eqbn2Iaxw52mq86VShXltnDF5lY9OtBj64dHj8MoCaGCh/h2eriZ2wtrKsVb6IcH+a qlAKAWIVoc+ZpNghhhYaOSBNrG93QToRThJtMYWwqv2d1AREIrWJ88lRRuM7M8Rtsnin e+dO5Ikmzl27neGj1jpwxUfUATfEDw4cPB9AW94gDspXrq0AQrvS2QrTjZV0KlIxfy0I wGWg== X-Received: by 10.152.121.42 with SMTP id lh10mr15624584lab.0.1435599591805; Mon, 29 Jun 2015 10:39:51 -0700 (PDT) Received: from vostro ([83.145.235.202]) by mx.google.com with ESMTPSA id f5sm10938699lbd.41.2015.06.29.10.39.51 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 29 Jun 2015 10:39:51 -0700 (PDT) Sender: =?UTF-8?Q?Timo_Ter=C3=A4s?= Date: Mon, 29 Jun 2015 20:39:45 +0300 From: Timo Teras To: Michael Fox <415fox@gmail.com> Cc: alpine-devel Subject: [alpine-devel] Re: openssl link problem Message-ID: <20150629203945.5b5fa936@vostro> In-Reply-To: References: 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 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 ---