Opened 14 months ago

Last modified 14 months ago

#68198 closed defect

libquirc +full fails on 10.6.8: Undefined symbols: "_main", referenced from: start in crt1.10.5.o (maybe you meant: _SDL_main) — at Initial Version

Reported by: barracuda156 Owned by:
Priority: Normal Milestone:
Component: ports Version: 2.8.1
Keywords: snowleopard, powerpc, rosetta Cc:
Port: libquirc

Description

As is,

/opt/local/var/macports/build/_opt_PPCRosettaPorts_graphics_libquirc/libquirc/work/compwrap/cc/opt/local/bin/gcc-mp-12 -o quirc-demo demo/camera.o demo/mjpeg.o demo/convert.o demo/dthash.o demo/demoutil.o demo/demo.o libquirc.a -Wl,-headerpad_max_install_names -L/opt/local/lib -lMacportsLegacySupport -arch ppc -lm -ljpeg  -lSDL -lSDL_gfx
Undefined symbols:
  "_main", referenced from:
      start in crt1.10.5.o
     (maybe you meant: _SDL_main)
ld: symbol(s) not found
collect2: error: ld returned 1 exit status
gmake: *** [Makefile:72: quirc-demo] Error 1

If -lSDLmain is added, failure becomes:

/opt/local/var/macports/build/_opt_PPCRosettaPorts_graphics_libquirc/libquirc/work/compwrap/cc/opt/local/bin/gcc-mp-12 -o quirc-demo demo/camera.o demo/mjpeg.o demo/convert.o demo/dthash.o demo/demoutil.o demo/demo.o libquirc.a -Wl,-headerpad_max_install_names -L/opt/local/lib -lMacportsLegacySupport -arch ppc -arch ppc -lm -ljpeg  -lSDL -lSDLmain -lSDL_gfx
Undefined symbols:
  ".objc_class_name_NSProcessInfo", referenced from:
      literal-pointer@__OBJC@__cls_refs@NSProcessInfo in libSDLmain.a(SDLMain.o)
  "_NSApp", referenced from:
      _NSApp$non_lazy_ptr in libSDLmain.a(SDLMain.o)
     (maybe you meant: _NSApp$non_lazy_ptr, .objc_category_name_NSApplication_SDLApplication )
  "_CPSGetCurrentProcess", referenced from:
      _main in libSDLmain.a(SDLMain.o)
  "_CPSSetFrontProcess", referenced from:
      _main in libSDLmain.a(SDLMain.o)
  ".objc_class_name_NSApplication", referenced from:
      literal-pointer@__OBJC@__cls_refs@NSApplication in libSDLmain.a(SDLMain.o)
  "_NSDeallocateMemoryPages", referenced from:
      -[NSString(ReplaceSubString) stringByReplacingRange:with:] in libSDLmain.a(SDLMain.o)
  "___CFConstantStringClassReference", referenced from:
      cfstring=CFBundleName in libSDLmain.a(SDLMain.o)
      cfstring= in libSDLmain.a(SDLMain.o)
      cfstring=About  in libSDLmain.a(SDLMain.o)
      cfstring=Hide  in libSDLmain.a(SDLMain.o)
      cfstring=h in libSDLmain.a(SDLMain.o)
      cfstring=Hide Others in libSDLmain.a(SDLMain.o)
      cfstring=Show All in libSDLmain.a(SDLMain.o)
      cfstring=Quit  in libSDLmain.a(SDLMain.o)
      cfstring=q in libSDLmain.a(SDLMain.o)
      cfstring=Window in libSDLmain.a(SDLMain.o)
      cfstring=Minimize in libSDLmain.a(SDLMain.o)
      cfstring=m in libSDLmain.a(SDLMain.o)
  "_CFBundleGetMainBundle", referenced from:
      -[SDLMain setupWorkingDirectory:] in libSDLmain.a(SDLMain.o)
      _main in libSDLmain.a(SDLMain.o)
  ".objc_class_name_NSMenu", referenced from:
      literal-pointer@__OBJC@__cls_refs@NSMenu in libSDLmain.a(SDLMain.o)
  "_CFBundleGetInfoDictionary", referenced from:
      _main in libSDLmain.a(SDLMain.o)
  "_CPSEnableForegroundOperation", referenced from:
      _main in libSDLmain.a(SDLMain.o)
  "_CFURLCreateCopyDeletingLastPathComponent", referenced from:
      -[SDLMain setupWorkingDirectory:] in libSDLmain.a(SDLMain.o)
  ".objc_class_name_NSString", referenced from:
      literal-pointer@__OBJC@__cls_refs@NSString in libSDLmain.a(SDLMain.o)
  ".objc_class_name_NSObject", referenced from:
      .objc_class_name_SDLMain in libSDLmain.a(SDLMain.o)
  ".objc_class_name_NSAutoreleasePool", referenced from:
      literal-pointer@__OBJC@__cls_refs@NSAutoreleasePool in libSDLmain.a(SDLMain.o)
  "_CFRelease", referenced from:
      -[SDLMain setupWorkingDirectory:] in libSDLmain.a(SDLMain.o)
      -[SDLMain setupWorkingDirectory:] in libSDLmain.a(SDLMain.o)
  "_CFBundleCopyBundleURL", referenced from:
      -[SDLMain setupWorkingDirectory:] in libSDLmain.a(SDLMain.o)
  ".objc_class_name_NSMenuItem", referenced from:
      literal-pointer@__OBJC@__cls_refs@NSMenuItem in libSDLmain.a(SDLMain.o)
  "_CFURLGetFileSystemRepresentation", referenced from:
      -[SDLMain setupWorkingDirectory:] in libSDLmain.a(SDLMain.o)
  "_NSAllocateMemoryPages", referenced from:
      -[NSString(ReplaceSubString) stringByReplacingRange:with:] in libSDLmain.a(SDLMain.o)
ld: symbol(s) not found
collect2: error: ld returned 1 exit status
gmake: *** [Makefile:72: quirc-demo] Error 1

Change History (0)

Note: See TracTickets for help on using tickets.