<div dir="ltr">sorry forgot to mantion that after linking with all the paths set it produces the single error (one from before: Symbol(s) not found _TLS1_2_method referenced from _main in main.o</div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Jun 13, 2016 at 1:14 PM, Dan S <span dir="ltr"><<a href="mailto:danchik@rebelbase.com" target="_blank">danchik@rebelbase.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>I did this step at a time to see what happens and here are the results:</div><div><br></div><div>With no paths modified, just bare code produces compile error ('TLSv1_2_method' was not declared at this scope) as expected because openssl that comes osx 10.6 is older without such method - ok so far</div><div><br></div><div>Adding header paths to the 1.0.2h now compiles but then produces linking Symbols(s) not found: _TLS1_2_method referenced from _main in main.o  and _SSL_CTX_new referenced  - also means wrong path since it doesn't even see the SSL_CTX_new, ok so far</div><div><br></div><div>adding new lib paths: and the libs to include m annually via -Lpath and -llib flags : </div><div><br></div><div>/Developer/usr/bin/g++-4.2 -arch x86_64 -isysroot /Developer/SDKs/MacOSX10.6.sdk <br>-L/Volumes/MacintoshHD/w/testss3/build/Debug <br>-L/Volumes/MacintoshHD/w/native_3rdparty/openssl.1.0.2h <br>-F/Volumes/MacintoshHD/w/testss3/build/Debug <br>-filelist /Volumes/MacintoshHD/w/testss3/build/testss3.build/Debug/testss3.build/Objects-normal/x86_64/testss3.LinkFileList <br>-mmacosx-version-min=10.6 <br>-lcrypto <br>-lssl <br>-o /Volumes/MacintoshHD/w/testss3/build/Debug/testss3</div><div><br>(ps, the -filelist ...../testss3.LinkFileList contains single path to the main.o)</div><div><br></div><div>So to me this looks like 1.0.2h did not compile with TLSv1_2_method (and I can not find the object that implements it either, only see that it is referenced from s23_meth.o)<br></div><div><br></div><div>I am thinking there is an .o missing from linking of libssl.a but can't find what object has the implementation of TLSv1_2_method</div><div><br></div><div>(I've even got rid of all the spaces in all the paths before compiling openssl, make had issues installing across paths with spaces)<br></div><div><br></div></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Jun 12, 2016 at 2:24 AM, Axel Luttgens <span dir="ltr"><<a href="mailto:axel.luttgens@skynet.be" target="_blank">axel.luttgens@skynet.be</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;padding-left:1ex;border-left-color:rgb(204,204,204);border-left-width:1px;border-left-style:solid"><span>> Le 9 juin 2016 à 02:29, Dan S a écrit :<br>
><br>
> Hello, I've compiled openssl.1.0.2h on osx (32bit) and linked staticly my project with libcrypto.a and libssl/a, but I get 2 linking errors with "Symbol(s) not found":<br>
><br>
> _TLSv1_2_method, referenced from ...<br>
> and<br>
> _BIO_test_flags, referenced from ...<br>
><br>
> Why would this be happening?<br>
<br>
</span>Hello Dan,<br>
<br>
Difficult to tell from here. ;-)<br>
<br>
What (and how) are you trying to compile?<br>
<span><br>
<br>
> Le 11 juin 2016 à 04:56, Dan S a écrit :<br>
><br>
> I've also tried 1.0.2g and same problem on osx.  Little more details: on pc the expected symbol (_TLSv1_2_method) is in the ssleay32.lib as expected<br>
><br>
> on mac (and this is specifically on 10.5 and 10.6 Darwin i386) it builds two libs:<br>
><br>
> libcrypto.a and libssl.a (the undefined symbol is showing up in libssl.a but as undefined in lib itself) using `nm libssl.a`:<br>
><br>
</span>> […]<br>
<span>><br>
> it seems there is an object maybe missing from when it was linked.<br>
<br>
</span>This may also mean that they are expected to be defined somewhere else.<br>
<br>
As a minimal test case, could you try to compile this one:<br>
<br>
        #include <openssl/ssl.h><br>
<br>
        int main()<br>
        {<br>
                SSL_CTX * ctx;<br>
                ctx = SSL_CTX_new(TLSv1_2_method());<br>
        }<br>
<br>
so as to check the consistency of the -I, -L and -l options passed to gcc?<br>
<span><font color="#888888"><br>
Axel<br>
<br>
--<br>
openssl-users mailing list<br>
To unsubscribe: <a href="https://mta.openssl.org/mailman/listinfo/openssl-users" target="_blank" rel="noreferrer">https://mta.openssl.org/mailman/listinfo/openssl-users</a><br>
</font></span></blockquote></div><br></div>
</div></div></blockquote></div><br></div>