Ah, indeed, the GCC version provided on our server is 3.4.3. But the readme on 
https://github.com/haproxy/haproxy says "GCC between 2.95 and 4.8". Can the 
build be changed to continue supporting older GCC, or do the docs need an 
update?
Thanks for the quick help.

    On Monday, 16 July 2018, 8:58:40 pm AEST, Lukas Tribus <lu...@ltri.eu> 
wrote:  
 
 Hello,


On Mon, 16 Jul 2018 at 03:12, Thrawn <shell_layer-git...@yahoo.com.au> wrote:
>
> Update: If I disable threading with
>
> USE_THREAD=
>
> then the build gets much further, but still fails eventually with:
>
> gcc  -g -o haproxy src/ev_poll.o ebtree/ebtree.o ebtree/eb32sctree.o 
> ebtree/eb32tree.o ebtree/eb64tree.o ebtree/ebmbtree.o ebtree/ebsttree.o 
> ebtree/ebimtree.o ebtree/ebistree.o src/proto_http.o src/cfgparse.o 
> src/server.o src/stream.o src/flt_spoe.o src/stick_table.o src/stats.o 
> src/mux_h2.o src/checks.o src/haproxy.o src/log.o src/dns.o src/peers.o 
> src/standard.o src/sample.o src/cli.o src/stream_interface.o src/proto_tcp.o 
> src/backend.o src/proxy.o src/tcp_rules.o src/listener.o src/flt_http_comp.o 
> src/pattern.o src/cache.o src/filters.o src/vars.o src/acl.o src/payload.o 
> src/connection.o src/raw_sock.o src/proto_uxst.o src/flt_trace.o 
> src/session.o src/ev_select.o src/channel.o src/task.o src/queue.o 
> src/applet.o src/map.o src/frontend.o src/freq_ctr.o src/lb_fwlc.o 
> src/mux_pt.o src/auth.o src/fd.o src/hpack-dec.o src/memory.o src/lb_fwrr.o 
> src/lb_chash.o src/lb_fas.o src/hathreads.o src/chunk.o src/lb_map.o 
> src/xxhash.o src/regex.o src/shctx.o src/buffer.o src/action.o src/h1.o 
> src/compression.o src/pipe.o src/namespace.o src/sha1.o src/hpack-tbl.o 
> src/hpack-enc.o src/uri_auth.o src/time.o src/proto_udp.o src/arg.o 
> src/signal.o src/protocol.o src/lru.o src/hdr_idx.o src/hpack-huff.o 
> src/mailers.o src/h2.o src/base64.o src/hash.o -lnsl -lsocket  -lcrypt 
> -L../pcre/lib -Wl,-Bstatic -lpcreposix -lpcre -Wl,-Bdynamic
> Undefined                      first referenced
>  symbol                            in file
> __sync_sub_and_fetch                src/cache.o
> __sync_val_compare_and_swap        src/cache.o
> __sync_lock_test_and_set            src/cache.o
> ld: fatal: symbol referencing errors. No output written to haproxy
> collect2: ld returned 1 exit status
> gmake: *** [haproxy] Error 1

Are you sure you did a "make clean" before building with USE_THREAD= ?


Also please provide the output of "gcc --version".


lukas


On Monday, 16 July 2018, 11:12:34 pm AEST, Olivier Houchard 
<ohouch...@haproxy.com> wrote:

Hi,

I think your gcc is just too old. Those appeared around gcc 4.1 or so.

Regards,

Olivier
  

Reply via email to