From owner-freebsd-questions@FreeBSD.ORG Fri May 31 14:13:40 2013 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 7EB38B7B for ; Fri, 31 May 2013 14:13:40 +0000 (UTC) (envelope-from tijl@coosemans.org) Received: from mailrelay003.isp.belgacom.be (mailrelay003.isp.belgacom.be [195.238.6.53]) by mx1.freebsd.org (Postfix) with ESMTP id 1D6976B4 for ; Fri, 31 May 2013 14:13:39 +0000 (UTC) X-Belgacom-Dynamic: yes X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AngGAG+vqFFbsJmg/2dsb2JhbABagwm8LYJtgQAXdIIjAQEFViIBEAsOCgkWDwkDAgECASceBg0BBwEBiA26TY8cB4NXA5AAgSyXUoMROg Received: from 160.153-176-91.adsl-dyn.isp.belgacom.be (HELO kalimero.tijl.coosemans.org) ([91.176.153.160]) by relay.skynet.be with ESMTP; 31 May 2013 16:12:30 +0200 Received: from kalimero.tijl.coosemans.org (kalimero.tijl.coosemans.org [127.0.0.1]) by kalimero.tijl.coosemans.org (8.14.7/8.14.7) with ESMTP id r4VECTGW003016; Fri, 31 May 2013 16:12:29 +0200 (CEST) (envelope-from tijl@coosemans.org) Message-ID: <51A8AFC8.5030509@coosemans.org> Date: Fri, 31 May 2013 16:12:24 +0200 From: Tijl Coosemans User-Agent: Mozilla/5.0 (X11; FreeBSD i386; rv:17.0) Gecko/20130517 Thunderbird/17.0.6 MIME-Version: 1.0 To: Eduardo Morras Subject: Re: Clang cannot finds standard system lib libssl.a References: <20130531152633.dd6dfb61118c57184369c5de@yahoo.es> In-Reply-To: <20130531152633.dd6dfb61118c57184369c5de@yahoo.es> X-Enigmail-Version: 1.5.1 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="----enig2VLISHHMVPUOIUWGRPOGU" Cc: freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 31 May 2013 14:13:40 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) ------enig2VLISHHMVPUOIUWGRPOGU Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On 2013-05-31 15:26, Eduardo Morras wrote: > I'm trying to compile a single big file project written in C. It > compiled fine, without problems in my develop machine (FreeBSD 9.1 > STABLE, Clang3.2) but not on the server (FreeBSD 9.1 Release#0, Clang > 3.1). The app uses openssl dtls and links to system ssl libs. Am I > missing something? >=20 > For compile I do: >=20 > %clang gog_server.c -o gog_server -v -I /usr/include/openssl >=20 > but I get a lot of undefined references to whole openssl lib > functions, structs etc in Link phase: >=20 > ... > gog_server.c:(.text+0x9): undefined reference to `CRYPTO_num_locks' > gog_server.c:(.text+0x50): undefined reference to `CRYPTO_num_locks' > ... CRYPTO_num_locks is in libcrypto so try linking with that in addition to libssl. ------enig2VLISHHMVPUOIUWGRPOGU Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.20 (FreeBSD) iF4EAREIAAYFAlGor80ACgkQfoCS2CCgtitPugD/dSBAaRBaInX62ihlA8qtlFSi oaNCHN+2seYRg1C+AKkA/3SyYrGkJ4JUddJEkST8Lv4+I/+S3wWtUCjmtaH66mlW =7UOw -----END PGP SIGNATURE----- ------enig2VLISHHMVPUOIUWGRPOGU--