0

I have just imported MailCore2 into my project and I have followed all the steps that they have stated, but I am still getting an issue.

duplicate symbol _hmac_md5_final in:

XYZ/Debug-iphonesimulator/libetpan-ios.a(md5.o)
ABC/libs/libsmbclient.a(hmacmd5.o) 

duplicate symbol _hmac_md5 in:

XYZ/Debug-iphonesimulator/libetpan-ios.a(md5.o)
ABC/libs/libsmbclient.a(hmacmd5.o) ld: 2 duplicate symbols for architecture x86_64

From what I can understand, _hmac_md5 and _hmac_md5_final appear in both of the files libetpan-ios.a * libsmbclient.a. In other posts people state that I need to remove one of the links or rename. I am using KxSMB and MailCore2 so I have no idea how to do any of these.

I have tried methods in other posts as much as I can follow them but:

  • I don't understand where I need to go.
  • I try them but end up getting far more errors.
Hatman
  • 21
  • 1
  • 5
BunkerBilly
  • 172
  • 2
  • 11
  • Try to delete derived data. Go to Window - Projects, select your project and click Delete next to Derived Data label – nsinvocation Nov 03 '15 at 10:16
  • Thanks, i have done this but i am still getting the same error. – BunkerBilly Nov 03 '15 at 11:04
  • There is no trivial way to solve this issue as both libraries have implemented the same functions. – trojanfoe Nov 03 '15 at 11:24
  • so are you saying that there is no way around this? i have to abandon what i am doing and find another way? – BunkerBilly Nov 03 '15 at 13:38
  • If you were absolutely sure that the two implementations of those two functions were exactly the same and that they were the only functions needed from one of those .o files, it would be possible to delete that .o module from its .a archives using `ar -d` on the command line. However, the probability of that breaking even more stuff is very high. – Phillip Mills Nov 03 '15 at 13:45
  • Thanks Phillip, i think that it will cause more issues if i delete one of the .o files so I'm going to look at a different way of doing it. – BunkerBilly Nov 03 '15 at 13:54
  • I think that I'd need to prefix the names of the functions in md5 (disclosure: I'm the maintainer of MailCore and libetpan). Could you file an issue in libetpan? Thanks! – Dinh Viêt Hoà Nov 03 '15 at 17:23
  • Thank you @DinhViêtHoà is there anyway that i can PM you? thanks. – BunkerBilly Nov 03 '15 at 17:38
  • Asking questions on stackoverflow is fine except if there are sensitive informations. – Dinh Viêt Hoà Nov 04 '15 at 06:52
  • ok no worries, i have submitted an issue to libetpan. – BunkerBilly Nov 04 '15 at 09:21

0 Answers0