From owner-freebsd-questions@FreeBSD.ORG Tue Dec 9 01:44:40 2014 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 8B59058F for ; Tue, 9 Dec 2014 01:44:40 +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 740361C6 for ; Tue, 9 Dec 2014 01:44:40 +0000 (UTC) Received: from shellx.eskimo.com (shellx.eskimo.com [204.122.16.2]) by mail.eskimo.com (Postfix) with ESMTP id 58C26119D for ; Mon, 8 Dec 2014 17:44:34 -0800 (PST) Received: by shellx.eskimo.com (Postfix, from userid 51518) id 416EDCB5; Mon, 8 Dec 2014 17:44:34 -0800 (PST) Date: Mon, 8 Dec 2014 17:44:34 -0800 From: Joseph Olatt To: freebsd-questions@freebsd.org Subject: clang compilation issues on FreeBSD 10.1-STABLE Message-ID: <20141209014434.GA11497@shellx.eskimo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline 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 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 01:44:40 -0000 I'm able to compile the following code on FreeBSD 8.x and 9.x. However, on a FreeBSD 10.1-STABLE system, I'm not. The code is: /* Begin code */ #include int main(int argc, char * argv[]) { EVP_CIPHER_CTX ctx; /* Initialize the context */ EVP_CIPHER_CTX_init(&ctx); } /* End code */ /* 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 */ Anybody have any ideas how I can overcome the above error? I suspect it has something to do with clang/llvm on FreeBSD 10.x. Any suggestions/insight will be greatly appreciated.