From owner-freebsd-questions@FreeBSD.ORG Tue Dec 9 02:16:22 2014 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 81771A86 for ; Tue, 9 Dec 2014 02:16:22 +0000 (UTC) Received: from mail.eskimo.com (mail.eskimo.com [204.122.16.4]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 6801D75B for ; Tue, 9 Dec 2014 02:16:22 +0000 (UTC) Received: from shellx.eskimo.com (shellx.eskimo.com [204.122.16.2]) by mail.eskimo.com (Postfix) with ESMTP id CFA11A04; Mon, 8 Dec 2014 18:16:21 -0800 (PST) Received: by shellx.eskimo.com (Postfix, from userid 51518) id B7348D3A; Mon, 8 Dec 2014 18:16:21 -0800 (PST) Date: Mon, 8 Dec 2014 18:16:21 -0800 From: Joseph Olatt To: andrew clarke Subject: Re: clang compilation issues on FreeBSD 10.1-STABLE Message-ID: <20141209021621.GA22065@shellx.eskimo.com> References: <20141209014434.GA11497@shellx.eskimo.com> <20141209015649.GA95798@ozzmosis.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20141209015649.GA95798@ozzmosis.com> User-Agent: Mutt/1.5.21 (2010-09-15) X-Virus-Scanned: clamav-milter 0.98.5 at mail.eskimo.com X-Virus-Status: Clean Cc: freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 09 Dec 2014 02:16:22 -0000 On Tue, Dec 09, 2014 at 12:56:49PM +1100, andrew clarke wrote: > On Mon 2014-12-08 17:44:34 UTC-0800, Joseph Olatt (joji@shellx.eskimo.com) wrote: > > > /* Begin compile command */ > > c++ tt.cpp -lssl > > /* End compile command */ > > > > > > /* Begin compile error */ > > /usr/bin/ld: //lib/libcrypto.so.7: invalid DSO for symbol `EVP_CIPHER_CTX_init' definition > > //lib/libcrypto.so.7: could not read symbols: Bad value > > c++: error: linker command failed with exit code 1 (use -v to see invocation) > > /* End compile error */ > > It links for me on 10.1-REL if I replace -lssl with -lcrypto. Yes, -lcrypto works. I was using -lssl all along since FreeBSD 8.x. Since EVP headers were under openssl (openssl/evp.h), I had used -lssl and it had worked till now... Thanks for your prompt response and help.