[openssl-dev] [openssl.org #4314] openssl-1.1.0-pre3 make error on Solaris 10 x86

Kiyoshi KANAZAWA via RT rt at openssl.org
Wed Feb 17 13:52:55 UTC 2016


Hello,

Openssl-1.1.0-pre3 make fails on Solaris 10 x86, such as
make[2]: Entering directory '/tmp/openssl-1.1.0-pre3/crypto/bio'
gcc -I.. -I../.. -I../modes -I../include -I../../include  -DDSO_DLFCN -DHAVE_DLFCN_H -DOPENSSL_T
HREADS -DOPENSSL_PIC -DOPENSSL_BN_ASM_PART_WORDS -DOPENSSL_IA32_SSE2 -DOPENSSL_BN_ASM_MONT -DOPE
NSSL_BN_ASM_GF2m -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DMD5_ASM -DRMD160_ASM -DAES_ASM -DVPAES_A
SM -DGHASH_ASM -DECP_NISTZ256_ASM -DPOLY1305_ASM -DOPENSSLDIR="\"/usr/local/ssl\"" -DENGINESDIR=
"\"/usr/local/lib/engines\"" -fPIC  -pthread -DFILIO_H -O3 -fomit-frame-pointer -DWHIRLPOOL_ASM 
  -c -o bss_fd.o bss_fd.c
bio_lcl.h:60:24: error: expected identifier or '(' before numeric constant
     struct sockaddr_un sun;
                        ^
In file included from bss_fd.c:61:0:
bio_lcl.h:62:1: warning: no semicolon at end of struct or union [enabled by default]
 };


This happens because "sun" is #defined as 1 on Solaris.
On the other hand, the same name is used in crypto/bio/bio_lcl.h,
    53  union bio_addr_st {
    54      struct sockaddr sa;
    55  # ifdef AF_INET6
    56      struct sockaddr_in6 sin6;
    57  # endif
    58      struct sockaddr_in sin;
    59  # ifdef AF_UNIX
    60      struct sockaddr_un sun;
    61  # endif
    62  };
    63  #endif


Best regards,

--- Kiyoshi <yoi_no_myoujou at yahoo.co.jp>


-- 
Ticket here: http://rt.openssl.org/Ticket/Display.html?id=4314
Please log in as guest with password guest if prompted



More information about the openssl-dev mailing list