Baptiste <bedis9@...> writes:

> 
> Hi Steve,
> 
> Please try the procedure below:
> 
> download openssl library, untar it, go in the dir, then:
>     $ export STATICLIBSSL=/tmp/staticlibssl
>     $ ./config --prefix=$STATICLIBSSL no-shared
>     $ make && make install_sw
> 
> Then compile HAProxy:
>     $ make TARGET=linux26 USE_OPENSSL=1 SSL_INC=$STATICLIBSSL/include
> SSL_LIB=$STATICLIBSSL/lib ADDLIB=-ldl
> 
> That said, I usually install openssl in /opt.
> 
> Baptiste


Baptiste,

I followed those exact commands on a fresh CentOS 6.x server and it works.. 
(just for record if anyone runs into this thread I have added all the 
commands I have run)

Here is what I did.

wget http://www.openssl.org/source/openssl-1.0.1e.tar.gz
tar -xzvf openssl-1.0.1e.tar.gz
cd openssl-1.0.1e
export STATICLIBSSL=/tmp/staticlibssl
./config --prefix=$STATICLIBSSL no-shared
make && make install_sw

then
git clone http://master.formilux.org/git/people/willy/haproxy.git/
cd haproxy/
make TARGET=linux26 USE_OPENSSL=1 SSL_INC=$STATICLIBSSL/include 
SSL_LIB=$STATICLIBSSL/lib ADDLIB=-ldl
make install

haproxy -vv

HA-Proxy version 1.5-dev19-97 2013/11/04
Copyright 2000-2013 Willy Tarreau <[email protected]>

Build options :
  TARGET  = linux26
  CPU     = generic
  CC      = gcc
  CFLAGS  = -O2 -g -fno-strict-aliasing
  OPTIONS = USE_OPENSSL=1

Default settings :
  maxconn = 2000, bufsize = 16384, maxrewrite = 8192, maxpollevents = 200

Encrypted password support via crypt(3): yes
Built without zlib support (USE_ZLIB not set)
Compression algorithms supported : identity
Built with OpenSSL version : OpenSSL 1.0.1e 11 Feb 2013
Running on OpenSSL version : OpenSSL 1.0.1e 11 Feb 2013
OpenSSL library supports TLS extensions : yes
OpenSSL library supports SNI : yes
OpenSSL library supports prefer-server-ciphers : yes
Built without PCRE support (using libc's regex instead)
Built with transparent proxy support using: IP_TRANSPARENT IP_FREEBIND

Available polling systems :
      epoll : pref=300,  test result OK
       poll : pref=200,  test result OK
     select : pref=150,  test result OK
Total: 3 (3 usable), will use epoll.


Cheers!


Reply via email to