Hi,
I'm trying to compile haproxy under cygwin but get problem.

I have try google search to resolve the probme but can't get any.

Have anyone can let me know what's wrong ?

Jeffrey_Chen@jeffrey_chen ~/haproxy-1.9.4
$  make TARGET=cygwin ARCH=x86_64 CPU=generic USE_THREAD=1
USE_REGPARM=1 USE_PCRE=1 USE_OPENSSL=1 USE_ZLIB=1 TRACE=1
LDFLAGS="-Wl,--allow-multiple-definition"
  LD      haproxy
src/haproxy.o:haproxy.c:(.rdata$.refptr.__stop_init_STG_INIT[.refptr.__stop_init_STG_INIT]+0x0):
undefined reference to `__stop_init_STG_INIT'
src/haproxy.o:haproxy.c:(.rdata$.refptr.__stop_init_STG_ALLOC[.refptr.__stop_init_STG_ALLOC]+0x0):
undefined reference to `__stop_init_STG_ALLOC'
src/haproxy.o:haproxy.c:(.rdata$.refptr.__start_init_STG_INIT[.refptr.__start_init_STG_INIT]+0x0):
undefined reference to `__start_init_STG_INIT'
src/haproxy.o:haproxy.c:(.rdata$.refptr.__start_init_STG_ALLOC[.refptr.__start_init_STG_ALLOC]+0x0):
undefined reference to `__start_init_STG_ALLOC'
collect2: error: ld returned 1 exit status
make: *** [Makefile:976: haproxy] Error 1

cygwin gcc version : 7.4.0

        ld version : 2.29.1.20171006

also have try gcc version : 8.3.0

I have use the same environment to build 1.8.19 haven't any problem.


Thank You,

Jeffrey Chen

Reply via email to