[openssl-dev] OpenSSL 1.1 pre 3 compilation errors on Solaris

Erik Forsberg erik at efca.com
Tue Feb 16 07:28:22 UTC 2016


do not use any variable, structure named "sun"
When compiling on any SunOS/Solaris platform, preprocessor replaces it with 1

This fragment in crypto/bio/bio_lcl.h breaks all Solaris builds using cc

union bio_addr_st {
    struct sockaddr sa;
# ifdef AF_INET6
    struct sockaddr_in6 sin6;
# endif
    struct sockaddr_in sin;
# ifdef AF_UNIX
    struct sockaddr_un sun;
# endif
};

Suggest renaming both the sin and sun members to s_in and s_un
for readability.

crypto/bio/b_addr.c needs corresponding changes.



More information about the openssl-dev mailing list