Opened 14 years ago
Closed 14 years ago
#26716 closed defect (worksforme)
libsdl +no_x11: sdl-config omits -Wl,-framework,Cocoa from libs
Reported by: | realnc (Nikos Chantziaras) | Owned by: | jmroot (Joshua Root) |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 1.9.1 |
Keywords: | Cc: | raimue (Rainer Müller), mww@… | |
Port: | libsdl |
Description
smpeg can't be built. libsdl has been built with +no_x11. log attached.
This is on OS X 10.6.4, XCode 3.2.4.
I am attaching the full log, but the errors have this form:
:info:build ".objc_class_name_NSProcessInfo", referenced from: :info:build literal-pointer@__OBJC@__cls_refs@NSProcessInfo in libSDLmain.a(SDLMain.o) [...] :info:build _main in libSDLmain.a(SDLMain.o) :info:build _main in libSDLmain.a(SDLMain.o) :info:build _main in libSDLmain.a(SDLMain.o) [etc, etc]
Attachments (1)
Change History (7)
Changed 14 years ago by realnc (Nikos Chantziaras)
comment:2 Changed 14 years ago by raimue (Rainer Müller)
Cc: | raimue@… added |
---|
This could as well be an issue with libsdl. What does the following command print on your system?
$ sdl-config --cflags --libs
On my Mac OS X 10.6.4 with libsdl @1.2.14_8+universal (build_arch x86_64), this results in:
-I/opt/local/include/SDL -D_GNU_SOURCE=1 -D_THREAD_SAFE -L/opt/local/lib -lSDLmain -lSDL -Wl,-framework,Cocoa
In your attached log file I don't see any mention of Cocoa, which makes me wonder if SDL might be reporting wrong flags.
comment:3 Changed 14 years ago by realnc (Nikos Chantziaras)
"-Wl,-framework,Cocoa" is indeed missing from sdl-config's output:
$ sdl-config --cflags --libs -I/opt/local/include/SDL -D_GNU_SOURCE=1 -D_THREAD_SAFE -L/opt/local/lib -lSDLmain -lSDL
I edited the sdl-config script manually and put "-Wl,-framework,Cocoa" at the end. After that, smpeg builds fine.
If you're trying to reproduce, I've built libsdl with "+no_x11 +universal" and my macports.conf has these settings:
build_arch i386 universal_archs i386 ppc
comment:4 Changed 14 years ago by jmroot (Joshua Root)
Cc: | mww@… added; realnc@… removed |
---|---|
Owner: | changed from macports-tickets@… to nox@… |
Port: | libsdl added; smpeg removed |
Summary: | smpeg @0.4.4 build error → libsdl +no_x11: sdl-config omits -Wl,-framework,Cocoa from libs |
comment:5 Changed 14 years ago by jmroot (Joshua Root)
Owner: | changed from nox@… to jmr@… |
---|---|
Status: | new → assigned |
comment:6 Changed 14 years ago by jmroot (Joshua Root)
Resolution: | → worksforme |
---|---|
Status: | assigned → closed |
Can't reproduce.
smpeg install log