My workplace is using HAProxy on Solaris (uname -a output: SunOS 5.10 
Generic_150400-49 sun4v sparc sun4v), and we can build up to 1.7.11 
successfully, but attempting to build 1.8 fails.
> MAKE=/usr/sfw/bin/gmake> $MAKE cleanrm -f *.[oas] src/*.[oas] ebtree/*.[oas] 
> haproxy test .build_opts .build_opts.newfor dir in . src include/* doc 
> ebtree; do rm -f $dir/*~ $dir/*.rej $dir/core; donerm -f 
> haproxy-1.8.12.tar.gz haproxy-1.8.12-8a200c7.tar.gzrm -f haproxy-1.8.12 
> haproxy-1.8.12-8a200c7 nohup.out gmon.out> $MAKE USE_STATIC_PCRE=1 
> ARCH=native TARGET=solaris PCREDIR=../pcre/bin/sh: pcre-config: not foundgcc 
> -Iinclude -Iebtree -Wall  -O2 -g -fno-strict-aliasing 
> -Wdeclaration-after-statement -fwrapv     -Wno-unused-label 
> -fomit-frame-pointer -DFD_SETSIZE=65536 -D_REENTRANT -D_XOPEN_SOURCE=500 
> -D__EXTENSIONS__      -DTPROXY -DCONFIG_HAP_CRYPT -DNEED_CRYPT_H 
> -DUSE_GETADDRINFO -DENABLE_POLL -DUSE_THREAD -DUSE_PCRE -I../pcre/include  
> -DCONFIG_HAPROXY_VERSION=\"1.8.12-8a200c7\" 
> -DCONFIG_HAPROXY_DATE=\"2018/06/27\" -c -o src/ev_poll.o src/ev_poll.cIn file 
> included 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/memory.h: In function 
> `pool_get_first':include/common/memory.h:138: warning: implicit declaration 
> of function `__sync_fetch_and_add'include/common/memory.h:138: warning: 
> implicit declaration of function `__sync_sub_and_fetch'src/ev_poll.c: In 
> function `_do_poll':src/ev_poll.c:235: warning: implicit declaration of 
> function `__sync_or_and_fetch'/usr/ccs/bin/as: "/var/tmp//ccTlH0pa.s", line 
> 18498: error: statement syntax/usr/ccs/bin/as: "/var/tmp//ccTlH0pa.s", line 
> 18498: error: statement syntax/usr/ccs/bin/as: "/var/tmp//ccTlH0pa.s", line 
> 18498: error: statement syntax/usr/ccs/bin/as: "/var/tmp//ccTlH0pa.s", line 
> 18507: error: statement syntax/usr/ccs/bin/as: "/var/tmp//ccTlH0pa.s", line 
> 18507: error: statement syntax/usr/ccs/bin/as: "/var/tmp//ccTlH0pa.s", line 
> 18507: error: statement syntax/usr/ccs/bin/as: "/var/tmp//ccTlH0pa.s", line 
> 2750: warning: use of DCTI couples is deprecatedgmake: *** [src/ev_poll.o] 
> Error 1
In case it helps, the first chunk of our 1.7.11 build output looks like:
rm -f *.[oas] src/*.[oas] ebtree/*.[oas] haproxy test .build_opts 
.build_opts.newfor dir in . src include/* doc ebtree; do rm -f $dir/*~ 
$dir/*.rej $dir/core; donerm -f haproxy-1.7.11.tar.gz haproxy-1.7.11.tar.gzrm 
-f haproxy-1.7.11 haproxy-1.7.11 nohup.out gmon.outrm -f 
haproxy-systemd-wrapper/bin/sh: pcre-config: not foundgcc -Iinclude -Iebtree 
-Wall  -O2 -g -fno-strict-aliasing -Wdeclaration-after-statement -fwrapv 
-fomit-frame-pointer -DFD_SETSIZE=65536 -D_REENTRANT -D_XOPEN_SOURCE=500 
-D__EXTENSIONS__      -DTPROXY -DCONFIG_HAP_CRYPT -DNEED_CRYPT_H 
-DUSE_GETADDRINFO -DENABLE_POLL -DUSE_PCRE -I../pcre/include  
-DCONFIG_HAPROXY_VERSION=\"1.7.11\" -DCONFIG_HAPROXY_DATE=\"2018/04/30\" \      
-DBUILD_TARGET='"solaris"' \      -DBUILD_ARCH='"native"' \      
-DBUILD_CPU='"generic"' \      -DBUILD_CC='"gcc"' \      -DBUILD_CFLAGS='"-O2 
-g -fno-strict-aliasing -Wdeclaration-after-statement -fwrapv 
-fomit-frame-pointer -DFD_SETSIZE=65536 -D_REENTRANT -D_XOPEN_SOURCE=500 
-D__EXTENSIONS__"' \      -DBUILD_OPTIONS='"USE_STATIC_PCRE=1"' \       -c -o 
src/haproxy.o src/haproxy.c/usr/ccs/bin/as: "/var/tmp//ccmxWzXP.s", line 935: 
warning: use of DCTI couples is deprecated/usr/ccs/bin/as: 
"/var/tmp//ccmxWzXP.s", line 2632: warning: use of DCTI couples is 
deprecated/usr/ccs/bin/as: "/var/tmp//ccmxWzXP.s", line 6708: warning: use of 
DCTI couples is deprecatedgcc -Iinclude -Iebtree -Wall  -O2 -g 
-fno-strict-aliasing -Wdeclaration-after-statement -fwrapv -fomit-frame-pointer 
-DFD_SETSIZE=65536 -D_REENTRANT -D_XOPEN_SOURCE=500 -D__EXTENSIONS__      
-DTPROXY -DCONFIG_HAP_CRYPT -DNEED_CRYPT_H -DUSE_GETADDRINFO -DENABLE_POLL 
-DUSE_PCRE -I../pcre/include  -DCONFIG_HAPROXY_VERSION=\"1.7.11\" 
-DCONFIG_HAPROXY_DATE=\"2018/04/30\" -c -o src/base64.o src/base64.c...

Is it possible to build 1.8 on our Solaris version, or is it just too old?

Reply via email to