Hi, We are upgrading our code base to openssl 1.1.1g from 1.0.2k. During Compilation i am seeing this error : In file included from <project_path>/openssl/include/internal/sockets.h:67:0, from <path>/openssl/crypto/bio/bio_local.h:11, from <path>/openssl/crypto/bio/bss_mem.c:12: /opt/toolchains/adtn-6/sysroots/ppce500v2-fsl-linux-gnuspe/usr/include/netdb.h:469:7: error: unknown type name 'sa_family_t' /opt/toolchains/adtn-6/sysroots/ppce500v2-fsl-linux-gnuspe/usr/include/netdb.h:497:8: error: unknown type name 'sa_family_t' /opt/toolchains/adtn-6/sysroots/ppce500v2-fsl-linux-gnuspe/usr/include/netdb.h:519:10: error: unknown type name 'sa_family_t' /opt/toolchains/adtn-6/sysroots/ppce500v2-fsl-linux-gnuspe/usr/include/netdb.h:543:4: error: unknown type name 'sa_family_t' /opt/toolchains/adtn-6/sysroots/ppce500v2-fsl-linux-gnuspe/usr/include/netdb.h:562:41: error: unknown type name 'sa_family_t'
In bio_local.h , if we remove "#include<internal/sockets.h>" & replace it with "#include<sys/socket.h>" , the error is gone !! . But I am not sure is this correct ?? Btw , even "internal/sockets.h " has " #include<sys/socket.h>". How to resolve this , Might I have missed something during configure & compilation ?? fwiw: have given "./configure <options> gcc" & same was given when we had upgraded to 1.0.2 from previous versions long ago. Thanks, Prud.