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 10 build failure #305

Closed
tburgin opened this issue Sep 27, 2018 · 1 comment
Closed

Xcode 10 build failure #305

tburgin opened this issue Sep 27, 2018 · 1 comment

Comments

@tburgin
Copy link
Member

tburgin commented Sep 27, 2018

santa-driver_info.c used to be generated by xcodebuild at the begging of the run. This allowed us to edit the version string literal. Xcode 10 now generates the file right before compiling it.
Our script to edit the version fails with:

santa-driver_info.c: No such file or directory
Command PhaseScriptExecution failed with a nonzero exit code

A work around is to write the file to disk at the location xcodebuild expects.

#include <mach/mach_types.h>

extern kern_return_t _start(kmod_info_t *ki, void *data);
extern kern_return_t _stop(kmod_info_t *ki, void *data);

__attribute__((visibility("default"))) KMOD_EXPLICIT_DECL(com.google.santa-driver, "0.9.30", _start, _stop)
__private_extern__ kmod_start_func_t *_realmain = 0;
__private_extern__ kmod_stop_func_t *_antimain = 0;
__private_extern__ int _kext_apple_cc = __APPLE_CC__ ;

This workaround will likely be the only solution until #303

@russellhancox
Copy link
Collaborator

Obsolete now we use bazel.

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