Skip site navigation (1)Skip section navigation (2)
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
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--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?51A8AFC8.5030509>