Hi everyone, I tried to compile the recent HAProxy 1.8 (pulled from the git repository) on Solaris 11.3 (x86) with these settings: gmake TARGET=solaris CPU=generic USE_TPROXY=1 USE_ZLIB=1 USE_OPENSSL=1 USE_PCRE=1 USE_GETADDRINFO=1 USE_REGPARM=1 DEFINE="-D_XOPEN_SOURCE=600"
"-D_XOPEN_SOURCE=600" is necessary on my Solaris installation as we're running GCC5 and the default Makefile ships with XOPEN_SOURCE=500 Despite a few warnings regarding SPIN_LOCK <command-line>:0:0: note: this is the location of the previous definition In file included from include/common/memory.h:30:0, from include/common/chunk.h:29, from include/common/standard.h:36, from include/common/ticks.h:56, from src/ev_poll.c:22: include/common/hathreads.h:75:0: warning: "SPIN_LOCK" redefined #define SPIN_LOCK(lbl, l) do { /* do nothing */ } while(0) ^ In file included from /usr/include/sys/t_lock.h:15:0, from /usr/include/sys/stream.h:18, from /usr/include/netinet/in.h:66, from /usr/include/sys/socket.h:29, from include/common/compat.h:29, from src/ev_poll.c:20: /usr/include/sys/machlock.h:60:0: note: this is the location of the previous definition #define SPIN_LOCK(pl) ((pl) > ipltospl(LOCK_LEVEL)) I get an error which doesn't let me compile this version of HAProxy: src/haproxy.c: In function ‘get_old_sockets’: src/haproxy.c:971:31: error: ‘NAME_MAX’ undeclared (first use in this function) tmpbuf = malloc(fd_nb * (1 + NAME_MAX + 1 + IFNAMSIZ + sizeof(int))); ^ src/haproxy.c:971:31: note: each undeclared identifier is reported only once for each function it appears in gmake: *** [src/haproxy.o] Error 1 Is this a known issue so far? Thanks and regards, Daniel