duplicate symbol _GAD_MD5

1,673 views
Skip to first unread message

Andrew_I

unread,
Apr 17, 2013, 3:49:19 AM4/17/13
to google-adm...@googlegroups.com, sergey.i...@rhyboo.net

I have following linking error during build my project with AdMob iOS 6.4.0 SDK.


duplicate symbol _GAD_MD5 in:

    ../Admob/libGoogleAdMobAds.a(md5.o)

    ../Admob/libGoogleAdMobAds.a(gad_md5.o)

ld: 1 duplicate symbol for architecture armv7s

clang: error: linker command failed with exit code 1 (use -v to see invocation)


It looks like problem in libGoogleAdMobAds.a library.

Rajkumar Parameswaran

unread,
Apr 17, 2013, 4:40:35 PM4/17/13
to google-adm...@googlegroups.com, sergey.i...@rhyboo.net
Are you using the -all_load flag for some reason? If you are, you should probably change it to use -force_load and point it to whatever SDK requires it.


--
 
---
You received this message because you are subscribed to the Google Groups "Google AdMob Ads Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-admob-ads...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Andrew_I

unread,
Apr 18, 2013, 1:33:52 AM4/18/13
to google-adm...@googlegroups.com, sergey.i...@rhyboo.net
I have changed linker flag to -force_load. Result is same.

duplicate symbol _GAD_MD5 in:

    ../Admob/libGoogleAdMobAds.a(md5.o)

    ../Admob/libGoogleAdMobAds.a(gad_md5.o)

ld: 1 duplicate symbol for architecture armv7s


Please see the issue more careful. The problem is in the libGoogleAdMobAds.a and it looks like two object files (md5.ogad_md5.o) inside this library are exporting one symbol with same name (_GAD_MD5). This issue is only for armv7s architecture, build with armv7 working good (with -all_load and -force_load options).

четверг, 18 апреля 2013 г., 0:40:35 UTC+4 пользователь Raj Parameswaran написал:
Are you using the -all_load flag for some reason? If you are, you should probably change it to use -force_load and point it to whatever SDK requires it.
On Wed, Apr 17, 2013 at 12:49 AM, Andrew_I <asi....@gmail.com> wrote:

I have following linking error during build my project with AdMob iOS 6.4.0 SDK.


duplicate symbol _GAD_MD5 in:

    ../Admob/libGoogleAdMobAds.a(md5.o)

    ../Admob/libGoogleAdMobAds.a(gad_md5.o)

ld: 1 duplicate symbol for architecture armv7s

clang: error: linker command failed with exit code 1 (use -v to see invocation)


It looks like problem in libGoogleAdMobAds.a library.

--
 
---
You received this message because you are subscribed to the Google Groups "Google AdMob Ads Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-admob-ads-sdk+unsub...@googlegroups.com.

Rajkumar Parameswaran

unread,
Apr 19, 2013, 1:45:16 PM4/19/13
to google-adm...@googlegroups.com, sergey.i...@rhyboo.net
What path did you give the -force_load flag? We've seen this issue come up when you do -force_load or -all_load for the admob SDK (which you shouldn't need to do with the latest SDK).


To unsubscribe from this group and stop receiving emails from it, send an email to google-admob-ads...@googlegroups.com.

Rajkumar Parameswaran

unread,
Apr 19, 2013, 4:50:45 PM4/19/13
to google-adm...@googlegroups.com, sergey.i...@rhyboo.net
What other SDK's are you using? If you're using any that require the -all_load flag, you should replace them with -force_load followed by the path of the SDK that requires it. 


On Fri, Apr 19, 2013 at 3:36 AM, <a.iv...@tinkoffdigital.ru> wrote:
I have the same problem.
duplicate symbol _GAD_MD5
...
ld: 1 duplicate symbol for architecture armv7s



среда, 17 апреля 2013 г., 11:49:19 UTC+4 пользователь Andrew_I написал:

--

Rajkumar Parameswaran

unread,
Apr 25, 2013, 4:54:15 PM4/25/13
to google-adm...@googlegroups.com, sergey.i...@rhyboo.net
What SDK's are you using that require the -all_load flag? Are you sure you've used -force_load with the correct path for all of them.

If you want, you can send me a small test app with the SDK's you're using linked and I can see if I can get the linker flags to work right.


On Mon, Apr 22, 2013 at 12:31 AM, <a.iv...@tinkoffdigital.ru> wrote:
Hello, i do this, but the smae problem. What am I doing wrong?



суббота, 20 апреля 2013 г., 0:50:45 UTC+4 пользователь Raj Parameswaran написал:
To unsubscribe from this group and stop receiving emails from it, send an email to google-admob-ads-sdk+unsub...@googlegroups.com.

For more options, visit https://groups.google.com/groups/opt_out.
 
 

Rajkumar Parameswaran

unread,
Apr 29, 2013, 4:02:04 PM4/29/13
to google-adm...@googlegroups.com
Are you saying that you've tried the -force_load flag (http://developer.apple.com/library/mac/#qa/qa1490/_index.html) and pointed it at ShareKit's static library but you're still getting the error? Can you send me a small sample project with the error happening with you trying -force_load?


On Thu, Apr 25, 2013 at 9:26 PM, Jens-Uwe Mager <jum...@gmail.com> wrote:
Sharekit (available on GitHub) requires this, for instance. It provides an implementation of various social media sharing (Facebook, Twitter, G+...).

John Opferkuch

unread,
May 23, 2013, 3:53:14 PM5/23/13
to google-adm...@googlegroups.com, sergey.i...@rhyboo.net
Yes, same here

On Tuesday, May 21, 2013, Hugo Conde wrote:
it seems i solved it. 

If you're using the Admob v6.2 library make sure you're NOT using the -all_load linker flag, use the-ObjC linker flag instead, apart from -Obj-C
--
 
---
You received this message because you are subscribed to a topic in the Google Groups "Google AdMob Ads Developers" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-admob-ads-sdk/yfQbiqzLfdA/unsubscribe?hl=en-US.
To unsubscribe from this group and all its topics, send an email to google-admob-ads...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages