On 15.11.2016 11:57, br...@apache.org wrote: > Author: brane > Date: Tue Nov 15 10:57:03 2016 > New Revision: 1769776 > > URL: http://svn.apache.org/viewvc?rev=1769776&view=rev > Log: > Make sure we don't link with the obsolete OpenSSL shipped with macOS. > > * SConstruct: Prepend OpenSSL include and library paths on macOS.
FYI, this is what happens without this change: $ scons -Y ../serf-trunk OPENSSL=/usr/local/opt/openssl check ... gcc -o test/serf_get test/serf_get.o libserf-2.a -L/usr/lib -L/usr/lib -L/usr/lib -L/usr/local/opt/openssl/lib -lssl -lcrypto -lz -lapr-1 -lpthread -laprutil-1 -lldap -llber -lexpat -liconv -lsqlite3 -lldap -llber Undefined symbols for architecture x86_64: "_SSL_get0_alpn_selected", referenced from: _ssl_decrypt in libserf-2.a(ssl_buckets.o) "_SSL_set_alpn_protos", referenced from: _serf_ssl_negotiate_protocol in libserf-2.a(ssl_buckets.o) ld: symbol(s) not found for architecture x86_64 That's because -L/usr/local/opt/openssl/lib appears after -L/usr/lib in the link line, so the linker picks up the old OpenSSL shared libs (version 0.9.8 something, I think). -- Brane