Bug 109168 - dyld: Library not loaded: /opt/X11/lib/libXft.2.dylib
Summary: dyld: Library not loaded: /opt/X11/lib/libXft.2.dylib
Status: RESOLVED WORKSFORME
Alias: None
Product: XQuartz
Classification: Unclassified
Component: New Bugs (show other bugs)
Version: 2.7.11 (xserver-1.18.4)
Hardware: x86 (IA32) Mac OS X (All)
: medium critical
Assignee: Jeremy Huddleston Sequoia
QA Contact: Jeremy Huddleston Sequoia
URL:
Whiteboard:
Keywords:
: 109211 (view as bug list)
Depends on:
Blocks:
 
Reported: 2018-12-28 20:39 UTC by Alan Glasser
Modified: 2019-01-18 02:02 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
attachment-9025-0.html (9.71 KB, text/html)
2019-01-16 17:16 UTC, Alan Glasser
Details

Description Alan Glasser 2018-12-28 20:39:26 UTC
Error message from XQuartz 2.7.11 (xorg-server 1.18.4) on new MacBook Pro 15-inch, 2018, running macOS Mojave Version 10.14:

$ xterm
dyld: Library not loaded: /opt/X11/lib/libXft.2.dylib
  Referenced from: /usr/bin/xterm
  Reason: no suitable image found.  Did find:
        /opt/X11/lib/libXft.2.dylib: code signature in (/opt/X11/lib/libXft.2.dylib) not valid for use in process using Library Validation: mapping process is a platform binary, but mapped file is not
        /opt/X11/lib/libXft.2.dylib: stat() failed with errno=1
Abort
$

The same versions of XQuartz and operating system work correctly on MacBook Pro Mid-2015.  The new mac was set up by Migration Assistant from the old mac.
Comment 1 Jeremy Huddleston Sequoia 2019-01-15 21:11:12 UTC
Did you overwrite this file by copying another one over it?

What's the output of 'codesign -vvv -d /opt/X11/lib/libXft.2.dylib'?

Why do you have /usr/bin/xterm on your system?
Comment 2 Jeremy Huddleston Sequoia 2019-01-15 21:11:36 UTC
*** Bug 109211 has been marked as a duplicate of this bug. ***
Comment 3 Alan Glasser 2019-01-16 17:16:10 UTC
Created attachment 143143 [details]
attachment-9025-0.html

Jeremy,

Thanks for your reply.  See my replies below.

> On Jan 15, 2019, at 1:11 PM, bugzilla-daemon@freedesktop.org wrote:
> 
> Jeremy Huddleston Sequoia <mailto:jeremyhu@freedesktop.org> changed bug 109168 <https://bugs.freedesktop.org/show_bug.cgi?id=109168> 
> What	Removed	Added
> Status	NEW	RESOLVED
> Resolution	---	WORKSFORME
> 
> Comment # 1 <https://bugs.freedesktop.org/show_bug.cgi?id=109168#c1> on bug 109168 <https://bugs.freedesktop.org/show_bug.cgi?id=109168> from Jeremy Huddleston Sequoia <mailto:jeremyhu@freedesktop.org>
> Did you overwrite this file by copying another one over it?
It’s possible.  I used Migration Assistant to copy files, about 750GB, from my 2015 MacBook Pro to my new 2018 MacBook Pro.  Various things didn’t work right, so I reinstalled both XCode and XQuartz 2.7.11.  I did not delete the existing XQuartz before reinstalling, so that would probably be where the overwrite occurred.
> What's the output of 'codesign -vvv -d /opt/X11/lib/libXft.2.dylib’?
Executable=/opt/X11/lib/libXft.2.dylib
Identifier=libXft.2
Format=Mach-O universal (i386 x86_64)
CodeDirectory v=20200 size=808 flags=0x0(none) hashes=21+2 location=embedded
Hash type=sha256 size=32
CandidateCDHash sha1=ea79e144d73ab253e83f9c4274a98a2eee12930e
CandidateCDHash sha256=964d0ca307ce031fd4f16346419e4906ed54ac8f
Hash choices=sha1,sha256
CDHash=964d0ca307ce031fd4f16346419e4906ed54ac8f
Signature size=8927
Authority=Developer ID Application: Apple Inc. - XQuartz (NA574AWV7E)
Authority=Developer ID Certification Authority
Authority=Apple Root CA
Timestamp=Oct 29, 2016 at 1:02:09 AM
Info.plist=not bound
TeamIdentifier=NA574AWV7E
Sealed Resources=none
Internal requirements count=1 size=168
> Why do you have /usr/bin/xterm on your system?
It’s a different code, not part of XQuartz, which was sent to me by a friend, who thought it might be a workaround for the XQuartz problem.  It didn’t solve the problem.  I could delete it.

My hope is that you will send me detailed instructions for deleting and reinstalling XQuartz.

Alan
==================================================
Dr. Alan H. Glasser , CEO
Fusion Theory & Computation, Inc.
24062 Seatter Lane NE
Kingston, WA 98346-9223
Phone: 505-690-1489, Email: aglasser5@gmail.com
Comment 4 Jeremy Huddleston Sequoia 2019-01-18 02:02:15 UTC
> On Jan 16, 2019, at 09:16, Alan H. Glasser <aglasser5@gmail.com> wrote:
> 
> Jeremy,
> 
> Thanks for your reply.  See my replies below.
> 
>> On Jan 15, 2019, at 1:11 PM, bugzilla-daemon@freedesktop.org wrote:
>> 
>> Jeremy Huddleston Sequoia changed bug 109168 
>> What	Removed	Added
>> Status	NEW	RESOLVED
>> Resolution	---	WORKSFORME
>> 
>> Comment # 1 on bug 109168 from Jeremy Huddleston Sequoia
>> Did you overwrite this file by copying another one over it?
>> 
> It’s possible.  I used Migration Assistant to copy files, about 750GB, from my 2015 MacBook Pro to my new 2018 MacBook Pro.  Various things didn’t work right, so I reinstalled both XCode and XQuartz 2.7.11.  I did not delete the existing XQuartz before reinstalling, so that would probably be where the overwrite occurred.
>> What's the output of 'codesign -vvv -d /opt/X11/lib/libXft.2.dylib’?
> Executable=/opt/X11/lib/libXft.2.dylib
> Identifier=libXft.2
> Format=Mach-O universal (i386 x86_64)
> CodeDirectory v=20200 size=808 flags=0x0(none) hashes=21+2 location=embedded
> Hash type=sha256 size=32
> CandidateCDHash sha1=ea79e144d73ab253e83f9c4274a98a2eee12930e
> CandidateCDHash sha256=964d0ca307ce031fd4f16346419e4906ed54ac8f
> Hash choices=sha1,sha256
> CDHash=964d0ca307ce031fd4f16346419e4906ed54ac8f
> Signature size=8927
> Authority=Developer ID Application: Apple Inc. - XQuartz (NA574AWV7E)
> Authority=Developer ID Certification Authority
> Authority=Apple Root CA
> Timestamp=Oct 29, 2016 at 1:02:09 AM
> Info.plist=not bound
> TeamIdentifier=NA574AWV7E
> Sealed Resources=none
> Internal requirements count=1 size=168
>> Why do you have /usr/bin/xterm on your system?
> It’s a different code, not part of XQuartz, which was sent to me by a friend, who thought it might be a workaround for the XQuartz problem.  It didn’t solve the problem.  I could delete it.
> 
> My hope is that you will send me detailed instructions for deleting and reinstalling XQuartz.

That code signature looks correct.

There are uninstallation instructions on the website at:
https://www.xquartz.org/FAQs.html

Search for "Uninstall" on the page.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.