Undefined characters "_TLSv1_1_client_method" for x86_64 when compiling httpd on Mac os 10.8

Below is a detailed error message.

$ ./configure
$ make

then...

/usr/share/apr-1/build-1/libtool --silent --mode=link /Applications/Xcode.app/Contents/Developer/Toolchains/OSX10.8.xctoolchain/usr/bin/cc     -lssl -lcrypto -lpthread  \
         -o ab  ab.lo      -L/usr/lib -R/usr/lib -laprutil-1 -lexpat -liconv -lsqlite3 -lldap -llber -llber -L/usr/lib -R/usr/lib -lapr-1 -lpthread 

Undefined symbols for architecture x86_64:

"_TLSv1_1_client_method", referenced from:
_main in ab.o
"_TLSv1_2_client_method", referenced from:
_main in ab.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
+4
source share
2 answers

APR and apr-util are required dependencies.

So - before creating httpd on Mac,

set APR port

install apr-util port

It is resolved.

+3
source

In addition, you may need to set the variable 'OPENSSL_ROOT_DIR' to '/ opt / local'. You can do this by supplying '-DOPENSSL_ROOT_DIR = / opt / local' as the command line argument when running cmake.

+1
source

All Articles