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.
signature.asc
Description: OpenPGP digital signature