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

Error installing notify #164

Open
kmlroot opened this issue Sep 19, 2018 · 3 comments
Open

Error installing notify #164

kmlroot opened this issue Sep 19, 2018 · 3 comments

Comments

@kmlroot
Copy link

kmlroot commented Sep 19, 2018

Hi,

I'm trying to install notify but it throws an error.

# github.com/rjeczalik/notify
ld: warning: text-based stub file /System/Library/Frameworks//CoreServices.framework/CoreServices.tbd and library file /System/Library/Frameworks//CoreServices.framework/CoreServices are out of sync. Falling back to library file for linking.
ld: warning: text-based stub file /System/Library/Frameworks//CFNetwork.framework/Versions/A/CFNetwork.tbd and library file /System/Library/Frameworks//CFNetwork.framework/Versions/A/CFNetwork are out of sync. Falling back to library file for linking.
ld: warning: text-based stub file /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/OSServices.framework/Versions/A/OSServices.tbd and library file /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/OSServices.framework/Versions/A/OSServices are out of sync. Falling back to library file for linking.
ld: warning: text-based stub file /System/Library/Frameworks//CoreFoundation.framework/Versions/A/CoreFoundation.tbd and library file /System/Library/Frameworks//CoreFoundation.framework/Versions/A/CoreFoundation are out of sync. Falling back to library file for linking.
ld: warning: text-based stub file /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchServices.framework/Versions/A/LaunchServices.tbd and library file /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchServices.framework/Versions/A/LaunchServices are out of sync. Falling back to library file for linking.
ld: warning: text-based stub file /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/SharedFileList.framework/Versions/A/SharedFileList.tbd and library file /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/SharedFileList.framework/Versions/A/SharedFileList are out of sync. Falling back to library file for linking.

Always it error is present trying to install quorum blockchain

I'm running on MacOS Sierra.

Regards,

Mauricio

@rjeczalik
Copy link
Owner

rjeczalik commented Sep 27, 2018

@fmauricios Do you have xcode command line tools installed? Looks like the issue may be with your toolchain. If not, could you please rerun build with -x flag and paste the output?

@eranhr
Copy link

eranhr commented Oct 22, 2018

Same problem here.

Error message:

../../vendor/github.com/rjeczalik/notify/watcher_fsevents_cgo.go:10:10: fatal error: 'CoreServices/CoreServices.h' file not found
#include <CoreServices/CoreServices.h>

When reviewing the file watcher_fsevents_cgo.go (at 10:10) it seems that the #include <CoreServices/CoreServices.h> statement is commented, so why error about the #include statement?


1. // Copyright (c) 2014-2015 The Notify Authors. All rights reserved.
2. // Use of this source code is governed by the MIT license that can be
3. // found in the LICENSE file.
4. 
5. // +build darwin,!kqueue
6. 
7. package notify
8. 
9. /*
10. #include <CoreServices/CoreServices.h>
11. 
12. typedef void (*CFRunLoopPerformCallBack)(void*);
13. 
14. void gosource(void *);
15. void gostream(uintptr_t, uintptr_t, size_t, uintptr_t, uintptr_t, uintptr_t);
16. 
17. static FSEventStreamRef EventStreamCreate(FSEventStreamContext * context, uintptr_t info, CFArrayRef paths, FSEventStreamEventId since, CFTimeInterval latency, FSEventStreamCreateFlags flags) {
18. 	context->info = (void*) info;
19. 	return FSEventStreamCreate(NULL, (FSEventStreamCallback) gostream, context, paths, since, latency, flags);
20. }
21. 
22. #cgo LDFLAGS: -framework CoreServices
23. */
24. import "C"
25. 
26. import ( ...

Attached build output file
xgo.zip

@rjeczalik
Copy link
Owner

rjeczalik commented Oct 23, 2018

@eranhr In CGO you put C code inside a comment. The problem here is missing or lacking xcode/SDK installation. Have you tried executing xcode-select --install?

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

3 participants