Hi,

> but my web server use https (ssl)so load-balancer have to provide
> this. download the haproxy-1.5-dev21and make this.but... error...
> 
> src/shctx.o: In function `atomic_dec':
> /root/haproxy-1.5-dev21/src/shctx.c:134: undefined reference to 
> `__sync_sub_and_fetch_4'
> src/shctx.o: In function `cmpxchg':
> /root/haproxy-1.5-dev21/src/shctx.c:129: undefined reference to 
> `__sync_val_compare_and_swap_4'

What linux distribution do you use? You need to install openssl-dev
packages, for example in Debian/Ubuntu with:
 apt-get install libssl-dev

Then you can just use the systems openssl version (which is the simpliest
thing to do; because you also benefit from the system updates).



Otherwise, if you want to go the static build approach:

> and re try  make TARGET=linux26 USE_OPENSSL=1
> ADDINC=-I/tmp/libsslbuild/include ADDLIB="-L/tmp/libsslbuild/lib -ldl"
> 
> but same error....

Did you fully compile openssl and install it in those paths?
What does:
 ls -l /tmp/libsslbuild/include
 ls -l /tmp/libsslbuild/lib

say?


README contains step by step instructions from line 93 to 102.



Regards,

Lukas


[1] http://haproxy.1wt.eu/git?p=haproxy.git;a=blob;f=README                     
                  

Reply via email to