[MacPorts] #33679: libSDL - dependency on xlib?
MacPorts
noreply at macports.org
Sun Mar 18 17:31:28 PDT 2012
#33679: libSDL - dependency on xlib?
-------------------------------------+--------------------------------------
Reporter: david.reitter@… | Owner: jmr@…
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.0.4
Keywords: | Port: libsdl
-------------------------------------+--------------------------------------
Changes (by ryandesign@…):
* owner: macports-tickets@… => jmr@…
* port: => libsdl
Old description:
> When compiling a project against SDL installed with Macports (upgraded to
> current, and installed with +universal, which is x86_64 and i386 for me),
> I get errors indicating missing dependencies. I believe this symbols are
> defined in Xlib, though I can't find Xlib on my system, nor is there a
> Macports package to be installed.
>
> Undefined symbols for architecture x86_64:
> "_XCreateIC", referenced from:
> _SDL_X11_LoadSymbols in libSDL.a(SDL_x11dyn.o)
> "_XGetICValues", referenced from:
> _SDL_X11_LoadSymbols in libSDL.a(SDL_x11dyn.o)
> "_XEventsQueued", referenced from:
> _X11_Pending in libSDL.a(SDL_x11events.o)
>
> Linking against the X11 libraries on OS X works, though I'm surprised
> that Macports doesn't have a dependency on X11. A static build (using
> the OS X - provided X11 libraries) would be best for me in this case.
New description:
When compiling a project against SDL installed with Macports (upgraded to
current, and installed with +universal, which is x86_64 and i386 for me),
I get errors indicating missing dependencies. I believe this symbols are
defined in Xlib, though I can't find Xlib on my system, nor is there a
Macports package to be installed.
{{{
Undefined symbols for architecture x86_64:
"_XCreateIC", referenced from:
_SDL_X11_LoadSymbols in libSDL.a(SDL_x11dyn.o)
"_XGetICValues", referenced from:
_SDL_X11_LoadSymbols in libSDL.a(SDL_x11dyn.o)
"_XEventsQueued", referenced from:
_X11_Pending in libSDL.a(SDL_x11events.o)
}}}
Linking against the X11 libraries on OS X works, though I'm surprised that
Macports doesn't have a dependency on X11. A static build (using the OS X
- provided X11 libraries) would be best for me in this case.
--
Comment:
Please provide a reproduction recipe: a set of steps we can perform on our
systems to arrive at the error message you showed. Otherwise it's hard for
us to test possible fixes.
MacPorts provides X11. See the dozens of xorg ports. MacPorts ports
should depend where needed on these ports, and should not use the system
X11.
--
Ticket URL: <https://trac.macports.org/ticket/33679#comment:1>
MacPorts <http://www.macports.org/>
Ports system for Mac OS
More information about the macports-tickets
mailing list