got error when haproxy 1.8.12 compile
OS: CentOS 7.5.1804
GCC 4.8.5 20150623
Lua 5.3.4
gcc -lcrypt -lssl -lcrypto -L/usr/local/lib64/ -llua -lm -L/usr/lib64 -lpcreposix -lpcre -o haproxy src/ev_poll.o src/ev_epoll.o src/ssl_sock.o src/hlua.o src/hlua_fcn.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 -lcrypt -lz -ldl -lpthread -L/lib64 -lssl -lcrypto -ldl -lpthread -Wl,–export-dynamic -L/usr/local/lib64 -llua -lm -ldl -lsystemd -L/usr/local/lib -lpcreposix -lpcre
src/hlua.o: In function hlua_yieldk': haproxy-1.8.12/src/hlua.c:855: undefined reference to
lua_yieldk’
src/hlua.o: In function hlua_hook': haproxy-1.8.12/src/hlua.c:1005: undefined reference to
lua_isyieldable’
src/hlua.o: In function hlua_yieldk': haproxy-1.8.12/src/hlua.c:855: undefined reference to
lua_yieldk’
src/hlua.o: In function hlua_sleep_yield': haproxy-1.8.12/src/hlua.c:5502: undefined reference to
lua_tointegerx’
src/hlua.o: In function hlua_yieldk': haproxy-1.8.12/src/hlua.c:855: undefined reference to
lua_yieldk’
src/hlua.o: In function hlua_applet_tcp_recv_yield': haproxy-1.8.12/src/hlua.c:3748: undefined reference to
lua_copy’
src/hlua.o: In function hlua_yieldk': haproxy-1.8.12/src/hlua.c:855: undefined reference to
lua_yieldk’
haproxy-1.8.12/src/hlua.c:855: undefined reference to lua_yieldk' haproxy-1.8.12/src/hlua.c:855: undefined reference to
lua_yieldk’
haproxy-1.8.12/src/hlua.c:855: undefined reference to lua_yieldk' haproxy-1.8.12/src/hlua.c:855: undefined reference to
lua_yieldk’
src/hlua.o: In function hlua_applet_http_recv_yield': haproxy-1.8.12/src/hlua.c:4246: undefined reference to
lua_copy’
src/hlua.o: In function hlua_yieldk': haproxy-1.8.12/src/hlua.c:855: undefined reference to
lua_yieldk’
haproxy-1.8.12/src/hlua.c:855: undefined reference to lua_yieldk' haproxy-1.8.12/src/hlua.c:855: undefined reference to
lua_yieldk’
haproxy-1.8.12/src/hlua.c:855: undefined reference to lua_yieldk' haproxy-1.8.12/src/hlua.c:855: undefined reference to
lua_yieldk’
src/hlua.o: In function hlua_applet_http_start_response': haproxy-1.8.12/src/hlua.c:4526: undefined reference to
lua_tointegerx’
src/hlua.o: In function hlua_applet_http_addheader': haproxy-1.8.12/src/hlua.c:4401: undefined reference to
lua_rawlen’
src/hlua.o: In function hlua_yieldk': haproxy-1.8.12/src/hlua.c:855: undefined reference to
lua_yieldk’
haproxy-1.8.12/src/hlua.c:855: undefined reference to lua_yieldk' haproxy-1.8.12/src/hlua.c:855: undefined reference to
lua_yieldk’
src/hlua.o: In function hlua_load': haproxy-1.8.12/src/hlua.c:7317: undefined reference to
luaL_loadfilex’
haproxy-1.8.12/src/hlua.c:7325: undefined reference to lua_pcallk' src/hlua.o: In function
hlua_lua2arg’:
haproxy-1.8.12/src/hlua.c:420: undefined reference to lua_tointegerx' src/hlua.o: In function
hlua_lua2smp’:
haproxy-1.8.12/src/hlua.c:553: undefined reference to lua_tointegerx' src/hlua.o: In function
hlua_http_get_headers’:
haproxy-1.8.12/src/hlua.c:4738: undefined reference to lua_rawlen' src/hlua.o: In function
hlua_yieldk’:
haproxy-1.8.12/src/hlua.c:855: undefined reference to lua_yieldk' haproxy-1.8.12/src/hlua.c:855: undefined reference to
lua_yieldk’
haproxy-1.8.12/src/hlua.c:855: undefined reference to lua_yieldk' haproxy-1.8.12/src/hlua.c:855: undefined reference to
lua_yieldk’
haproxy-1.8.12/src/hlua.c:855: undefined reference to lua_yieldk' src/hlua.o: In function
hlua_applet_http_send’:
haproxy-1.8.12/src/hlua.c:4338: undefined reference to lua_rotate' src/hlua.o: In function
hlua_yieldk’:
haproxy-1.8.12/src/hlua.c:855: undefined reference to lua_yieldk' haproxy-1.8.12/src/hlua.c:855: undefined reference to
lua_yieldk’
haproxy-1.8.12/src/hlua.c:855: undefined reference to lua_yieldk' haproxy-1.8.12/src/hlua.c:855: undefined reference to
lua_yieldk’
haproxy-1.8.12/src/hlua.c:855: undefined reference to lua_yieldk' src/hlua.o:haproxy-1.8.12/src/hlua.c:855: more undefined references to
lua_yieldk’ follow
src/hlua.o: In function hlua_socket_receive_yield': haproxy-1.8.12/src/hlua.c:1745: undefined reference to
lua_tointegerx’
src/hlua.o: In function hlua_yieldk': haproxy-1.8.12/src/hlua.c:855: undefined reference to
lua_yieldk’
src/hlua.o: In function hlua_socket_receive': haproxy-1.8.12/src/hlua.c:1952: undefined reference to
lua_copy’
**haproxy-1.8.12/src/hlua.c:1941: undefined reference to lua_tointegerx'** src/hlua.o: In function
hlua_yieldk’:
haproxy-1.8.12/src/hlua.c:855: undefined reference to lua_yieldk'** src/hlua.o: In function
hlua_socket_connect’:
haproxy-1.8.12/src/hlua.c:2420: undefined reference to luaL_prepbuffsize'** src/hlua.o: In function
hlua_init’:
haproxy-1.8.12/src/hlua.c:7545: undefined reference to lua_setglobal'** **haproxy-1.8.12/src/hlua.c:7591: undefined reference to
lua_setglobal’
src/hlua.o: In function hlua_yieldk':** **haproxy-1.8.12/src/hlua.c:855: undefined reference to
lua_yieldk’
src/hlua_fcn.o: In function hlua_fcn_post_init': **haproxy-1.8.12/src/hlua_fcn.c:938: undefined reference to
lua_getglobal’
src/hlua_fcn.o: In function hlua_fcn_reg_core_fcn': **haproxy-1.8.12/src/hlua_fcn.c:1248: undefined reference to
lua_setglobal’
collect2: error: ld returned 1 exit status