Re: OpenGL and -flat_namespace with Apple X11
Re: OpenGL and -flat_namespace with Apple X11
- Subject: Re: OpenGL and -flat_namespace with Apple X11
- From: "Torrey T. Lyons" <email@hidden>
- Date: Wed, 12 Mar 2003 18:42:16 -0800
At 9:11 PM -0500 3/12/03, David R. Morrison wrote:
John Harper <email@hidden> wrote:
On Wednesday, Mar 12, 2003, at 16:55 US/Pacific, Benjamin Reed wrote:
> KDE has a number of bits that link OpenGL that are libtool modules.
> Libtool modules translate into bundles that are linked with
> -flat_namespace. Unfortunately, this breaks with the redirection that
> goes on to allow indirect GL in Apple's X11.
That's unfortunate - is there no way to link the modules in two-level
namespace mode? Why does it break?
John,
I don't know what the situation is with KDE, but I brought this up a
month or two ago regarding any package that links to the lesstif or
openMotif libs.
The strategy of the Motif folks is to extend the functionality of
certain X11 libs by resolving some symbols which would normally be
handled by X11. This works great with -flat_namespace, but we were
never able to get it to work with two-level namespaces.
Isn't this because the Motif folks are behind the times? :-) It used
to be necessary to use -flat_namespace with any binary that included
libXm because it overrode some things pulled in by the then two-level
namespace libXt. But libXt has been reverted to being a flat
namespace image to avoid this problem since XFree86 4.2.0.1. In
theory no binary that uses libXm should have to link with
-flat_namespace as long as you have a recent version of libXt. If
there are other reasons for needing to use flat namespace binary
images I'd like to hear of them because they could point to
additional libraries that need to be flattened. Of course, Apple's
current X11 may not include the newer flattened libXt, which would be
a cruel Catch-22.
So there is currently an incompatibility between X11.app and any
package using both lesstif/openMotif and OpenGL.
When I brought this up before, you or Haroon or somebody said it was
going to be fixed in a later version. Well, you probably weren't as
explicit as that :-) but I understood that to be the implication.
Perhaps he meant that libXt would become a flat namespace image again
which would allow you to stop using -flat_namespace?
--Torrey
_______________________________________________
x11-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/x11-users
X11 for Mac OS X FAQ: http://developer.apple.com/qa/qa2001/qa1232.html
Report issues, request features, feedback: http://developer.apple.com/bugreporter
Do not post admin requests to the list. They will be ignored.