openssl symbol clashes on iOS

SBusch
edited July 2013 in Native
I am getting a lot of Duplicate Symbol errors, due to symbols presumably coming from openssl being included in libPhoton as well as another 3rd party lib (see screenshot)
Is there any way, you could release a build of libPhoton with renamed symbols?

Thank You,
Sören

Comments

  • Hi Sören.

    Argh, I have been afraid that the day would have to come, when those symbols will clash: Basically the bignum code is the only remaining part of the codebase, which still gets compiled as C, so that it doesn't get name-spaced yet.
    We will see, what we can do, to prefix that code.
    How urgent is this issue for you?
  • Hi, thanks for the reply

    we are right now working on an update for our game that uses amazon login and Photon client and we are pretty far in development, so I would say, it is somewhat urgent
  • Hi, It seems that 5 years later, the issue has still not been resolved:
    duplicate symbol _MD5_Init in: libPhoton-cpp_debug_macosx.a(md5.o)
    duplicate symbol _SHA1_Init in: libPhoton-cpp_debug_macosx.a(sha1.o)
    Is there any plan to fix this issue?
  • Kaiserludi
    Kaiserludi admin
    edited May 2019
    Hi @TinyToony.

    The issue that this thread was about, has been resolved back in July 2013 shortly after it got reported.
    What you are seeing is not the same issue. The symbols that have been clashing back than were in sha256.o, sha2.o and bn_lib.o, while the clashes that you are reporting are from md5.o and sha1.o.
    The latter two files have only been added to the Photon Client relatively recently about half a year ago and you are the first one reporting this issue with that new part of the code.

    Of course we will fix this for the next release.
  • Hi @Kaiserludi

    Ok, I see. Thanks for your quick reply.
    Do you have an ETA for the next release?
  • If it can help, here is the full log:
    duplicate symbol _MD5_Init in: libPhoton-cpp_debug_macosx.a(md5.o)
    duplicate symbol _MD5_Final in: libPhoton-cpp_debug_macosx.a(md5.o)
    duplicate symbol _MD5_Update in: libPhoton-cpp_debug_macosx.a(md5.o)
    duplicate symbol _SHA1_Init in: libPhoton-cpp_debug_macosx.a(sha1.o)
    duplicate symbol _SHA1_Final in: libPhoton-cpp_debug_macosx.a(sha1.o)
    duplicate symbol _SHA1_Update in: libPhoton-cpp_debug_macosx.a(sha1.o)
  • Hi @TinyToony.

    Do you have an ETA for the next release?

    It just got available in our download section as v4.1.12.2.
  • Hi @Kaiserludi

    Could it be possible to get an older version of the SDK which don't have the two files that causes trouble in order to be able to start working on the implementation of Photon on my side?
    I will need the sdks for the following platforms: iOS, Android, Mac, Windows, Linux.
    Thanks for your help!
  • @TinyToony:
    Why would you want to use an older version, if you could just use the new fixed version?
  • Oh, ok, I did not see your previous message.
    Thanks for your quick fix. I will test it ASAP.
    So, you can just forget my last request.
    Thanks!
  • Hi @Kaiserludi

    It works like a charm. Thanks a lot for your help!