<div dir="ltr">Hello,<div><br><div>--- Re : OPENSSLDIR in openssl 1.1.1--- </div><div>I have successfully generated opensslconf.h  , </div><div>(used make , not make...opensslconf.h - had to generate other .h files as well).</div><div> </div><div>Upon comparing contents of opensslconf.h from 1.0.2 & 1.1.1 , i see that:</div><div><br></div><div><div style="box-sizing:border-box;font-family:"Segoe UI",system-ui,"Apple Color Emoji","Segoe UI Emoji",sans-serif;font-size:14px">"OPENSSLDIR" is #define 'ed in opensslconf.h in 1.0.2 & not in 1.1.1.</div></div><div style="box-sizing:border-box;font-family:"Segoe UI",system-ui,"Apple Color Emoji","Segoe UI Emoji",sans-serif;font-size:14px">Now, i got the error :</div><div style="box-sizing:border-box;font-family:"Segoe UI",system-ui,"Apple Color Emoji","Segoe UI Emoji",sans-serif;font-size:14px"><my project path>/openssl/crypto/x509/x509_def.c: In function 'X509_get_default_private_dir': </div><div style="box-sizing:border-box;font-family:"Segoe UI",system-ui,"Apple Color Emoji","Segoe UI Emoji",sans-serif;font-size:14px"><my project path>/ openssl/crypto/x509/x509_def.c:17:12: error: 'OPENSSLDIR' undeclared (first use in this function)</div><div style="box-sizing:border-box;font-family:"Segoe UI",system-ui,"Apple Color Emoji","Segoe UI Emoji",sans-serif;font-size:14px"><br></div><div style="box-sizing:border-box;font-family:"Segoe UI",system-ui,"Apple Color Emoji","Segoe UI Emoji",sans-serif;font-size:14px">Although , the log of "make" showed  OPENSSLDIR as "/usr/local/ssl" , which is default . I couldn't find where this is #define 'ed.</div><div style="box-sizing:border-box;font-family:"Segoe UI",system-ui,"Apple Color Emoji","Segoe UI Emoji",sans-serif;font-size:14px"><br></div><div style="box-sizing:border-box;font-family:"Segoe UI",system-ui,"Apple Color Emoji","Segoe UI Emoji",sans-serif;font-size:14px">May I know , where it's defined in openssl 1.1.1g  or how this error can be resolved. ?</div><div style="box-sizing:border-box;font-family:"Segoe UI",system-ui,"Apple Color Emoji","Segoe UI Emoji",sans-serif;font-size:14px"><br></div><div style="box-sizing:border-box;font-family:"Segoe UI",system-ui,"Apple Color Emoji","Segoe UI Emoji",sans-serif;font-size:14px">Thanks,</div><div style="box-sizing:border-box;font-family:"Segoe UI",system-ui,"Apple Color Emoji","Segoe UI Emoji",sans-serif;font-size:14px">-Prud</div><div style="box-sizing:border-box;font-family:"Segoe UI",system-ui,"Apple Color Emoji","Segoe UI Emoji",sans-serif;font-size:14px"><br></div><div style="box-sizing:border-box;font-family:"Segoe UI",system-ui,"Apple Color Emoji","Segoe UI Emoji",sans-serif;font-size:14px"><br></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Jul 17, 2020 at 2:32 PM Richard Levitte <<a href="mailto:levitte@openssl.org">levitte@openssl.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On Thu, 16 Jul 2020 22:01:51 +0200,<br>
prudvi raj wrote:<br>
> How do i  generate "opensslconf.h" in openssl 1.1.1g?<br>
> From docs, i assume it is created after we give  "./Configure <options> gcc".<br>
> I observe that "opensslconf.h" is created only on giving "make" after ./Configure... But this<br>
> additionally created .d & .o files in crypto folders.<br>
<br>
Yes, generation of most such files have moved to the building phase<br>
rather than the configuration phase, so to say.<br>
<br>
The really quick way to get an individual file of this sort is to<br>
simply make it, i.e.:<br>
<br>
    make include/openssl/opensslconf.h<br>
<br>
> For openssl1.0.2 , the same opensslconf.h is created right after "./Configure" .<br>
> (all .h files in include directory are created after ./Configure, whereas in 1.1.1 .h files appear<br>
> in include directory - without any ./Configure)<br>
<br>
Yeah, before 1.1.0, the public header files were spread around in<br>
diverse crypto/ subdirectories, and they got symlinked into<br>
include/openssl, or copied, on platforms that don't support symbolic<br>
links.  We moved them permanently to include/openssl in 1.1.0, which<br>
means the symlinking is no longer needed.<br>
<br>
> For context , we are upgrading our project to openssl 1.1.1g from 1.0.2k & i am concerned about<br>
> this .d & .o files, in case i build the whole project - which is including openssl folder.<br>
<br>
I don't quite understand why .o files are a concern, they are the<br>
normal object files that are used to build up libraries and<br>
applications, and are produced in OpenSSL before 1.1.0 as well.<br>
<br>
Cheers,<br>
Richard<br>
<br>
-- <br>
Richard Levitte         <a href="mailto:levitte@openssl.org" target="_blank">levitte@openssl.org</a><br>
OpenSSL Project         <a href="http://www.openssl.org/~levitte/" rel="noreferrer" target="_blank">http://www.openssl.org/~levitte/</a><br>
</blockquote></div>