Hi Jian, On 06/04/19 23:18, Wang, Jian J wrote: > BZ: https://bugzilla.tianocore.org/show_bug.cgi?id=1878 > > This issue is specific to VS2017 which tries to resolve symbol referenced > by a symbol not really referenced eventually. > > ossl_init_load_crypto_strings > -> err_load_crypto_strings_int (not really referenced) > -> ERR_load_OSSL_STORE_strings > > Because OPENSSL_NO_ERR and OPENSSL_NO_AUTOERRINIT are not defined by > default, err_load_crypto_strings_int() will not be actually referenced > by ossl_init_load_crypto_strings(). > > Since err_load_crypto_strings_int() is not actually referenced at all, > the fix can be done simply by removing crypto/err/err_all.c from build. > > Cc: Dandan Bi <dandan...@intel.com> > Cc: Xiaoyu Lu <xiaoyux...@intel.com> > Signed-off-by: Jian J Wang <jian.j.w...@intel.com> > --- > CryptoPkg/Library/OpensslLib/OpensslLib.inf | 1 - > CryptoPkg/Library/OpensslLib/OpensslLibCrypto.inf | 1 - > 2 files changed, 2 deletions(-) > > diff --git a/CryptoPkg/Library/OpensslLib/OpensslLib.inf > b/CryptoPkg/Library/OpensslLib/OpensslLib.inf > index 378fa6588e..5a2424fc16 100644 > --- a/CryptoPkg/Library/OpensslLib/OpensslLib.inf > +++ b/CryptoPkg/Library/OpensslLib/OpensslLib.inf > @@ -218,7 +218,6 @@ > $(OPENSSL_PATH)/crypto/dso/dso_win32.c > $(OPENSSL_PATH)/crypto/ebcdic.c > $(OPENSSL_PATH)/crypto/err/err.c > - $(OPENSSL_PATH)/crypto/err/err_all.c > $(OPENSSL_PATH)/crypto/err/err_prn.c > $(OPENSSL_PATH)/crypto/evp/bio_b64.c > $(OPENSSL_PATH)/crypto/evp/bio_enc.c > diff --git a/CryptoPkg/Library/OpensslLib/OpensslLibCrypto.inf > b/CryptoPkg/Library/OpensslLib/OpensslLibCrypto.inf > index 24d3d96459..588da4c040 100644 > --- a/CryptoPkg/Library/OpensslLib/OpensslLibCrypto.inf > +++ b/CryptoPkg/Library/OpensslLib/OpensslLibCrypto.inf > @@ -218,7 +218,6 @@ > $(OPENSSL_PATH)/crypto/dso/dso_win32.c > $(OPENSSL_PATH)/crypto/ebcdic.c > $(OPENSSL_PATH)/crypto/err/err.c > - $(OPENSSL_PATH)/crypto/err/err_all.c > $(OPENSSL_PATH)/crypto/err/err_prn.c > $(OPENSSL_PATH)/crypto/evp/bio_b64.c > $(OPENSSL_PATH)/crypto/evp/bio_enc.c >
after the edk2-stable201905 tag, we might want to update "CryptoPkg/Library/OpensslLib/process_files.pl" as well, to exclude this file. In order to fix the build issue for the stable tag, this patch is acceptable (I see it's been pushed already, and that's fine); but in the longer term, we should not manually update the section that's marked as "Autogenerated files list starts here". If you agree, can you please file a TianoCore BZ about this? (I.e. special handling for "err_all.c" in "process_files.pl".) Thanks Laszlo -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#41937): https://edk2.groups.io/g/devel/message/41937 Mute This Topic: https://groups.io/mt/31930984/21656 Group Owner: devel+ow...@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-