8000 Undefined symbols for architecture armv7 · Issue #143 · MailCore/MailCore · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Undefined symbols for architecture armv7 #143

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
dwijsoft-dipen opened this issue Mar 5, 2015 · 11 comments
Open

Undefined symbols for architecture armv7 #143

dwijsoft-dipen opened this issue Mar 5, 2015 · 11 comments

Comments

@dwijsoft-dipen
Copy link

When i am try to build and install the application which uses libsasl2.a library it works fine but when i am going to create archive of it to distribute for testing i am getting below errors.

Undefined symbols for architecture armv7:
"_EVP_DigestUpdate", referenced from:
_otp_hash in libsasl2.a(otp.o)
_word2bin in libsasl2.a(otp.o)
"_EVP_DigestFinal", referenced from:
_otp_hash in libsasl2.a(otp.o)
_word2bin in libsasl2.a(otp.o)
"_EVP_get_digestbyname", referenced from:
_generate_otp in libsasl2.a(otp.o)
_otp_server_mech_step in libsasl2.a(otp.o)
"_DES_ede3_cbc_encrypt", referenced from:
_enc_3des in libsasl2.a(digestmd5.o)
_dec_3des in libsasl2.a(digestmd5.o)
"_EVP_cleanup", referenced from:
_otp_common_mech_free in libsasl2.a(otp.o)
"_EVP_DigestInit", referenced from:
_otp_hash in libsasl2.a(otp.o)
_word2bin in libsasl2.a(otp.o)
"_OpenSSL_add_all_digests", referenced from:
_otp_server_plug_init in libsasl2.a(otp.o)
_otp_client_plug_init in libsasl2.a(otp.o)
"_DES_key_sched", referenced from:
_init_des in libsasl2.a(digestmd5.o)
_init_3des in libsasl2.a(digestmd5.o)
"_DES_cbc_encrypt", referenced from:
_enc_des in libsasl2.a(digestmd5.o)
_dec_des in libsasl2.a(digestmd5.o)
ld: symbol(s) not found for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)

@CodaFi
Copy link
Member
CodaFi commented Mar 5, 2015

You are linking with libCrypto, right?

@dwijsoft-dipen
Copy link
Author

Yes i am. Also please note that i am able to install the application on my device through Xcode very well only getting issue when i am trying to create archive of the application to distribute it.

In my settings, i have tried $(ARCHS_STANDARD_32_BIT) only as well Build Active Architecture Only to NO

8000
@dwijsoft-dipen
Copy link
Author

I tried move libsasl to under mailcore but getting same error.

@CodaFi
Copy link
Member
CodaFi commented Mar 5, 2015

What's in your linker flags?

@dwijsoft-dipen
Copy link
Author

-ObjC only.

1 similar comment
@dwijsoft-dipen
Copy link
Author

-ObjC only.

@CodaFi
Copy link
Member
CodaFi commented Mar 5, 2015

Throw in -lcrypto too.

@dwijsoft-dipen
Copy link
Author

Cool that's solve my issue. Thanks :)

@CodaFi
Copy link
Member
CodaFi commented Mar 8, 2015

Glad I could be of service! ✨

@dwijsoft-dipen
Copy link
Author

Hey sorry for bugging you again, unfortunately now i am getting error as you can see in the screenshots.
screen shot 2015-03-08 at 5 56 40 pm

Again it is only happening when i am trying to create archive.

In my target dependancy i have added libsasa2.a and added it my library section. not sure what i am doing wrong.

@dwijsoft-dipen dwijsoft-dipen reopened this Mar 8, 2015
@CodaFi
Copy link
Member
CodaFi commented Mar 8, 2015

When you add a library you also need to let the linker know with -l flags. Here you want to add -lsasl2.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants
0