[if gte mso 9]>

Re: [edk2] OpenSSL Lib compilation error

Subject: Re: [edk2] OpenSSL Lib compilation error

From: "Long, Qin" <qin.long@intel.com>

To: "edk2-devel@lists.sourceforge.net" <edk2-devel@lists.sourceforge.net>

Date: 2013-12-16 10:35:49

Hi, Krishna,

 

Please make sure you have applied the EDKII_openssl-0.9.8w.patch on openssl source tree correctly.

These errors may be encountered under un-patched version.

 

You can take a look at rand_egd.c and check if there is any “OPENSSL_SYS_UEFI” string. If not, your openssl tree was not patched correctly.

 

 

Best Regards & Thanks,

LONG, Qin

From: s.v.krishna reddy [mailto:svkr521@gmail.com]
Sent: Friday, December 13, 2013 2:19 PM
To: edk2-devel@lists.sourceforge.net
Subject: [edk2] OpenSSL Lib compilation error

 

Hello everyone,

I have followed the instructions mentioned in 'edk2\CryptoPkg\Library\OpensslLib\Patch-HOWTO.txt' to build a module in security package. I have encountered below error message.

d:\usdk\4_5_2xx\external\edk2-1\CryptoPkg\Library\OpensslLib\openssl-0.9.8w\crypto\rand\rand_egd.c(139) : error C2079: 'addr' uses undefined struct 'sockaddr_un
'
d:\usdk\4_5_2xx\external\edk2-1\CryptoPkg\Library\OpensslLib\openssl-0.9.8w\crypto\rand\rand_egd.c(146) : error C2224: left of '.sun_family' must have struct/un
ion type
d:\usdk\4_5_2xx\external\edk2-1\CryptoPkg\Library\OpensslLib\openssl-0.9.8w\crypto\rand\rand_egd.c(146) : error C2065: 'AF_UNIX' : undeclared identifier
d:\usdk\4_5_2xx\external\edk2-1\CryptoPkg\Library\OpensslLib\openssl-0.9.8w\crypto\rand\rand_egd.c(147) : error C2224: left of '.sun_path' must have struct/unio
n type
d:\usdk\4_5_2xx\external\edk2-1\CryptoPkg\Library\OpensslLib\openssl-0.9.8w\crypto\rand\rand_egd.c(149) : error C2224: left of '.sun_path' must have struct/unio
n type
d:\usdk\4_5_2xx\external\edk2-1\CryptoPkg\Library\OpensslLib\openssl-0.9.8w\crypto\rand\rand_egd.c(149) : error C2224: left of '.sun_path' must have struct/unio
n type
d:\usdk\4_5_2xx\external\edk2-1\CryptoPkg\Library\OpensslLib\openssl-0.9.8w\crypto\rand\rand_egd.c(149) : error C2198: 'BUF_strlcpy' : too few arguments for cal
l
d:\usdk\4_5_2xx\external\edk2-1\CryptoPkg\Library\OpensslLib\openssl-0.9.8w\crypto\rand\rand_egd.c(150) : error C2037: left of 'sun_path' specifies undefined st
ruct/union 'sockaddr_un'
d:\usdk\4_5_2xx\external\edk2-1\CryptoPkg\Library\OpensslLib\openssl-0.9.8w\crypto\rand\rand_egd.c(151) : error C2065: 'SOCK_STREAM' : undeclared identifier
NMAKE : fatal error U1077: 'C:\Tools\MSVS2005\VC\bin\x86_amd64\cl.exe' : return code '0x2'
Stop.
NMAKE : fatal error U1077: 'C:\Tools\MSVS2005\VC\bin\nmake.exe' : return code '0x2'
Stop.

Is anybody have solution to this?

Thanks,
Krishna.