Skip to content
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

xcode 8 build fail #12

Open
liufsd opened this issue Oct 26, 2016 · 1 comment
Open

xcode 8 build fail #12

liufsd opened this issue Oct 26, 2016 · 1 comment

Comments

@liufsd
Copy link

liufsd commented Oct 26, 2016

Undefined symbols for architecture x86_64:
"___pthread_set_self", referenced from:
_injectEntry in mach_inject_bundle_stub.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

** BUILD FAILED **

The following build commands failed:
Ld build/mach_inject_bundle_stub.build/Default/mach_inject_bundle_stub.build/Objects-normal/x86_64/mach_inject_bundle_stub normal x86_64
(1 failure)

@surrenderios
Copy link

Undefined symbols for architecture x86_64:
"___pthread_set_self", referenced from:
_injectEntry in mach_inject_bundle_stub.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

** BUILD FAILED **

The following build commands failed:
Ld build/mach_inject_bundle_stub.build/Default/mach_inject_bundle_stub.build/Objects-normal/x86_64/mach_inject_bundle_stub normal x86_64
(1 failure)

i try to Fix problem in this way, It works well
/*
Mac OS X 10.12 change __pthread_set_self in libSystem.B.dylb to _pthread_set_self
*/

#ifdef __MAC_10_12
extern void _pthread_set_self(char*);
_pthread_set_self(dummy_pthread_struct);
#else
extern void __pthread_set_self(char*);
__pthread_set_self(dummy_pthread_struct);
#endif

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