Hi there,

when trying to build the latest release 1.5.4 linking fails with a 
"Undefined symbol error:

$ make USE_OPENSSL=1 USE_PCRE=1 USE_ZLIB=1 TARGET=solaris
:
:
gcc -m32 -g -o haproxy src/haproxy.o src/sessionhash.o src/base64.o 
src/protocol.o src/uri_auth.o src/standard.o src/buffer.o src/log.o 
src/task.o src/chunk.o src/channel.o src/listener.o src/time.o src/fd.o 
src/pipe.o src/regex.o src/cfgparse.o src/server.o src/checks.o 
src/queue.o src/frontend.o src/proxy.o src/peers.o src/arg.o 
src/stick_table.o src/proto_uxst.o src/connection.o src/proto_http.o 
src/raw_sock.o src/appsession.o src/backend.o src/lb_chash.o 
src/lb_fwlc.o src/lb_fwrr.o src/lb_map.o src/lb_fas.o 
src/stream_interface.o src/dumpstats.o src/proto_tcp.o src/session.o 
src/hdr_idx.o src/ev_select.o src/signal.o src/acl.o src/sample.o 
src/memory.o src/freq_ctr.o src/auth.o src/compression.o src/payload.o 
src/hash.o src/pattern.o src/map.o src/ev_poll.o src/ssl_sock.o 
src/shctx.o ebtree/ebtree.o ebtree/eb32tree.o ebtree/eb64tree.o 
ebtree/ebmbtree.o ebtree/ebsttree.o ebtree/ebimtree.o ebtree/ebistree.o 
-lnsl -lsocket  -lcrypt  -lz  -lssl -lcrypto -L/web/apps/lib -lpcreposix 
-lpcre
Undefined                       first referenced
 symbol                             in file
__sync_sub_and_fetch                src/shctx.o
__sync_val_compare_and_swap         src/shctx.o
__sync_lock_test_and_set            src/shctx.o
ld: fatal: symbol referencing errors. No output written to haproxy
collect2: ld returned 1 exit status
make: *** [haproxy] Error 1


It worked until 1.5-dev22, after that the file src/shctx.c changed 
causing the above error.
Any ideas?

Regards
Sebastian


Reply via email to