>-- Original Message -- > >On 20/02/18 12:47 PM, Norm Green wrote: >> On 2/20/2018 5:43 AM, Michael Wojcik wrote: >>> Not by default. The comments in /usr/include/sys/feature_tests.h (on a >>> Solaris system) explain this in excruciating detail, but in short you >>> need either -DPOSIX_C_SOURCE=200112L or -D_XOPEN_SOURCE=600 (or the >>> equivalent in the code) to compile with XPG6 (aka IEEE 1003.1-2001). >> Thanks for the suggestions Michael. Neither resolves the problem. In >> fact, adding -D_XOPEN_SOURCE=600 causes a new problem: >> >> /opt/solarisstudio12.3/bin/c99 -I. -Icrypto/include -Iinclude -m64 >> -xtarget=ultra2 -D_XOPEN_SOURCE=600 -xstrconst -Xa -DB_ENDIAN -DBN_DIV2W >> -KPIC -xildoff -mt -xcode=pic32 -g -DDSO_DLFCN -DHAVE_DLFCN_H >> -DOPENSSL_NO_STATIC_ENGINE -DOPENSSL_PIC -DOPENSSL_CPUID_OBJ >> -DOPENSSL_BN_ASM_MONT -DOPENSSL_BN_ASM_GF2m -DSHA1_ASM -DSHA256_ASM >> -DSHA512_ASM -DMD5_ASM -DAES_ASM -DGHASH_ASM -DECP_NISTZ256_ASM >> -DPOLY1305_ASM -DFILIO_H -DB_ENDIAN -DBN_DIV2W -D_REENTRANT >> -DOPENSSLDIR="\"/hamburg4/users/normg/gs64trunk/slow10/openssl_1.1/install10/ssl\"" >> -DENGINESDIR="\"/hamburg4/users/normg/gs64trunk/slow10/openssl_1.1/install10/lib/engines-1.1\"" >> -c -o crypto/bio/b_addr.o crypto/bio/b_addr.c >> "crypto/bio/b_addr.c", line 198: undefined symbol: NI_MAXHOST >> "crypto/bio/b_addr.c", line 198: variable length array can not be >> initialized: host >> "crypto/bio/b_addr.c", line 198: undefined symbol: NI_MAXSERV >> "crypto/bio/b_addr.c", line 198: variable length array can not be >> initialized: serv >> c99: acomp failed for crypto/bio/b_addr.c >> Makefile:881: recipe for target 'crypto/bio/b_addr.o' failed >> >> >> I also tried building with c99 instead of cc, without success. >> > I build my Solaris OpenSSL binaries using studo compiler 12.4 cc -xc99 Havent tried latest 1.1.1 snapshot yet though, probably a good time -- openssl-users mailing list To unsubscribe: https://mta.openssl.org/mailman/listinfo/openssl-users