error : unknown type name 'sa_family_t' in openssl 1.1.1g

Richard Levitte levitte at openssl.org
Fri Jul 24 05:30:02 UTC 2020


It would be helpful if you showed us the Configure options, as they
may very well have affected diverse macros.

Cheers,
Richard

On Thu, 23 Jul 2020 21:39:45 +0200,
prudvi raj wrote:
> 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.
> 
> 
-- 
Richard Levitte         levitte at openssl.org
OpenSSL Project         http://www.openssl.org/~levitte/


More information about the openssl-users mailing list