From: winddy <winddy_zhang@foxmail.com>
To: edk2-devel <edk2-devel@lists.01.org>
Subject: CryptoPkg compiles error: BIO_printf() and BIO_snprintf() redefined.
Date: Thu, 13 Apr 2017 10:39:03 +0800 [thread overview]
Message-ID: <tencent_51E636D82C4E37E70CCE2D3E@qq.com> (raw)
Hi experts,
Now I compile CryptoPkg in lastest UDK, I find there is a build error:
BaseCryptLib.lib(CrtWrapper.obj) : error LNK2005: BIO_snprintf already defined i
n OpensslLib.lib(b_print.obj)
BaseCryptLib.lib(CrtWrapper.obj) : error LNK2005: BIO_printf already defined in
OpensslLib.lib(b_print.obj)
d:\project\udkapp\udkapp\Build\WinddyPkg\RELEASE_DDK7600\X64\WinddyPkg\Dxe\Crypt
Dxe\CryptDxe\DEBUG\CryptDxe.dll : fatal error LNK1169: one or more multiply defi
ned symbols found
Both c file "CryptoPkg\Library\BaseCryptLib\SysCall\CrtWrapper.c" and c file "CryptoPkg\Library\OpensslLib\openssl\crypto\bio\b_print.c" defined function BIO_printf(), BIO_snprintf().
I just remove the dummy functions in CrtWrapper.c, the build process is successful.
Is that right?
BTW, I think someone maybe does not know how to run perl script for openssl library init, so I write down my trying steps under windows 7 64 bit for your reference:
1. download and install ActivePerl-5.24.1.2402-MSWin32-x64-401627.exe
2. cmdline run "ppm install dmake"
3. download openssl-1.1.0e.tar.gz and unpack it to CryptoPkg/Library/OpensslLib/openssl.
4. rename "openssl\Configure" to "openssl\Configure.pl"
5. modify file process_files.pl line 49: "./Configure" -> "Configure.pl"
6. under cmdline, cd to "CryptoPkg\Library\OpensslLib" and run "process_files.pl"
Thank you.
------------------
BR
winddy_zhang
next reply other threads:[~2017-04-13 2:39 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-04-13 2:39 winddy [this message]
2017-04-13 5:08 ` CryptoPkg compiles error: BIO_printf() and BIO_snprintf() redefined Long, Qin
2017-04-13 6:06 ` CryptoPkg compiles error: BIO_printf() andBIO_snprintf() redefined winddy
2017-04-13 6:29 ` Long, Qin
2017-04-13 7:12 ` CryptoPkg compiles error: BIO_printf() andBIO_snprintf()redefined winddy
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-list from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=tencent_51E636D82C4E37E70CCE2D3E@qq.com \
--to=devel@edk2.groups.io \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox