We are planning to upgrade to *deviceatlas-enterprise-c-3.2.2.zip* and
*haproxy-2.9.6.tar.gz*

We follow the below steps , But got Error while haproxy make , highlighted
in Red color below


[root@govinda opt]# unzip deviceatlas-enterprise-c-3.2.2.zip

[root@govinda opt]# mv deviceatlas-enterprise-c-3.2.2  deviceatlas

[root@govinda opt]# cd /opt/deviceatlas/Src/

[root@govinda Src]# cmake . -DCMAKE_INSTALL_PREFIX=/opt/deviceatlas
-- The C compiler identification is GNU 4.8.5
-- The CXX compiler identification is GNU 4.8.5
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Found CURL: /usr/lib64/libcurl.so (found version "7.29.0")
-- Found ZLIB: /usr/lib64/libz.so (found version "1.2.7")
-- Performing Test HAVE_BUILTIN__BOOL
-- Performing Test HAVE_BUILTIN__BOOL - Success
-- Found OpenSSL: /usr/lib64/libssl.so;/usr/lib64/libcrypto.so (found
version "1.0.2k")
-- Found OpenSSL MD5
-- Performing Test HAS_CURLSSLSET
-- Performing Test HAS_CURLSSLSET - Failed
-- Could NOT find ZIP
-- Performing Test HAS_STD_ATOMICS
-- Performing Test HAS_STD_ATOMICS - Failed
-- Performing Test HAS_BUILTIN_ATOMICS
-- Performing Test HAS_BUILTIN_ATOMICS - Success
-- Performing Test HAS_ATTR_COLD
-- Performing Test HAS_ATTR_COLD - Success
-- Performing Test HAS_ATTR_ALLOC
-- Performing Test HAS_ATTR_ALLOC - Failed
-- Performing Test HAS_ATTR_NOSANITIZE
-- Performing Test HAS_ATTR_NOSANITIZE - Success
-- Performing Test HAS_BUILTIN_EXPECT
-- Performing Test HAS_BUILTIN_EXPECT - Success
-- Performing Test HAS_WIN32_ATOMICS
-- Performing Test HAS_WIN32_ATOMICS - Failed
-- Performing Test HAS_WIN32_ATTR_ALLOC
-- Performing Test HAS_WIN32_ATTR_ALLOC - Failed
-- Performing Test HAS_WIN32_UNUSED
-- Performing Test HAS_WIN32_UNUSED - Failed
--  version
-- Configuring done
-- Generating done
-- Build files have been written to: /opt/deviceatlas/Src


[root@govinda Src]# make
Scanning dependencies of target ci
[  6%] Building C object CMakeFiles/ci.dir/ci.c.o
[ 13%] Building C object CMakeFiles/ci.dir/dadwcom.c.o
[ 20%] Building C object CMakeFiles/ci.dir/dadwcurl.c.o
[ 26%] Building C object CMakeFiles/ci.dir/dadwarc.c.o
[ 33%] Building C object CMakeFiles/ci.dir/cisch.c.o
[ 40%] Building C object CMakeFiles/ci.dir/Os/ciunix.c.o
Linking C shared library libci.so
[ 40%] Built target ci
Scanning dependencies of target da
[ 46%] Building C object CMakeFiles/da.dir/Arch/amd64.c.o
[ 53%] Building C object CMakeFiles/da.dir/json.c.o
[ 60%] Building C object CMakeFiles/da.dir/dac.c.o
[ 66%] Building C object CMakeFiles/da.dir/dadwcom.c.o
[ 73%] Building C object CMakeFiles/da.dir/dadwcurl.c.o
[ 80%] Building C object CMakeFiles/da.dir/dadwarc.c.o
[ 86%] Building C object CMakeFiles/da.dir/dasch.c.o
[ 93%] Building CXX object CMakeFiles/da.dir/dacache.cpp.o
[100%] Building C object CMakeFiles/da.dir/Os/daunix.c.o
Linking CXX shared library libda.so
[100%] Built target da







[root@govinda opt]# tar -zxvf haproxy-2.9.6.tar.gz

[root@govinda opt]# cd haproxy-2.9.6

[root@govinda haproxy-2.9.6]# make TARGET=linux-glibc USE_PCRE=1
USE_OPENSSL=1 USE_ZLIB=1 USE_DEVICEATLAS=1
DEVICEATLAS_SRC=/opt/deviceatlas/Src/
  CC      src/ev_poll.o
  CC      src/ev_epoll.o
  CC      src/cpuset.o
  CC      src/ssl_sock.o
  CC      src/ssl_ckch.o
  CC      src/ssl_sample.o
  CC      src/ssl_crtlist.o
  CC      src/cfgparse-ssl.o
  CC      src/ssl_utils.o
  CC      src/jwt.o
  CC      src/ssl_ocsp.o
  CC      /opt/deviceatlas/Src//Os/daunix.o
  CC      /opt/deviceatlas/Src//dadwcom.o
  CC      /opt/deviceatlas/Src//dasch.o
  CC      /opt/deviceatlas/Src//json.o
  CC      /opt/deviceatlas/Src//dac.o
/opt/deviceatlas/Src//dac.c: In function âtoverdecâ:
/opt/deviceatlas/Src//dac.c:714:13: warning: implicit declaration of
function â__builtin_sadd_overflowâ [-Wimplicit-function-declaration]
             if (DATLAS_A_OFLOW(cur * 10, decrm, &r)) {
             ^
/opt/deviceatlas/Src//dac.c: In function âda_searchv_allocâ:
/opt/deviceatlas/Src//dac.c:5843:12:  warning:   missing braces around
initializer [-Wmissing-braces]
     struct da_lkp_handler ch = {0};
            ^
/opt/deviceatlas/Src//dac.c:5843:12:  warning: (near initialization for
âch.evidâ) [-Wmissing-braces]
/opt/deviceatlas/Src//dac.c: In function âda_searchid_allocâ:
/opt/deviceatlas/Src//dac.c:6102:9:  warning:  missing braces around
initializer [-Wmissing-braces]
         da_evidence_t ev[2] = {0};
         ^
/opt/deviceatlas/Src//dac.c:6102:9:  warning: (near initialization for
âev[0]â) [-Wmissing-braces]
/opt/deviceatlas/Src//dac.c: At top level:
cc1: warning: unrecognized command line option "-Wno-atomic-alignment"
[enabled by default]
cc1: warning: unrecognized command line option "-Wno-string-plus-int"
[enabled by default]
cc1: warning: unrecognized command line option "-Wno-cast-function-type"
[enabled by default]
cc1: warning: unrecognized command line option
"-Wno-address-of-packed-member" [enabled by default]
  CC      addons/deviceatlas/da.o
  CC      src/namespace.o
  CC      src/linuxcap.o
  CC      src/mux_h2.o
  CC      src/mux_fcgi.o
  CC      src/mux_h1.o
  CC      src/tcpcheck.o
  CC      src/stream.o
  CC      src/stats.o
  CC      src/http_ana.o
  CC      src/server.o
  CC      src/stick_table.o
  CC      src/sample.o
  CC      src/flt_spoe.o
  CC      src/tools.o
  CC      src/log.o
  CC      src/cfgparse.o
  CC      src/peers.o
  CC      src/backend.o
  CC      src/resolvers.o
  CC      src/cli.o
  CC      src/connection.o
  CC      src/proxy.o
  CC      src/http_htx.o
  CC      src/cfgparse-listen.o
  CC      src/pattern.o
  CC      src/check.o
  CC      src/haproxy.o
  CC      src/cache.o
  CC      src/stconn.o
  CC      src/http_act.o
  CC      src/http_fetch.o
  CC      src/http_client.o
  CC      src/listener.o
  CC      src/dns.o
  CC      src/vars.o
  CC      src/debug.o
  CC      src/tcp_rules.o
  CC      src/sink.o
  CC      src/h1_htx.o
  CC      src/task.o
  CC      src/mjson.o
  CC      src/h2.o
  CC      src/filters.o
  CC      src/server_state.o
  CC      src/payload.o
  CC      src/fcgi-app.o
  CC      src/map.o
  CC      src/htx.o
  CC      src/h1.o
  CC      src/pool.o
  CC      src/cfgparse-global.o
  CC      src/trace.o
  CC      src/tcp_sample.o
  CC      src/http_ext.o
  CC      src/flt_http_comp.o
  CC      src/mux_pt.o
  CC      src/flt_trace.o
  CC      src/mqtt.o
  CC      src/acl.o
  CC      src/sock.o
  CC      src/mworker.o
  CC      src/tcp_act.o
  CC      src/ring.o
  CC      src/session.o
  CC      src/proto_tcp.o
  CC      src/fd.o
  CC      src/channel.o
  CC      src/activity.o
  CC      src/queue.o
  CC      src/lb_fas.o
  CC      src/http_rules.o
  CC      src/extcheck.o
  CC      src/flt_bwlim.o
  CC      src/thread.o
  CC      src/http.o
  CC      src/lb_chash.o
  CC      src/applet.o
  CC      src/compression.o
  CC      src/raw_sock.o
  CC      src/ncbuf.o
  CC      src/frontend.o
  CC      src/errors.o
  CC      src/uri_normalizer.o
  CC      src/http_conv.o
  CC      src/lb_fwrr.o
  CC      src/sha1.o
  CC      src/proto_sockpair.o
  CC      src/mailers.o
  CC      src/lb_fwlc.o
  CC      src/ebmbtree.o
  CC      src/cfgcond.o
  CC      src/action.o
  CC      src/xprt_handshake.o
  CC      src/protocol.o
  CC      src/proto_uxst.o
  CC      src/proto_udp.o
  CC      src/lb_map.o
  CC      src/fix.o
  CC      src/ev_select.o
  CC      src/arg.o
  CC      src/sock_inet.o
  CC      src/event_hdl.o
  CC      src/mworker-prog.o
  CC      src/hpack-dec.o
  CC      src/cfgparse-tcp.o
  CC      src/sock_unix.o
  CC      src/shctx.o
  CC      src/proto_uxdg.o
  CC      src/fcgi.o
  CC      src/eb64tree.o
  CC      src/clock.o
  CC      src/chunk.o
  CC      src/cfgdiag.o
  CC      src/signal.o
  CC      src/regex.o
  CC      src/lru.o
  CC      src/eb32tree.o
  CC      src/eb32sctree.o
  CC      src/cfgparse-unix.o
  CC      src/hpack-tbl.o
  CC      src/ebsttree.o
  CC      src/ebimtree.o
  CC      src/base64.o
  CC      src/auth.o
  CC      src/uri_auth.o
  CC      src/time.o
  CC      src/ebistree.o
  CC      src/dynbuf.o
  CC      src/wdt.o
  CC      src/pipe.o
  CC      src/init.o
  CC      src/http_acl.o
  CC      src/hpack-huff.o
  CC      src/hpack-enc.o
  CC      src/dict.o
  CC      src/freq_ctr.o
  CC      src/ebtree.o
  CC      src/hash.o
  CC      src/dgram.o
  CC      src/version.o
  CC      src/proto_rhttp.o
  LD      haproxy
/opt/deviceatlas/Src//dac.o: In function `toverdec':
/opt/deviceatlas/Src//dac.c:714: undefined reference to
`__builtin_sadd_overflow'
collect2: error: ld returned 1 exit status
make: *** [haproxy] Error 1

-- 

Reply via email to