Jeremy,

Thanks for your comment. My immediate reaction was "no, that's not the problem; I have tried setting and unsetting DYLIB_LIBRARY_PATH in all possible permuations."

But then I noticed that you start with "/Applications/Utilities/XQuartz.app/Contents/MacOS/X11.bin". I had always stated with the script "/Applications/Utilities/XQuartz.app/Contents/MacOS/X11" (or from the XQuarz.app in Applications, which, I believe runs that script.)

So I thought, I'll try directly the binary X11.bin -- and that works! AND ONLY if I have DYLIB_LIBRARY_PATH unset. That is, there is something in the X11 script (it's rather opaque to me) that mucks up the subsequent start of X11.bin. I use C-shell by default, but the situation is analogous in bash.

I can live with that solution.

Bob Wohlhueter

On 3/14/16 4:03 AM, Jeremy Huddleston Sequoia wrote:
On Mar 13, 2016, at 22:14, Jeremy Huddleston Sequoia <[email protected]> wrote:


On Mar 13, 2016, at 13:53, Robert Wohlhueter <[email protected]> 
wrote:

Running OSX 10.10.5, and with Xquartz 2.7.7, 2.7.8, or 2.7.9beta, I get the 
error message that /usr/X11/lib/libfreetype.6.dylib cannot be loaded because it 
is v.17, and v. 19 id required. Details of the error messages are pasted below.

That would seem a straightforward problem, except that `otool -L` in fact 
reports that that lib is v.19 (also documented below.)  Actually, a search for 
libfreetype.6.dylib on my computer shows several instances, associated with 
individual software packages, I have tried all of these which allege to be v.19 
-- to no avail.

The problem persists regardless of my DYLD_LIBRARY_PATH env-setting (including 
none.)
I suspect that it is set in your .bashrc or .profile, so you unset it at the 
prompt, and then it gets reset in X11 when spawning X11.bin.

I suspect if you did the following, it would work:
   $ unset DYLD_LIBRARY_PATH
   $ ./X11.bin
To be a bit more clear here, the X11 file is a shell script which re-execs 
X11.bin in a login environment, so if your init scripts set DYLD_LIBRARY_PATH, 
it'll be re-added even though you unset it in the environment from which you 
executed X11.

Don't set DYLD_LIBRARY_PATH!

Can anyone explain to me the discrepancy between the Xquartz error message and 
the otool output?  Or, more usefully, can anyone point me to a 
libfreetype.6.dylib that will work with current versions of Xquartz?
The one that comes with it works great.  Don't set DYLD_LIBRARY_PATH globally 
and expect things to work.

--Jeremy

Thanks,
Bob Wohlhueter

*******************************************************************************************
[summer-8:Contents/MacOS]44 bobw% ./X11 &
[1] 56252
[summer-8:Contents/MacOS]45 bobw% dyld: Library not loaded: 
/opt/X11/lib/libfreetype.6.dylib
Referenced from: /opt/X11/lib/libXfont.1.dylib
Reason: Incompatible library version: libXfont.1.dylib requires version 19.0.0 
or later, but libfreetype.6.dylib provides version 17.0.0


[summer-8:Contents/MacOS]45 bobw% otool -L /opt/X11/lib/libfreetype.6.dylib
/opt/X11/lib/libfreetype.6.dylib:
   /opt/X11/lib/libfreetype.6.dylib (compatibility version 19.0.0, current 
version 19.1.0)
   /usr/lib/libz.1.dylib (compatibility version 1.0.0, current version 1.2.5)
   /usr/lib/libbz2.1.0.dylib (compatibility version 1.0.0, current version 
1.0.5)
   @rpath/libclang_rt.asan_osx_dynamic.dylib (compatibility version 0.0.0, 
current version 0.0.0)
   /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 
1213.0.0)



_______________________________________________
Do not post admin requests to the list. They will be ignored.
X11-users mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription: 
https://lists.apple.com/mailman/options/x11-users/jeremyhu%40freedesktop.org

This email sent to [email protected]
_______________________________________________
Do not post admin requests to the list. They will be ignored.
X11-users mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription: 
https://lists.apple.com/mailman/options/x11-users/jeremyhu%40freedesktop.org

This email sent to [email protected]

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
X11-users mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription: 
https://lists.apple.com/mailman/options/x11-users/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to