Re: [edk2] OpenSSL Lib compilation error

Subject: Re: [edk2] OpenSSL Lib compilation error

From: "s.v.krishna reddy" <svkr521@gmail.com>

To: edk2-devel@lists.sourceforge.net

Date: 2013-12-16 20:12:04

Thanks Qin, You are right, Patch was not done properly.

Thanks,
Krishna,


On Mon, Dec 16, 2013 at 8:05 AM, Long, Qin <qin.long@intel.com> wrote:

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.


------------------------------------------------------------------------------
Rapidly troubleshoot problems before they affect your business. Most IT
organizations don't have a clear picture of how application performance
affects their revenue. With AppDynamics, you get 100% visibility into your
Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk
_______________________________________________
edk2-devel mailing list
edk2-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/edk2-devel