[MacPorts] #68198: libquirc +full fails on 10.6.8: Undefined symbols: "_main", referenced from: start in crt1.10.5.o (maybe you meant: _SDL_main)
MacPorts
noreply at macports.org
Wed Sep 20 14:09:10 UTC 2023
#68198: libquirc +full fails on 10.6.8: Undefined symbols: "_main", referenced
from: start in crt1.10.5.o (maybe you meant: _SDL_main)
---------------------------+-------------------------------------------
Reporter: barracuda156 | Owner: mascguy
Type: defect | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version: 2.8.1
Resolution: | Keywords: snowleopard, powerpc, rosetta
Port: libquirc |
---------------------------+-------------------------------------------
Changes (by mascguy):
* status: new => assigned
* owner: (none) => mascguy
Old 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 at __OBJC@__cls_refs at 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 at __OBJC@__cls_refs at 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 at __OBJC@__cls_refs at 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 at __OBJC@__cls_refs at 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 at __OBJC@__cls_refs at 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 at __OBJC@__cls_refs at 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
> }}}
New 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
}}}
--
--
Ticket URL: <https://trac.macports.org/ticket/68198#comment:1>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list