<html><body bgcolor="#FFFFFF"><div><div>Hi aleksey,</div><div>I'm trying again to compile for iOS but I need a check about a symbol I've found.</div><div>I'm trying to concentrate and resolve the problem on _<span class="Apple-style-span" style="-webkit-tap-highlight-color: rgba(26, 26, 26, 0.296875); -webkit-composition-fill-color: rgba(175, 192, 227, 0.230469); -webkit-composition-frame-color: rgba(77, 128, 180, 0.230469); ">xmlSecOpenSSLAppInit that is </span><span class="Apple-style-span" style="-webkit-tap-highlight-color: rgba(26, 26, 26, 0.292969); -webkit-composition-fill-color: rgba(175, 192, 227, 0.230469); -webkit-composition-frame-color: rgba(77, 128, 180, 0.230469); ">undefined in apps/crypto.c (as many other in this file) but I've found that this symbol is defined in another header.</span></div><div><span class="Apple-style-span" style="-webkit-tap-highlight-color: rgba(26, 26, 26, 0.292969); -webkit-composition-fill-color: rgba(175, 192, 227, 0.230469); -webkit-composition-frame-color: rgba(77, 128, 180, 0.230469); "><br></span></div><div><span class="Apple-style-span" style="-webkit-tap-highlight-color: rgba(26, 26, 26, 0.292969); -webkit-composition-fill-color: rgba(175, 192, 227, 0.230469); -webkit-composition-frame-color: rgba(77, 128, 180, 0.230469); ">In fact I've noticed that </span><span class="Apple-style-span" style="-webkit-tap-highlight-color: rgba(26, 26, 26, 0.292969); -webkit-composition-fill-color: rgba(175, 192, 227, 0.230469); -webkit-composition-frame-color: rgba(77, 128, 180, 0.230469); ">_<span class="Apple-style-span" style="-webkit-tap-highlight-color: rgba(26, 26, 26, 0.292969); -webkit-composition-fill-color: rgba(175, 192, 227, 0.230469); -webkit-composition-frame-color: rgba(77, 128, 180, 0.230469); ">xmlSecOpenSSLAppInit is undefined inside </span></span></div><div><span class="Apple-style-span" style="-webkit-tap-highlight-color: rgba(26, 26, 26, 0.292969); -webkit-composition-fill-color: rgba(175, 192, 227, 0.230469); -webkit-composition-frame-color: rgba(77, 128, 180, 0.230469); "><span class="Apple-style-span" style="-webkit-tap-highlight-color: rgba(26, 26, 26, 0.292969); -webkit-composition-fill-color: rgba(175, 192, 227, 0.230469); -webkit-composition-frame-color: rgba(77, 128, 180, 0.230469); ">src/openssl/libxmlsec1_openssl_la-crypto.o </span></span></div><div><span class="Apple-style-span" style="-webkit-tap-highlight-color: rgba(26, 26, 26, 0.292969); -webkit-composition-fill-color: rgba(175, 192, 227, 0.230469); -webkit-composition-frame-color: rgba(77, 128, 180, 0.230469); "><span class="Apple-style-span" style="-webkit-tap-highlight-color: rgba(26, 26, 26, 0.292969); -webkit-composition-fill-color: rgba(175, 192, 227, 0.230469); -webkit-composition-frame-color: rgba(77, 128, 180, 0.230469); ">and is undefined in </span></span></div><div><span class="Apple-style-span" style="-webkit-tap-highlight-color: rgba(26, 26, 26, 0.292969); -webkit-composition-fill-color: rgba(175, 192, 227, 0.230469); -webkit-composition-frame-color: rgba(77, 128, 180, 0.230469); "><span class="Apple-style-span" style="-webkit-tap-highlight-color: rgba(26, 26, 26, 0.292969); -webkit-composition-fill-color: rgba(175, 192, 227, 0.230469); -webkit-composition-frame-color: rgba(77, 128, 180, 0.230469); ">apps/crypto.o (that stops building) </span></span></div><div><span class="Apple-style-span" style="-webkit-tap-highlight-color: rgba(26, 26, 26, 0.292969); -webkit-composition-fill-color: rgba(175, 192, 227, 0.230469); -webkit-composition-frame-color: rgba(77, 128, 180, 0.230469); "><span class="Apple-style-span" style="-webkit-tap-highlight-color: rgba(26, 26, 26, 0.292969); -webkit-composition-fill-color: rgba(175, 192, 227, 0.230469); -webkit-composition-frame-color: rgba(77, 128, 180, 0.230469); ">but is defined inside </span></span></div><div><span class="Apple-style-span" style="-webkit-tap-highlight-color: rgba(26, 26, 26, 0.292969); -webkit-composition-fill-color: rgba(175, 192, 227, 0.230469); -webkit-composition-frame-color: rgba(77, 128, 180, 0.230469); "><span class="Apple-style-span" style="-webkit-tap-highlight-color: rgba(26, 26, 26, 0.292969); -webkit-composition-fill-color: rgba(175, 192, 227, 0.230469); -webkit-composition-frame-color: rgba(77, 128, 180, 0.230469); "></span></span><span class="Apple-style-span" style="-webkit-tap-highlight-color: rgba(26, 26, 26, 0.292969); -webkit-composition-fill-color: rgba(175, 192, 227, 0.230469); -webkit-composition-frame-color: rgba(77, 128, 180, 0.230469); ">src/openssl/libxmlsec1_openssl_la-apps.o !</span></div><div><span class="Apple-style-span" style="-webkit-tap-highlight-color: rgba(26, 26, 26, 0.292969); -webkit-composition-fill-color: rgba(175, 192, 227, 0.230469); -webkit-composition-frame-color: rgba(77, 128, 180, 0.230469); "><br></span></div><div><span class="Apple-style-span" style="-webkit-tap-highlight-color: rgba(26, 26, 26, 0.292969); -webkit-composition-fill-color: rgba(175, 192, 227, 0.230469); -webkit-composition-frame-color: rgba(77, 128, 180, 0.230469); ">Can you check if this is the normal state of symbols definition in your correct builds ?</span></div><div><span class="Apple-style-span" style="-webkit-tap-highlight-color: rgba(26, 26, 26, 0.292969); -webkit-composition-fill-color: rgba(175, 192, 227, 0.230469); -webkit-composition-frame-color: rgba(77, 128, 180, 0.230469); "><br></span></div><div><span class="Apple-style-span" style="-webkit-tap-highlight-color: rgba(26, 26, 26, 0.292969); -webkit-composition-fill-color: rgba(175, 192, 227, 0.230469); -webkit-composition-frame-color: rgba(77, 128, 180, 0.230469); ">Maybe makefile rules doesn't have the needed -l ? Could it depend on configure switch?</span></div><div><span class="Apple-style-span" style="-webkit-tap-highlight-color: rgba(26, 26, 26, 0.292969); -webkit-composition-fill-color: rgba(175, 192, 227, 0.230469); -webkit-composition-frame-color: rgba(77, 128, 180, 0.230469); "><br></span></div><div><span class="Apple-style-span" style="-webkit-tap-highlight-color: rgba(26, 26, 26, 0.292969); -webkit-composition-fill-color: rgba(175, 192, 227, 0.230469); -webkit-composition-frame-color: rgba(77, 128, 180, 0.230469); ">Thank you!</span></div><div><br></div><div><br>Il giorno 18/ago/2011, alle ore 16:50, Aleksey Sanin <<a href="mailto:aleksey@aleksey.com"><a href="mailto:aleksey@aleksey.com">aleksey@aleksey.com</a></a>> ha scritto:<br><br></div><div></div><blockquote type="cite"><div>
    Sorry, I am not familiar with iOS compilation so it is hard for me
    to say<br>
    something definite but it looks like you there is a problem with
    function<br>
    name mangling. <br>
    <pre class="moz-signature" cols="72">Aleksey
</pre>
    <br>
    On 8/18/11 5:34 AM, 84.le0n wrote:
    <blockquote cite="mid:CAHtW0Z9GgG_1kGiWTsUUieVaFd9MAnosHorLu60iiuKQQXUtpw@mail.gmail.com" type="cite">
      <div bgcolor="#FFFFFF">
        <div>
          <div><br>
            <span style="font-size:medium"><span>Hi all,</span></span><span style="font-size:medium"><br>
            </span><span style="font-size:medium"><span>after some test
                now I get another error, during make phase.</span></span></div>
          <div><span style="font-size:medium"><span></span></span><span style="font-size:medium"><br>
            </span><span style="font-size:medium"><span>These are the
                steps I've done, configuring </span></span><span style="font-size:medium"><span>for "build
                i386-apple-darwin10" and "host i686-apple-darwin10" (for
                iOs simulator included in SDK) :</span></span></div>
          <div><span style="font-size:medium">1) make of static
              libxml2.a (not using original libxml2.dylib because xmlsec
              requires newer version that that offered by Apple )<br>
            </span><span style="font-size:medium"><span>2) using this
                libxml2.a static lib I've built a static </span></span><span style="font-size:medium"><span>libxslt.a , version 1.1.26</span></span><span style="font-size:medium"><br>
            </span><span style="font-size:medium"><span>3) then I've
                builded openssl libs (libcrypto.a and libssl.a), version
                1.0.0.d</span></span><span style="font-size:medium"><br>
            </span><span style="font-size:medium"><span>4) the last is
                xmlsec version 1.2.18</span></span><span class="Apple-style-span" style="font-size: medium; ">,
              configured as follow</span></div>
          <div><span style="font-size:medium"><span></span></span><span style="font-size:medium"><br>
            </span><span style="font-size:medium"><span>------------------
                from here ------------------------</span></span><span style="font-size:medium"><br>
            </span><span style="font-size:medium"><span></span></span><span style="font-size:medium"><br>
            </span><span style="font-size:medium"><span>./configure \</span></span><span style="font-size:medium"><br>
            </span><span style="font-size:medium"><span>     --prefix=<destination_path>
                \</span></span><span style="font-size:medium"><br>
            </span><span style="font-size:medium"><span>     --build=i386-apple-darwin10
                \</span></span><span style="font-size:medium"><br>
            </span><span style="font-size:medium"><span>     --host=i686-apple-darwin10
                \</span></span><span style="font-size:medium"><br>
            </span><span style="font-size:medium"><span>     --enable-static
                \</span></span><span style="font-size:medium"><br>
            </span><span style="font-size:medium"><span>     --enable-static-linking
                \</span></span><span style="font-size:medium"><br>
            </span><span style="font-size:medium"><span>     --disable-shared
                \</span></span><span style="font-size:medium"><br>
            </span><span style="font-size:medium"><span>     --disable-crypto-dl
                \</span></span><span style="font-size:medium"><br>
            </span><span style="font-size:medium"><span>     --disable-apps-crypto-dl
                \</span></span><span style="font-size:medium"><br>
            </span><span style="font-size:medium"><span>     --disable-mscrypto
                \</span></span><span style="font-size:medium"><br>
            </span><span style="font-size:medium"><span>     --without-nspr
                \</span></span><span style="font-size:medium"><br>
            </span><span style="font-size:medium"><span>     --without-nss
                \</span></span><span style="font-size:medium"><br>
            </span><span style="font-size:medium"><span>     --without-seamonkey-ver
                \</span></span><span style="font-size:medium"><br>
            </span><span style="font-size:medium"><span>     --without-mozilla-ver
                \</span></span><span style="font-size:medium"><br>
            </span><span style="font-size:medium"><span>     --without-gcrypt
                \</span></span><span style="font-size:medium"><br>
            </span><span style="font-size:medium"><span>     --without-gnutls
                \</span></span><span style="font-size:medium"><br>
            </span><span style="font-size:medium"><span>     --with-default-crypto=</span></span><span style="font-size:medium"><span>openssl \</span></span></div>
          <div><font class="Apple-style-span" size="3">   
               --with-libxml=</font><span class="Apple-style-span" style="font-size: medium; "><path_of_my_libxml2> \</span><br>
            <span style="font-size:medium"><span>     --with-libxslt=<path_of_my_libxslt>
                \</span></span><span style="font-size:medium"><br>
            </span><span style="font-size:medium"><span>     --with-openssl=<path_of_my_openssl></span></span><span style="font-size:medium"><br>
            </span><span style="font-size:medium"><span></span></span><span style="font-size:medium"><br>
            </span><span style="font-size:medium"><span>------------------
                to here ------------------------</span></span><span style="font-size:medium"><br>
            </span><span style="font-size:medium"><span></span></span><span style="font-size:medium"><br>
              The configuration runs without problems and finds my libs
              correctly, but doing make I get this error</span></div>
          <div><span style="font-size:medium"><span></span></span><span style="font-size:medium"><br>
            </span><span style="font-size:medium"><span>------------------
                from here ------------------------</span></span><span style="font-size:medium"><br>
            </span><span style="font-size:medium"><span></span></span><br>
            <font class="Apple-style-span" size="3">
              <div>
                Undefined symbols:</div>
              <div>  "_xmlSecOpenSSLAppDefaultKeysMngrInit", referenced
                from:</div>
              <div>      _xmlSecAppCryptoSimpleKeysMngrInit in crypto.o</div>
              <div>  "_xmlSecOpenSSLTransformDes3CbcGetKlass",
                referenced from:</div>
              <div>      _xmlSecAppEncryptTmpl in xmlsec.o</div>
              <div>  "_xmlSecOpenSSLAppKeysMngrCertLoad", referenced
                from:</div>
              <div>      _xmlSecAppCryptoSimpleKeysMngrCertLoad in
                crypto.o</div>
              <div>  "_xmlSecOpenSSLAppDefaultKeysMngrLoad", referenced
                from:</div>
              <div>      _xmlSecAppCryptoSimpleKeysMngrLoad in crypto.o</div>
              <div>  "_xmlSecOpenSSLAppDefaultKeysMngrSave", referenced
                from:</div>
              <div>      _xmlSecAppCryptoSimpleKeysMngrSave in crypto.o</div>
              <div>  "_xmlSecOpenSSLAppKeyLoad", referenced from:</div>
              <div>      _xmlSecAppCryptoSimpleKeysMngrPkcs12KeyLoad in
                crypto.o</div>
              <div>      _xmlSecAppCryptoSimpleKeysMngrKeyAndCertsLoad
                in crypto.o</div>
              <div>  "_xmlSecOpenSSLShutdown", referenced from:</div>
              <div>      _xmlSecAppCryptoShutdown in crypto.o</div>
              <div>  "_xmlSecOpenSSLAppKeyCertLoad", referenced from:</div>
              <div>      _xmlSecAppCryptoSimpleKeysMngrKeyAndCertsLoad
                in crypto.o</div>
              <div>  "_xmlCheckVersion", referenced from:</div>
              <div>      _main in xmlsec.o</div>
              <div>  "_xmlSecOpenSSLAppDefaultKeysMngrAdoptKey",
                referenced from:</div>
              <div>      _xmlSecAppCryptoSimpleKeysMngrKeyGenerate in
                crypto.o</div>
              <div>      _xmlSecAppCryptoSimpleKeysMngrBinaryKeyLoad in
                crypto.o</div>
              <div>      _xmlSecAppCryptoSimpleKeysMngrPkcs12KeyLoad in
                crypto.o</div>
              <div>      _xmlSecAppCryptoSimpleKeysMngrKeyAndCertsLoad
                in crypto.o</div>
              <div>  "_xmlSecOpenSSLAppInit", referenced from:</div>
              <div>      _xmlSecAppCryptoInit in crypto.o</div>
              <div>  "_xmlSecOpenSSLTransformHmacSha1GetKlass",
                referenced from:</div>
              <div>      _xmlSecAppSignTmpl in xmlsec.o</div>
              <div>  "_xmlSecOpenSSLTransformSha1GetKlass", referenced
                from:</div>
              <div>      _xmlSecAppSignTmpl in xmlsec.o</div>
              <div>  "_xmlSecOpenSSLInit", referenced from:</div>
              <div>      _xmlSecAppCryptoInit in crypto.o</div>
              <div>  "_xmlSecOpenSSLAppGetDefaultPwdCallback",
                referenced from:</div>
              <div>      _xmlSecAppCryptoSimpleKeysMngrPkcs12KeyLoad in
                crypto.o</div>
              <div>      _xmlSecAppCryptoSimpleKeysMngrKeyAndCertsLoad
                in crypto.o</div>
              <div>  "_xmlSecOpenSSLAppShutdown", referenced from:</div>
              <div>      _xmlSecAppCryptoShutdown in crypto.o</div>
              <div>ld: symbol(s) not found</div>
              <div>collect2: ld returned 1 exit status</div>
              <div>make[2]: *** [xmlsec1] Error 1</div>
              <div>make[1]: *** [all-recursive] Error 1</div>
              <div>make: *** [all] Error 2</div>
              <div><br>
              </div>
            </font><span style="font-size:medium"><span></span></span><span style="font-size:medium"><br>
            </span><span style="font-size:medium"><span>------------------
                to here ------------------------</span></span><span style="font-size:medium"><br>
            </span><span style="font-size:medium"><span></span></span><span style="font-size:medium"><br>
              <br>
              The strange thing is that I can't find these symbols with
              the underscore, but without initial underscore I can find
              many results, an example :</span></div>
          <div><span style="font-size:medium"><br>
            </span></div>
          <div><span style="font-size:medium">------------------ from
              here ------------------------</span></div>
          <div><font class="Apple-style-span" size="3">--------------
               without underscore -------------</font></div>
          <div><span style="font-size:medium">
              <div>
                $ grep -Rin xmlSecOpenSSLAppGetDefaultPwdCallback ./</div>
              <div>Binary file ./xmlsec1-1.2.18/apps/crypto.o matches</div>
              <div>./xmlsec1-1.2.18/include/xmlsec/openssl/app.h:119:XMLSEC_CRYPTO_EXPORT
                void*            
                 xmlSecOpenSSLAppGetDefaultPwdCallback(void);</div>
              <div>./xmlsec1-1.2.18/include/xmlsec/openssl/symbols.h:109:#define
                xmlSecCryptoAppGetDefaultPwdCallback  
                 xmlSecOpenSSLAppGetDefaultPwdCallback</div>
              <div>Binary file
                ./xmlsec1-1.2.18/src/openssl/.libs/libxmlsec1-openssl.a
                matches</div>
              <div>./xmlsec1-1.2.18/src/openssl/app.c:1531: *
                xmlSecOpenSSLAppGetDefaultPwdCallback:</div>
              <div>./xmlsec1-1.2.18/src/openssl/app.c:1538:xmlSecOpenSSLAppGetDefaultPwdCallback(void)
                {</div>
              <div>./xmlsec1-1.2.18/src/openssl/crypto.c:250:  
                 gXmlSecOpenSSLFunctions->cryptoAppDefaultPwdCallback
                       = (void*)xmlSecOpenSSLAppGetDefaultPwdCallback();</div>
              <div>Binary file
                ./xmlsec1-1.2.18/src/openssl/libxmlsec1_openssl_la-app.o
                matches</div>
              <div>Binary file
                ./xmlsec1-1.2.18/src/openssl/libxmlsec1_openssl_la-crypto.o
                matches</div>
              <div><br>
              </div>
              <div><br>
              </div>
              <div>--------------  with underscore -------------</div>
              <div>$ grep -Rin _xmlsecopensslappgetdefault ./</div>
              <div>Binary file ./xmlsec1-1.2.18/apps/crypto.o matches</div>
              <div>Binary file
                ./xmlsec1-1.2.18/src/openssl/.libs/libxmlsec1-openssl.a
                matches</div>
              <div>Binary file
                ./xmlsec1-1.2.18/src/openssl/libxmlsec1_openssl_la-app.o
                matches</div>
              <div>Binary file
                ./xmlsec1-1.2.18/src/openssl/libxmlsec1_openssl_la-crypto.o
                matches</div>
              <div><br>
              </div>
            </span></div>
          <div><span style="font-size:medium">------------------ to here
              ------------------------</span></div>
          <div>
            <span style="font-size:medium"><span><br>
              </span></span></div>
          <div><font class="Apple-style-span" size="3">Why I obtain this
              error ?</font></div>
          <div><span style="font-size:medium"><span>Where are defined
                that symbols with underscore ?</span></span></div>
          <div><span style="font-size:medium"><span>What can I do to
                correct this error ?</span></span></div>
          <div><font class="Apple-style-span" size="3"><br>
            </font></div>
          <div><font class="Apple-style-span" size="3"><br>
            </font><span style="font-size:medium"><span>Thank you for
                your help!</span></span><br>
            <br>
          </div>
        </div>
        <div><span></span></div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
xmlsec mailing list
<a class="moz-txt-link-abbreviated" href="mailto:xmlsec@aleksey.com"></a><a href="mailto:xmlsec@aleksey.com"><a href="mailto:xmlsec@aleksey.com">xmlsec@aleksey.com</a></a>
<a class="moz-txt-link-freetext" href="http://www.aleksey.com/mailman/listinfo/xmlsec"></a><a href="http://www.aleksey.com/mailman/listinfo/xmlsec"><a href="http://www.aleksey.com/mailman/listinfo/xmlsec">http://www.aleksey.com/mailman/listinfo/xmlsec</a></a>
</pre>
    </blockquote>
  

</div></blockquote></div><div><span></span></div></body></html>