Clang cannot finds standard system lib libssl.a
tijl at coosemans.org
Fri May 31 14:13:40 UTC 2013
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
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 228 bytes
Desc: OpenPGP digital signature
More information about the freebsd-questions