On May 31, 2011, at 4:15 PM, Guilherme Kunigami wrote:

> I've grep'ed the output libraries and got:
> 
> dyld: loaded: /usr/X11/lib/libGLU.1.dylib
> dyld: loaded: /usr/X11/lib/libGL.1.dylib
> dyld: loaded: /opt/local/lib/libX11.6.dylib
> dyld: loaded: /usr/X11/lib/libXext.6.dylib
> dyld: loaded: /usr/X11/lib/libX11.6.dylib
> dyld: loaded: /usr/X11/lib/libXdmcp.6.dylib
> dyld: loaded: /usr/X11/lib/libXau.6.dylib
> 
> Indeed, it's using another version of X11 on /opt/local/lib (may it was 
> installed by mac ports?).

Bingo!  That's the problem.  You've got some client library mismatch.  From 
your call stack, I'm guessing it's some protocol incompatibility in the libXext 
(from /usr) call that is calling back into libX11 (from /opt) ... Probably 
right around where clientData becomes garbage.

> For the working version (without openGL) I have:
> 
> dyld: loaded: /opt/local/lib/libX11.6.dylib

Either the /opt or the /usr libX11 dylib are probably fine by themselves.  The 
problem is the other X11 libraries (Xext, Xu, Xi, GLX, etc) that should match.

> I'm not sure on how to fix that.

Well the super easy "fix" is rm -rf /opt ... but the proper way to keep both is 
to take /opt/local/lib out of your DYLD_LIBRARY_PATH (just unset it) during 
compilation and runtime.  Mac Ports adds things to your search paths so you 
might have to look in your .profile (or .bash_profile).  The cmake "find" logic 
might be being too "helpful" if it auto-added /opt/local/lib to linker flags.  
If you run "otool -L /path/to/mged" it should tell you whether the wrong 
library (/opt) was set during link-time or run-time.

> Didn't solve the problem.  It just isolated it.  :)

Now it's solved.. and fortunately not a problem in the source code.  ;-)

Cheers!
Sean

------------------------------------------------------------------------------
Simplify data backup and recovery for your virtual environment with vRanger. 
Installation's a snap, and flexible recovery options mean your data is safe,
secure and there when you need it. Data protection magic?
Nope - It's vRanger. Get your free trial download today. 
http://p.sf.net/sfu/quest-sfdev2dev
_______________________________________________
BRL-CAD Users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-users

Reply via email to