<div style="line-height:1.7;color:#000000;font-size:14px;font-family:Arial"><div id="contentDescription" style="line-height:1.5;text-align:justify;text-justify:inter-ideograph">Dear,<br><br>Please help check this. I attached the config dump in previous email. <br><br>Thanks,<br>Wenbin<br>--------- Forwarded Message ---------<div class="J-cc" style="color:black;margin-top:45px;margin-bottom:10px;font-size:14px;"><div style="background-color:#f2f2f2;padding-top:6px;padding-bottom:6px;border-radius:3px;-moz-border-radius: 3px;-webkit-border-radius: 3px;margin-bottom:20px;margin-top:4px;word-break:break-all;"><div style="margin-left:10px;margin-right:10px"><div style="font-size:14px;line-height:1.5;"><span style="color:#8b8d94">From: </span><span><a class="mail-from" style="text-decoration:none;color:#2a97ff;" href="mailto:dengwenbin_0301@126.com">dengwenbin_0301</a></span></div><div style="font-size:14px;line-height:1.5;"><span style="color:#8b8d94">Date: </span><span class="mail-date" style="color:black">05/27/2019 14:24</span></div><div style="font-size:14px;line-height:1.5;"><span style="color:#8b8d94">To: </span><span><a class="mail-to" style="text-decoration:none;color:#2a97ff;" href="mailto:levitte@openssl.org">Richard Levitte</a></span></div><div style="font-size:14px;line-height:18px;"><span style="color:#8b8d94">Subject: </span><span class="mail-subject" style="color:black">Re:Re: Fw:Re:Re: Building openssl outside of the source tree" doesn't work well</span></div></div></div></div><div style="line-height:1.7;color:#000000;font-size:14px;font-family:Arial"><div>Sorry, the previously attached dump might too large to send out successfully. I copied it directly here.<br><br><span style="color: rgb(0, 0, 128);"><i>Command line (with current working directory = .):</i><br><br><i> /usr/bin/perl ../Configure linux-x86_64</i><br><br><i>Perl information:</i><br><br><i> /usr/bin/perl</i><br><i> 5.22.1 for x86_64-linux-gnu-thread-multi</i><br><br><i>Enabled features:</i><br><br><i> afalgeng</i><br><i> aria</i><br><i> asm</i><br><i> async</i><br><i> autoalginit</i><br><i> autoerrinit</i><br><i> autoload-config</i><br><i> bf</i><br><i> blake2</i><br><i> camellia</i><br><i> capieng</i><br><i> cast</i><br><i> chacha</i><br><i> cmac</i><br><i> cms</i><br><i> comp</i><br><i> crmf</i><br><i> ct</i><br><i> deprecated</i><br><i> des</i><br><i> dgram</i><br><i> dh</i><br><i> dsa</i><br><i> dtls</i><br><i> dynamic-engine</i><br><i> ec</i><br><i> ec2m</i><br><i> ecdh</i><br><i> ecdsa</i><br><i> engine</i><br><i> err</i><br><i> filenames</i><br><i> fips</i><br><i> gost</i><br><i> idea</i><br><i> legacy</i><br><i> makedepend</i><br><i> md4</i><br><i> mdc2</i><br><i> module</i><br><i> multiblock</i><br><i> nextprotoneg</i><br><i> pinshared</i><br><i> ocb</i><br><i> ocsp</i><br><i> padlockeng</i><br><i> pic</i><br><i> poly1305</i><br><i> posix-io</i><br><i> psk</i><br><i> rc2</i><br><i> rc4</i><br><i> rdrand</i><br><i> rfc3779</i><br><i> rmd160</i><br><i> scrypt</i><br><i> seed</i><br><i> shared</i><br><i> siphash</i><br><i> siv</i><br><i> sm2</i><br><i> sm3</i><br><i> sm4</i><br><i> sock</i><br><i> srp</i><br><i> srtp</i><br><i> sse2</i><br><i> ssl</i><br><i> static-engine</i><br><i> stdio</i><br><i> tests</i><br><i> threads</i><br><i> tls</i><br><i> ts</i><br><i> ui-console</i><br><i> whirlpool</i><br><i> tls1</i><br><i> tls1-method</i><br><i> tls1_1</i><br><i> tls1_1-method</i><br><i> tls1_2</i><br><i> tls1_2-method</i><br><i> tls1_3</i><br><i> dtls1</i><br><i> dtls1-method</i><br><i> dtls1_2</i><br><i> dtls1_2-method</i><br><br><i>Disabled features:</i><br><br><i> ktls [default] OPENSSL_NO_KTLS</i><br><i> asan [default] OPENSSL_NO_ASAN</i><br><i> buildtest-c++ [default] </i><br><i> crypto-mdebug [default] OPENSSL_NO_CRYPTO_MDEBUG</i><br><i> crypto-mdebug-backtrace [default] OPENSSL_NO_CRYPTO_MDEBUG_BACKTRACE</i><br><i> devcryptoeng [default] OPENSSL_NO_DEVCRYPTOENG</i><br><i> ec_nistp_64_gcc_128 [default] OPENSSL_NO_EC_NISTP_64_GCC_128</i><br><i> egd [default] OPENSSL_NO_EGD</i><br><i> external-tests [default] OPENSSL_NO_EXTERNAL_TESTS</i><br><i> fuzz-libfuzzer [default] OPENSSL_NO_FUZZ_LIBFUZZER</i><br><i> fuzz-afl [default] OPENSSL_NO_FUZZ_AFL</i><br><i> md2 [default] OPENSSL_NO_MD2 (skip crypto/md2)</i><br><i> msan [default] OPENSSL_NO_MSAN</i><br><i> rc5 [default] OPENSSL_NO_RC5 (skip crypto/rc5)</i><br><i> sctp [default] OPENSSL_NO_SCTP</i><br><i> ssl-trace [default] OPENSSL_NO_SSL_TRACE</i><br><i> trace [default] OPENSSL_NO_TRACE</i><br><i> ubsan [default] OPENSSL_NO_UBSAN</i><br><i> unit-test [default] OPENSSL_NO_UNIT_TEST</i><br><i> weak-ssl-ciphers [default] OPENSSL_NO_WEAK_SSL_CIPHERS</i><br><i> zlib [default] </i><br><i> zlib-dynamic [default] </i><br><i> ssl3 [default] OPENSSL_NO_SSL3</i><br><i> ssl3-method [default] OPENSSL_NO_SSL3_METHOD</i><br><br><i>Config target attributes:</i><br><br><i> AR => "ar",</i><br><i> ARFLAGS => "r",</i><br><i> CC => "gcc",</i><br><i> CFLAGS => "-Wall -O3",</i><br><i> CXX => "g++",</i><br><i> CXXFLAGS => "-Wall -O3",</i><br><i> HASHBANGPERL => "/usr/bin/env perl",</i><br><i> RANLIB => "ranlib",</i><br><i> RC => "windres",</i><br><i> aes_asm_src => "aes-x86_64.s vpaes-x86_64.s bsaes-x86_64.s aesni-x86_64.s aesni-sha1-x86_64.s aesni-sha256-x86_64.s aesni-mb-x86_64.s",</i><br><i> aes_obj => "aes-x86_64.o vpaes-x86_64.o bsaes-x86_64.o aesni-x86_64.o aesni-sha1-x86_64.o aesni-sha256-x86_64.o aesni-mb-x86_64.o",</i><br><i> apps_aux_src => "",</i><br><i> apps_init_src => "",</i><br><i> apps_obj => "",</i><br><i> bf_asm_src => "bf_enc.c",</i><br><i> bf_obj => "bf_enc.o",</i><br><i> bn_asm_src => "asm/x86_64-gcc.c x86_64-mont.s x86_64-mont5.s x86_64-gf2m.s rsaz_exp.c rsaz-x86_64.s rsaz-avx2.s",</i><br><i> bn_obj => "asm/x86_64-gcc.o x86_64-mont.o x86_64-mont5.o x86_64-gf2m.o rsaz_exp.o rsaz-x86_64.o rsaz-avx2.o",</i><br><i> bn_ops => "SIXTY_FOUR_BIT_LONG",</i><br><i> build_file => "Makefile",</i><br><i> build_scheme => [ "unified", "unix" ],</i><br><i> cast_asm_src => "c_enc.c",</i><br><i> cast_obj => "c_enc.o",</i><br><i> cflags => "-pthread -m64",</i><br><i> chacha_asm_src => "chacha-x86_64.s",</i><br><i> chacha_obj => "chacha-x86_64.o",</i><br><i> cmll_asm_src => "cmll-x86_64.s cmll_misc.c",</i><br><i> cmll_obj => "cmll-x86_64.o cmll_misc.o",</i><br><i> cppflags => "",</i><br><i> cpuid_asm_src => "x86_64cpuid.s",</i><br><i> cpuid_obj => "x86_64cpuid.o",</i><br><i> cxxflags => "-std=c++11 -pthread -m64",</i><br><i> defines => [ ],</i><br><i> des_asm_src => "des_enc.c fcrypt_b.c",</i><br><i> des_obj => "des_enc.o fcrypt_b.o",</i><br><i> disable => [ ],</i><br><i> dso_ldflags => "-z defs",</i><br><i> dso_scheme => "dlfcn",</i><br><i> ec_asm_src => "ecp_nistz256.c ecp_nistz256-x86_64.s x25519-x86_64.s",</i><br><i> ec_obj => "ecp_nistz256.o ecp_nistz256-x86_64.o x25519-x86_64.o",</i><br><i> enable => [ "afalgeng" ],</i><br><i> ex_libs => "-ldl -pthread",</i><br><i> includes => [ ],</i><br><i> keccak1600_asm_src => "keccak1600-x86_64.s",</i><br><i> keccak1600_obj => "keccak1600-x86_64.o",</i><br><i> lflags => "",</i><br><i> lib_cflags => "",</i><br><i> lib_cppflags => "-DOPENSSL_USE_NODELETE -DL_ENDIAN",</i><br><i> lib_defines => [ ],</i><br><i> md5_asm_src => "md5-x86_64.s",</i><br><i> md5_obj => "md5-x86_64.o",</i><br><i> modes_asm_src => "ghash-x86_64.s aesni-gcm-x86_64.s",</i><br><i> modes_obj => "ghash-x86_64.o aesni-gcm-x86_64.o",</i><br><i> module_cflags => "-fPIC",</i><br><i> module_cxxflags => "",</i><br><i> module_ldflags => "-Wl,-znodelete -shared -Wl,-Bsymbolic",</i><br><i> multilib => "64",</i><br><i> padlock_asm_src => "e_padlock-x86_64.s",</i><br><i> padlock_obj => "e_padlock-x86_64.o",</i><br><i> perl_platform => "Unix",</i><br><i> perlasm_scheme => "elf",</i><br><i> poly1305_asm_src => "poly1305-x86_64.s",</i><br><i> poly1305_obj => "poly1305-x86_64.o",</i><br><i> rc4_asm_src => "rc4-x86_64.s rc4-md5-x86_64.s",</i><br><i> rc4_obj => "rc4-x86_64.o rc4-md5-x86_64.o",</i><br><i> rc5_asm_src => "rc5_enc.c",</i><br><i> rc5_obj => "rc5_enc.o",</i><br><i> rmd160_asm_src => "",</i><br><i> rmd160_obj => "",</i><br><i> sha1_asm_src => "sha1-x86_64.s sha256-x86_64.s sha512-x86_64.s sha1-mb-x86_64.s sha256-mb-x86_64.s",</i><br><i> sha1_obj => "sha1-x86_64.o sha256-x86_64.o sha512-x86_64.o sha1-mb-x86_64.o sha256-mb-x86_64.o",</i><br><i> shared_cflag => "-fPIC",</i><br><i> shared_defflag => "-Wl,--version-script=",</i><br><i> shared_defines => [ ],</i><br><i> shared_ldflag => "-Wl,-znodelete -shared -Wl,-Bsymbolic",</i><br><i> shared_rcflag => "",</i><br><i> shared_sonameflag => "-Wl,-soname=",</i><br><i> shared_target => "linux-shared",</i><br><i> thread_defines => [ ],</i><br><i> thread_scheme => "pthreads",</i><br><i> unistd => "<unistd.h>",</i><br><i> uplink_aux_src => "",</i><br><i> uplink_obj => "",</i><br><i> wp_asm_src => "wp-x86_64.s",</i><br><i> wp_obj => "wp-x86_64.o",</i><br><br><i>Recorded environment:</i><br><br><i> AR = </i><br><i> ARFLAGS = </i><br><i> AS = </i><br><i> ASFLAGS = </i><br><i> BUILDFILE = </i><br><i> CC = </i><br><i> CFLAGS = </i><br><i> CPP = </i><br><i> CPPDEFINES = </i><br><i> CPPFLAGS = </i><br><i> CPPINCLUDES = </i><br><i> CROSS_COMPILE = </i><br><i> CXX = </i><br><i> CXXFLAGS = </i><br><i> HASHBANGPERL = </i><br><i> LD = </i><br><i> LDFLAGS = </i><br><i> LDLIBS = </i><br><i> MT = </i><br><i> MTFLAGS = </i><br><i> OPENSSL_LOCAL_CONFIG_DIR = </i><br><i> PERL = </i><br><i> RANLIB = </i><br><i> RC = </i><br><i> RCFLAGS = </i><br><i> RM = </i><br><i> WINDRES = </i><br><i> __CNF_CFLAGS = </i><br><i> __CNF_CPPDEFINES = </i><br><i> __CNF_CPPFLAGS = </i><br><i> __CNF_CPPINCLUDES = </i><br><i> __CNF_CXXFLAGS = </i><br><i> __CNF_LDFLAGS = </i><br><i> __CNF_LDLIBS = </i><br><br><i>Makevars:</i><br><br><i> AR = ar</i><br><i> ARFLAGS = r</i><br><i> CC = gcc</i><br><i> CFLAGS = -Wall -O3</i><br><i> CPPDEFINES = </i><br><i> CPPFLAGS = </i><br><i> CPPINCLUDES = </i><br><i> CXX = g++</i><br><i> CXXFLAGS = -Wall -O3</i><br><i> HASHBANGPERL = /usr/bin/env perl</i><br><i> LDFLAGS = </i><br><i> LDLIBS = </i><br><i> PERL = /usr/bin/perl</i><br><i> RANLIB = ranlib</i><br><i> RC = windres</i><br><i> RCFLAGS = </i><br><br><i>NOTE: These variables only represent the configuration view. The build file</i><br><i>template may have processed these variables further, please have a look at the</i><br><i>build file for more exact data:</i><br><i> Makefile</i><br><br><i>build file:</i><br><br><i> Makefile</i><br><br><i>build file templates:</i><br><br><i> ../Configurations/common0.tmpl</i><br><i> ../Configurations/unix-Makefile.tmpl</i><br><i> ../Configurations/common.tmpl</i></span><br></div><br><div>Thanks,<br>Wenbin<br><br>zAt 2019-05-24 20:23:58, "Richard Levitte" <<a data-auto-link="1" href="mailto:levitte@openssl.org">levitte@openssl.org</a>> wrote:
</div><pre>>Well, those -I options are directly generated from 'INCLUDE'
>statements in build.info files.
>
>Would you mind giving me the output from this command?
>
> perl configdata.pm --dump
>
>Cheers,
>Richard
>
>On Fri, 24 May 2019 04:45:11 +0200,
>dengwenbin_0301 wrote:
>>
>>
>> I tried on openssl-1.1.1a and openssl-1.1.1b and they all have the same issue. I think it has
>> something to do with my env. But i am not able to figure out what is the cause.
>>
>> Thanks,
>> Wenbin
>>
>> -------- Forwarding messages --------
>> From: "dengwenbin_0301" <<a data-auto-link="1" href="mailto:dengwenbin_0301@126.com">dengwenbin_0301@126.com</a>>
>> Date: 2019-05-22 09:40:19
>> To: "Richard Levitte" <<a data-auto-link="1" href="mailto:levitte@openssl.org">levitte@openssl.org</a>>
>> Subject: Re:Re: Building openssl outside of the source tree" doesn't work well
>> Thanks for your reply, Richard.
>>
>> Yes, the "-Iinclude -Iapps/include" is missing. I don't know why this happened. I attached the
>> the configdata.pm and its dump. Please help have a check.
>>
>> wdeng@pek-dliu4-u1:~/wenbindfiles/openssl/openssl/obj [master]$ git log -n 1
>> commit d3136af3c3905a730bd8fb44158aab36a2549d9b
>> Author: Richard Levitte <<a data-auto-link="1" href="mailto:levitte@openssl.org">levitte@openssl.org</a>>
>> Date: Sat May 18 16:24:21 2019 -0700
>>
>> Configure: let platform->dsoext() default with platform->shlibextsimple()
>>
>> We still use '.so' as a last resort...
>>
>> Fixes #8950
>>
>> Reviewed-by: Tim Hudson <<a data-auto-link="1" href="mailto:tjh@openssl.org">tjh@openssl.org</a>>
>> (Merged from https://github.com/openssl/openssl/pull/8951)
>>
>> At 2019-05-21 11:47:14, "Richard Levitte" <<a data-auto-link="1" href="mailto:levitte@openssl.org">levitte@openssl.org</a>> wrote:
>> >On Tue, 21 May 2019 03:26:41 +0200,
>> >dengwenbin_0301 wrote:
>> >>
>> >> wdeng@pek-dliu4-u1:~/wenbindfiles/openssl/openssl [master]$ cd obj/
>> >>
>> >> wdeng@pek-dliu4-u1:~/wenbindfiles/openssl/openssl/obj [master]$ ../config
>> >> Operating system: x86_64-whatever-linux2
>> >> Configuring OpenSSL version 3.0.0-dev for target linux-x86_64
>> >> Using os-specific seed configuration
>> >> Creating configdata.pm
>> >> Creating Makefile
>> >>
>> >> **********************************************************************
>> >> *** ***
>> >> *** OpenSSL has been successfully configured ***
>> >> *** ***
>> >> *** If you encounter a problem while building, please open an ***
>> >> *** issue on GitHub <https://github.com/openssl/openssl/issues> ; ***
>> >> *** and include the output from the following command: ***
>> >> *** ***
>> >> *** perl configdata.pm --dump ***
>> >> *** ***
>> >> *** (If you are new to OpenSSL, you might want to consult the ***
>> >> *** 'Troubleshooting' section in the INSTALL file first) ***
>> >> *** ***
>> >> **********************************************************************
>> >> wdeng:~/wenbindfiles/openssl/openssl/obj [master]$ make
>> >> make depend && make _all
>> >> make[1]: Entering directory '/folk/wdeng/wenbindfiles/openssl/openssl/obj'
>> >> make[1]: Leaving directory '/folk/wdeng/wenbindfiles/openssl/openssl/obj'
>> >> make[1]: Entering directory '/folk/wdeng/wenbindfiles/openssl/openssl/obj'
>> >> gcc -fPIC -pthread -m64 -Wa,--noexecstack -Wall -O3 -DOPENSSL_USE_NODELETE -DL_ENDIAN
>> >> -DOPENSSL_PIC -DOPENSSL_CPUID_OBJ -DOPENSSL_IA32_SSE2 -DOPENSSL_BN_ASM_MONT -DOPENSSL_BN_ASM_MONT5
>> >> -DOPENSSL_BN_ASM_GF2m -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DKECCAK1600_ASM -DRC4_ASM -DMD5_ASM
>> >> -DAES_ASM -DVPAES_ASM -DBSAES_ASM -DGHASH_ASM -DECP_NISTZ256_ASM -DX25519_ASM -DPOLY1305_ASM
>> >> -DOPENSSLDIR="\"/usr/local/ssl\"" -DENGINESDIR="\"/usr/local/lib/engines-3\"" -DMODULESDIR="\"/usr
>> >> /local/lib/ossl-modules\"" -DNDEBUG -MMD -MF apps/libapps-lib-app_rand.d.tmp -MT apps/
>> >> libapps-lib-app_rand.o -c -o apps/libapps-lib-app_rand.o ../apps/app_rand.c
>> >> ../apps/app_rand.c:10:18: fatal error: apps.h: No such file or directory
>> >> compilation terminated.
>> >> Makefile:826: recipe for target 'apps/libapps-lib-app_rand.o' failed
>> >> make[1]: *** [apps/libapps-lib-app_rand.o] Error 1
>> >> make[1]: Leaving directory '/folk/wdeng/wenbindfiles/openssl/openssl/obj'
>> >> Makefile:165: recipe for target 'all' failed
>> >> make: *** [all] Error 2
>> >
>> >I tried exactly that just now, exactly same 'obj' ubdirectory, and it
>> >works with no problem.
>> >
>> >Something I'm noticing from your command line is that all -I options
>> >that I expect to see there are gone. This is what I expect (note that
>> >I go directly at the object file for demonstration purposes):
>> >
>> > : ; make apps/libapps-lib-app_rand.o
>> > gcc -I. -Iinclude -Iapps/include -I.. -I../include
>> > -I../apps/include -fPIC -pthread -m64 -Wa,--noexecstack -Wall -O3
>> > -DOPENSSL_USE_NODELETE -DL_ENDIAN -DOPENSSL_PIC
>> > -DOPENSSL_CPUID_OBJ -DOPENSSL_IA32_SSE2 -DOPENSSL_BN_ASM_MONT
>> > -DOPENSSL_BN_ASM_MONT5 -DOPENSSL_BN_ASM_GF2m -DSHA1_ASM
>> > -DSHA256_ASM -DSHA512_ASM -DKECCAK1600_ASM -DRC4_ASM -DMD5_ASM
>> > -DAES_ASM -DVPAES_ASM -DBSAES_ASM -DGHASH_ASM -DECP_NISTZ256_ASM
>> > -DX25519_ASM -DPOLY1305_ASM -DOPENSSLDIR="\"/usr/local/ssl\""
>> > -DENGINESDIR="\"/usr/local/lib/engines-3\""
>> > -DMODULESDIR="\"/usr/local/lib/ossl-modules\"" -DNDEBUG -MMD -MF
>> > apps/libapps-lib-app_rand.d.tmp -MT apps/libapps-lib-app_rand.o -c
>> > -o apps/libapps-lib-app_rand.o ../apps/app_rand.c
>> >
>> >So the question is what happened to '-I. -Iinclude -Iapps/include
>> >-I.. -I../include -I../apps/include' in your build.
>> >
>> >I cannot say right now, but it might help if you show the output from
>> >'./configdata.pm --dump'
>> >
>> >Cheers,
>> >Richard
>> >
>> >--
>> >Richard Levitte <a data-auto-link="1" href="mailto:levitte@openssl.org">levitte@openssl.org</a>
>> >OpenSSL Project http://www.openssl.org/~levitte/
>>
>>
>>
>>
>--
>Richard Levitte <a data-auto-link="1" href="mailto:levitte@openssl.org">levitte@openssl.org</a>
>OpenSSL Project http://www.openssl.org/~levitte/
</pre></div><br><br><span title="neteasefooter"><p> </p></span>
</div>
</div><br><br><span title="neteasefooter"><p> </p></span>