zerodivisi0n / FinderMenu

Adding items to Finder's contextual menu
MIT License
84 stars 17 forks source link

xcode 8 build fail #12

Open liufsd opened 8 years ago

liufsd commented 8 years ago

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 commented 6 years ago

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