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

static failure os x #35

Open
rdp opened this issue Jul 20, 2018 · 1 comment
Open

static failure os x #35

rdp opened this issue Jul 20, 2018 · 1 comment

Comments

@rdp
Copy link

rdp commented Jul 20, 2018

with dynamic it works, but with static:


$ ./configure --enable-static --disable-shared && make

  CCLD     bench
Undefined symbols for architecture x86_64:
  "_CGDisplayPixelsHigh", referenced from:
      _convert_NSRect in libcaca.a(libcaca_la-cocoa.o)
  "_CGMainDisplayID", referenced from:
      _convert_NSRect in libcaca.a(libcaca_la-cocoa.o)
  "_GetCurrentProcess", referenced from:
      _register_cocoa_app in libcaca.a(libcaca_la-cocoa.o)
  "_NSApp", referenced from:
      -[CacaWindowDelegate windowShouldClose:] in libcaca.a(libcaca_la-cocoa.o)
      _cocoa_get_event in libcaca.a(libcaca_la-cocoa.o)
      _register_cocoa_app in libcaca.a(libcaca_la-cocoa.o)
      _create_application_menus in libcaca.a(libcaca_la-cocoa.o)
  "_NSDefaultRunLoopMode", referenced from:
      _cocoa_get_event in libcaca.a(libcaca_la-cocoa.o)
  "_NSFontAttributeName", referenced from:
      -[CacaView setFont:] in libcaca.a(libcaca_la-cocoa.o)
  "_NSForegroundColorAttributeName", referenced from:
      -[CacaView drawRect:] in libcaca.a(libcaca_la-cocoa.o)
  "_NSIntersectsRect", referenced from:
      -[CacaView drawRect:] in libcaca.a(libcaca_la-cocoa.o)
  "_NSLog", referenced from:
      -[CacaView keyDown:] in libcaca.a(libcaca_la-cocoa.o)
      -[CacaView mouseMoved:] in libcaca.a(libcaca_la-cocoa.o)
  "_NSRectFill", referenced from:
      -[CacaView drawRect:] in libcaca.a(libcaca_la-cocoa.o)
  "_NSRectFillListWithColors", referenced from:
      -[CacaView drawRect:] in libcaca.a(libcaca_la-cocoa.o)
  "_NSUnderlineStyleAttributeName", referenced from:
      -[CacaView initWithFrame:] in libcaca.a(libcaca_la-cocoa.o)
  "_OBJC_CLASS_$_NSApplication", referenced from:
      objc-class-ref in libcaca.a(libcaca_la-cocoa.o)
      l_OBJC_$_CATEGORY_NSApplication_$_Caca in libcaca.a(libcaca_la-cocoa.o)
  "_OBJC_CLASS_$_NSAutoreleasePool", referenced from:
      objc-class-ref in libcaca.a(libcaca_la-cocoa.o)
  "_OBJC_CLASS_$_NSBundle", referenced from:
      objc-class-ref in libcaca.a(libcaca_la-cocoa.o)
  "_OBJC_CLASS_$_NSColor", referenced from:
      objc-class-ref in libcaca.a(libcaca_la-cocoa.o)
      l_OBJC_$_CATEGORY_NSColor_$_Caca in libcaca.a(libcaca_la-cocoa.o)
  "_OBJC_CLASS_$_NSCursor", referenced from:
      objc-class-ref in libcaca.a(libcaca_la-cocoa.o)
  "_OBJC_CLASS_$_NSDate", referenced from:
      objc-class-ref in libcaca.a(libcaca_la-cocoa.o)
  "_OBJC_CLASS_$_NSEvent", referenced from:
      objc-class-ref in libcaca.a(libcaca_la-cocoa.o)
  "_OBJC_CLASS_$_NSFont", referenced from:
      objc-class-ref in libcaca.a(libcaca_la-cocoa.o)
  "_OBJC_CLASS_$_NSMenu", referenced from:
      objc-class-ref in libcaca.a(libcaca_la-cocoa.o)
  "_OBJC_CLASS_$_NSMenuItem", referenced from:
      objc-class-ref in libcaca.a(libcaca_la-cocoa.o)
  "_OBJC_CLASS_$_NSMutableDictionary", referenced from:
      objc-class-ref in libcaca.a(libcaca_la-cocoa.o)
  "_OBJC_CLASS_$_NSNumber", referenced from:
      objc-class-ref in libcaca.a(libcaca_la-cocoa.o)
  "_OBJC_CLASS_$_NSObject", referenced from:
      _OBJC_CLASS_$_CacaWindowDelegate in libcaca.a(libcaca_la-cocoa.o)
      _OBJC_CLASS_$_CacaAppDelegate in libcaca.a(libcaca_la-cocoa.o)
  "_OBJC_CLASS_$_NSProcessInfo", referenced from:
      objc-class-ref in libcaca.a(libcaca_la-cocoa.o)
  "_OBJC_CLASS_$_NSString", referenced from:
      objc-class-ref in libcaca.a(libcaca_la-cocoa.o)
  "_OBJC_CLASS_$_NSView", referenced from:
      _OBJC_CLASS_$_CacaView in libcaca.a(libcaca_la-cocoa.o)
  "_OBJC_CLASS_$_NSWindow", referenced from:
      objc-class-ref in libcaca.a(libcaca_la-cocoa.o)
  "_OBJC_IVAR_$_NSApplication._running", referenced from:
      -[NSApplication(Caca) setRunning] in libcaca.a(libcaca_la-cocoa.o)
  "_OBJC_METACLASS_$_NSObject", referenced from:
      _OBJC_METACLASS_$_CacaView in libcaca.a(libcaca_la-cocoa.o)
      _OBJC_METACLASS_$_CacaWindowDelegate in libcaca.a(libcaca_la-cocoa.o)
      _OBJC_METACLASS_$_CacaAppDelegate in libcaca.a(libcaca_la-cocoa.o)
  "_OBJC_METACLASS_$_NSView", referenced from:
      _OBJC_METACLASS_$_CacaView in libcaca.a(libcaca_la-cocoa.o)
  "_SetFrontProcess", referenced from:
      _register_cocoa_app in libcaca.a(libcaca_la-cocoa.o)
  "_TransformProcessType", referenced from:
      _register_cocoa_app in libcaca.a(libcaca_la-cocoa.o)
  "___CFConstantStringClassReference", referenced from:
      CFString in libcaca.a(libcaca_la-cocoa.o)
      CFString in libcaca.a(libcaca_la-cocoa.o)
      CFString in libcaca.a(libcaca_la-cocoa.o)
      CFString in libcaca.a(libcaca_la-cocoa.o)
      CFString in libcaca.a(libcaca_la-cocoa.o)
      CFString in libcaca.a(libcaca_la-cocoa.o)
      CFString in libcaca.a(libcaca_la-cocoa.o)
      ...
  "__objc_empty_cache", referenced from:
      _OBJC_CLASS_$_CacaView in libcaca.a(libcaca_la-cocoa.o)
      _OBJC_METACLASS_$_CacaView in libcaca.a(libcaca_la-cocoa.o)
      _OBJC_METACLASS_$_CacaWindowDelegate in libcaca.a(libcaca_la-cocoa.o)
      _OBJC_CLASS_$_CacaWindowDelegate in libcaca.a(libcaca_la-cocoa.o)
      _OBJC_METACLASS_$_CacaAppDelegate in libcaca.a(libcaca_la-cocoa.o)
      _OBJC_CLASS_$_CacaAppDelegate in libcaca.a(libcaca_la-cocoa.o)
  "_objc_msgSend", referenced from:
      -[CacaView initWithFrame:] in libcaca.a(libcaca_la-cocoa.o)
      -[CacaView dealloc] in libcaca.a(libcaca_la-cocoa.o)
      -[CacaView setFont:] in libcaca.a(libcaca_la-cocoa.o)
      -[CacaView resizeIfNeeded:] in libcaca.a(libcaca_la-cocoa.o)
      -[CacaView updateBuffersFromCaca:] in libcaca.a(libcaca_la-cocoa.o)
      -[CacaView drawRect:] in libcaca.a(libcaca_la-cocoa.o)
      +[NSColor(Caca) colorFromRgb12:] in libcaca.a(libcaca_la-cocoa.o)
      ...
  "_objc_msgSendSuper2", referenced from:
      -[CacaView initWithFrame:] in libcaca.a(libcaca_la-cocoa.o)
      -[CacaView dealloc] in libcaca.a(libcaca_la-cocoa.o)
  "_objc_msgSend_stret", referenced from:
      -[CacaView setupNewSize] in libcaca.a(libcaca_la-cocoa.o)
      -[CacaView setFont:] in libcaca.a(libcaca_la-cocoa.o)
      _cocoa_get_display_width in libcaca.a(libcaca_la-cocoa.o)
      _cocoa_get_display_height in libcaca.a(libcaca_la-cocoa.o)
      _create_first_window in libcaca.a(libcaca_la-cocoa.o)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

@rdp
Copy link
Author

rdp commented Jul 20, 2018

work around: --disable-cocoa

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

1 participant