Hello everybody,


I don't know if this is the right "context" to submit this question.

How ever I'm having problem with building haproxy 1.5.5 with SSL support.

I'm running SLES 11 SP3 with the latest updates via YAST2.

Building without SSL support works fine.

I use the syntax:

make TARGET=linux2628 USE_OPENSSL=1

And here is the output:

gcc -Iinclude -Iebtree -Wall -O2 -g -fno-strict-aliasing -DCONFIG_HAP_LINUX_SPLICE -DTPROXY -DCONFIG_HAP_LINUX_TPROXY -DCONFIG_HAP_CRYPT -DENABLE_POLL -DENABLE_EPOLL -DUSE_CPU_AFFINITY -DASSUME_SPLICE_WORKS -DUSE_ACCEPT4 -DNETFILTER -DUSE_GETSOCKNAME -DUSE_OPENSSL -DUSE_SYSCALL_FUTEX -DCONFIG_HAPROXY_VERSION=\"1.5.5\" -DCONFIG_HAPROXY_DATE=\"2014/10/07\" \
-DBUILD_TARGET='"linux2628"' \
-DBUILD_ARCH='""' \
-DBUILD_CPU='"generic"' \
-DBUILD_CC='"gcc"' \
-DBUILD_CFLAGS='"-O2 -g -fno-strict-aliasing"' \
-DBUILD_OPTIONS='"USE_OPENSSL=1"' \
-c -o src/haproxy.o src/haproxy.c
In file included from include/types/acl.h:33,
from include/types/proxy.h:40,
from include/proto/log.h:32,
from includehttps://www.novell.comhttps://www.novell.com/common/cfgparse.h:29,
from src/haproxy.c:61:
include/types/server.h:29:25: error: openssl/ssl.h: No such file or directory
In file included from include/types/connection.h:30,
from include/types/server.h:36,
from include/types/acl.h:33,
from include/types/proxy.h:40,
from include/proto/log.h:32,
from includehttps://www.novell.comhttps://www.novell.com/common/cfgparse.h:29,
from src/haproxy.c:61:
include/types/listener.h:127: error: expected specifier-qualifier-list before SSL_CTX
In file included from include/types/acl.h:33,
from include/types/proxy.h:40,
from include/proto/log.h:32,
from includehttps://www.novell.comhttps://www.novell.com/common/cfgparse.h:29,
from src/haproxy.c:61:
include/types/server.h:207: error: expected specifier-qualifier-list before SSL_CTX
In file included from src/haproxy.c:90:
include/proto/listener.h: In function bind_conf_alloc:
include/proto/listener.h:130: error: struct bind_conf has no member named file
include/proto/listener.h:131: error: struct bind_conf has no member named line
include/proto/listener.h:133: error: struct bind_conf has no member named by_fe
include/proto/listener.h:133: error: struct bind_conf has no member named by_fe
include/proto/listener.h:133: error: struct bind_conf has no member named by_fe
include/proto/listener.h:133: error: struct bind_conf has no member named by_fe
include/proto/listener.h:133: error: struct bind_conf has no member named by_fe
include/proto/listener.h:135: error: struct bind_conf has no member named arg
include/proto/listener.h:137: error: struct bind_conf has no member named ux
include/proto/listener.h:138: error: struct bind_conf has no member named ux
include/proto/listener.h:139: error: struct bind_conf has no member named ux
include/proto/listener.h:141: error: struct bind_conf has no member named listeners
include/proto/listener.h:141: error: struct bind_conf has no member named listeners
include/proto/listener.h:141: error: struct bind_conf has no member named listeners
In file included from src/haproxy.c:107:
include/proto/ssl_sock.h: At top level:
include/proto/ssl_sock.h:46: error: expected declaration specifiers or ... before SSL_CTX
src/haproxy.c: In function display_build_opts:
src/haproxy.c:272: error: expected ) before OPENSSL_VERSION_TEXT
src/haproxy.c:274: warning: implicit declaration of function SSLeay_version
src/haproxy.c:274: error: SSLEAY_VERSION undeclared (first use in this function)
src/haproxy.c:274: error: (Each undeclared identifier is reported only once
src/haproxy.c:274: error: for each function it appears in.)
src/haproxy.c:275: error: OPENSSL_VERSION_NUMBER undeclared (first use in this function)
src/haproxy.c:275: warning: implicit declaration of function SSLeay
src/haproxy.c:275: warning: format %s expects type char *, but argument 2 has type int
src/haproxy.c: In function deinit:
src/haproxy.c:1188: error: struct bind_conf has no member named by_fe
src/haproxy.c:1188: error: struct bind_conf has no member named by_fe
src/haproxy.c:1188: error: struct bind_conf has no member named by_fe
src/haproxy.c:1188: warning: left-hand operand of comma expression has no effect
src/haproxy.c:1188: error: struct bind_conf has no member named by_fe
src/haproxy.c:1188: error: struct bind_conf has no member named by_fe
src/haproxy.c:1188: error: struct bind_conf has no member named by_fe
src/haproxy.c:1196: error: struct bind_conf has no member named file
src/haproxy.c:1197: error: struct bind_conf has no member named arg
src/haproxy.c:1198: error: struct bind_conf has no member named by_fe
src/haproxy.c:1198: warning: type defaults to int in declaration of __ret
src/haproxy.c:1198: error: struct bind_conf has no member named by_fe
src/haproxy.c:1198: error: struct bind_conf has no member named by_fe
src/haproxy.c:1198: error: struct bind_conf has no member named by_fe
src/haproxy.c:1198: error: struct bind_conf has no member named by_fe
src/haproxy.c:1198: error: struct bind_conf has no member named by_fe
make: *** [src/haproxy.o] Error 1


I'm I missing some libs or sources from OpenSSL ?

And/or need to point them out so that make/gcc can find them?

I have copy haproxy from another machine where I did the build process on.

But I would like to be able to build it on my SLES 11 SP3 installation.


Thank you in advance.