Thanks Ryan/Mathew.

I was trying to compile HAProxy 1.5.2 with SSL support on my box but was
facing below error.Am i missing some pre requisites.Could anybody help:
Step 1 : tar xzvf haproxy-1.5.2.tar.gz

Step 2 : cd haproxy-1.5.2

Step 3 : make TARGET=linux2628 USE_PCRE=1 USE_OPENSSL=1 USE_ZLIB=1

gcc -Iinclude -Iebtree -Wall  -O2 -g -fno-strict-aliasing
-DCONFIG_HAP_LINUX_SPLICE -DTPROXY -DCONFIG_HAP_LINUX_TPROXY
-DCONFIG_HAP_CRYPT -DUSE_ZLIB  -DENABLE_POLL -DENABLE_EPOLL
-DUSE_CPU_AFFINITY -DASSUME_SPLICE_WORKS -DUSE_ACCEPT4 -DNETFILTER
-DUSE_GETSOCKNAME -DUSE_OPENSSL  -DUSE_SYSCALL_FUTEX -DUSE_PCRE
-I/usr/local/include  -DCONFIG_HAPROXY_VERSION=\"1.5.2\"
-DCONFIG_HAPROXY_DATE=\"2014/07/12\" \
              -DBUILD_TARGET='"linux2628"' \
              -DBUILD_ARCH='""' \
              -DBUILD_CPU='"generic"' \
              -DBUILD_CC='"gcc"' \
              -DBUILD_CFLAGS='"-O2 -g -fno-strict-aliasing"' \
              -DBUILD_OPTIONS='"USE_ZLIB=1 USE_OPENSSL=1 USE_PCRE=1"' \
               -c -o src/haproxy.o src/haproxy.c
In file included from include/types/proxy.h:34,
                 from include/proto/log.h:32,
                 from include/common/cfgparse.h:29,
                 from src/haproxy.c:61:
include/common/regex.h:30:18: error: pcre.h: No such file or directory
include/common/regex.h:31:23: error: pcreposix.h: No such file or directory
In file included from include/types/proxy.h:34,
                 from include/proto/log.h:32,
                 from include/common/cfgparse.h:29,
                 from src/haproxy.c:61:
include/common/regex.h:38: error: expected specifier-qualifier-list before
âpcreâ
include/common/regex.h:67: error: expected â=â, â,â, â;â, âasmâ or
â__attribute__â before âpmatchâ
include/common/regex.h:80: warning: type defaults to âintâ in declaration
of âregmatch_tâ
include/common/regex.h:80: error: expected â;â, â,â or â)â before â*â token
include/common/regex.h: In function âregex_execâ:
include/common/regex.h:89: warning: implicit declaration of function
âpcre_execâ
include/common/regex.h:89: error: âconst struct my_regexâ has no member
named âregâ
include/common/regex.h:89: error: âconst struct my_regexâ has no member
named âextraâ
include/common/regex.h: In function âregex_exec2â:
include/common/regex.h:109: error: âconst struct my_regexâ has no member
named âregâ
include/common/regex.h:109: error: âconst struct my_regexâ has no member
named âextraâ
include/common/regex.h: At top level:
include/common/regex.h:125: error: expected declaration specifiers or â...â
before âregmatch_tâ
include/common/regex.h:127: error: expected declaration specifiers or â...â
before âregmatch_tâ
include/common/regex.h: In function âregex_freeâ:
include/common/regex.h:131: warning: implicit declaration of function
âpcre_freeâ
include/common/regex.h:131: error: âstruct my_regexâ has no member named
âregâ
In file included from include/types/acl.h:33,
                 from include/types/proxy.h:40,
                 from include/proto/log.h:32,
                 from include/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 include/common/cfgparse.h:29,
                 from src/haproxy.c:61:
include/types/listener.h: At top level:
include/types/listener.h:127: error: expected specifier-qualifier-list
before âSSL_CTXâ
In file included from include/types/session.h:35,
                 from include/types/queue.h:29,
                 from include/types/server.h:41,
                 from include/types/acl.h:33,
                 from include/types/proxy.h:40,
                 from include/proto/log.h:32,
                 from include/common/cfgparse.h:29,
                 from src/haproxy.c:61:
include/types/compression.h:28:18: error: zlib.h: No such file or directory
In file included from include/types/session.h:35,
                 from include/types/queue.h:29,
                 from include/types/server.h:41,
                 from include/types/acl.h:33,
                 from include/types/proxy.h:40,
                 from include/proto/log.h:32,
                 from include/common/cfgparse.h:29,
                 from src/haproxy.c:61:
include/types/compression.h:40: error: expected specifier-qualifier-list
before âz_streamâ
In file included from include/types/acl.h:33,
                 from include/types/proxy.h:40,
                 from include/proto/log.h:32,
                 from include/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:153: error: âMAX_WBITSâ undeclared here (not in a function)
src/haproxy.c: In function âdisplay_build_optsâ:
src/haproxy.c:254: error: expected â)â before âZLIB_VERSIONâ
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:308: warning: implicit declaration of function âpcre_versionâ
src/haproxy.c:308: 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


On Wed, Jul 16, 2014 at 9:18 AM, Ryan O'Hara <roh...@redhat.com> wrote:

> On Wed, Jul 16, 2014 at 09:07:48AM -0500, Kuldip Madnani wrote:
> > My Linux Distribution is :
> >
> > Red Hat Enterprise Linux Server release 6.3 (Santiago)
>
> HAProxy is not included in RHEL 6.3. You will need RHEL 6.4 with Load
> Balancer AddOn or RHEL7.
>
> Ryan
>
> > On Wed, Jul 16, 2014 at 9:03 AM, Mathew Levett <mat...@loadbalancer.org>
> > wrote:
> >
> > > Hi Kuldip,
> > >
> > > I think you may need to provide a little more information, it may be
> that
> > > your Linux distribution may already have haproxy in their repository.
> > > However the information supplied does not really show what your
> running.
> > > Do you know the distribution name?
> > >
> > > If its Debian then something like 'apt-get install haproxy' may be all
> you
> > > need, RedHat based distros may use yum so 'yum install haproxy'.
>  however
> > > its also not that hard to compile the latest version from source and is
> > > well documented in the download file.
> > >
> > > Usually on a list like this you need to supply as much information as
> > > possible so the people here can help.
> > >
> > > Kind Regards,
> > >
> > > Mathew
> > >
> > >
> > > On 16 July 2014 14:50, Kuldip Madnani <k.madnan...@gmail.com> wrote:
> > >
> > >> Hi,
> > >>
> > >> Where can i find the compiled binaries for haproxy.My system
> > >> configuration is this :
> > >>
> > >> $ uname -a
> > >> Linux  2.6.32-279.22.1.el6.x86_64 #1 SMP Sun Jan 13 09:21:40 EST 2013
> > >> x86_64 x86_64 x86_64 GNU/Linux
> > >>
> > >> Thanks & Regards,
> > >> Kuldip
> > >>
> > >>
> > >
>

Reply via email to