Date: Fri, 31 May 2013 16:12:24 +0200 From: Tijl Coosemans <tijl@coosemans.org> To: Eduardo Morras <emorrasg@yahoo.es> Cc: freebsd-questions@freebsd.org Subject: Re: Clang cannot finds standard system lib libssl.a Message-ID: <51A8AFC8.5030509@coosemans.org> In-Reply-To: <20130531152633.dd6dfb61118c57184369c5de@yahoo.es> References: <20130531152633.dd6dfb61118c57184369c5de@yahoo.es>
next in thread | previous in thread | raw e-mail | index | archive | help
[-- Attachment #1 --] 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? > > For compile I do: > > %clang gog_server.c -o gog_server -v -I /usr/include/openssl > > but I get a lot of undefined references to whole openssl lib > functions, structs etc in Link phase: > > ... > 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. [-- Attachment #2 --] -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.20 (FreeBSD) iF4EAREIAAYFAlGor80ACgkQfoCS2CCgtitPugD/dSBAaRBaInX62ihlA8qtlFSi oaNCHN+2seYRg1C+AKkA/3SyYrGkJ4JUddJEkST8Lv4+I/+S3wWtUCjmtaH66mlW =7UOw -----END PGP SIGNATURE-----
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?51A8AFC8.5030509>
