-
Notifications
You must be signed in to change notification settings - Fork 74
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
Duplicate Symbols #14
Comments
Hmmm, how does your build settings looks like? Are you by any chance linking PJSIP twice? I think there might be some duplicate libs being linked somewhere (from Gossip or otherwise.) I'll give a full fresh build this weekend and see if there's anything to be updated but that's my initial thoughts. Also, feel free to PR if you find anything broken or incorrect. : ) |
I think it was my mistake - I added libGossip.a to my link build phase. I didn't realize that Xcode would link to it automatically because it is part of the workspace. |
On further investigation, it appears that libGossip.a does need to be in the link build phase, and that results in the duplicate symbols. I ran % ar xv libGossip.a | sort | uniq -d |
I followed the read me, including building a fat binary. I included the project into my workspace and added libc++.dylib to my project to get everything to compile. However, I'm getting 56 duplicate symbols in libGossip.o when linking. One from error.o, about half in sdp.o, and the rest in sdp_cmp.o.
duplicate symbol _pjmedia_strerror in error.o
duplicate symbol _pjmedia_sdp_attr_create in sdp.o
duplicate symbol _pjmedia_sdp_attr_clone in sdp.o
duplicate symbol _pjmedia_sdp_attr_find in sdp.o
...
duplicate symbol _pjmedia_sdp_media_cmp in sdp_cmp.o
duplicate symbol _pjmedia_sdp_session_cmp in sdp_cmp.o
duplicate symbol _pjmedia_sdp_conn_cmp in sdp_cmp.o
...
Any idea what I need to do to eliminate the duplicate symbols?
Thanks!
The text was updated successfully, but these errors were encountered: