bugDenemo - Bugs: bug #46117, Denemo fails to start on OSX...

 
 

bug #46117: Denemo fails to start on OSX 10.10.5

Submitter:  None
Submitted:  Sun 04 Oct 2015 03:28:15 AM UTC
   
 
Category:  None Severity:  3 - Normal
Item Group:  None Status:  Invalid
Privacy:  Public Assigned to:  jjbenham
Originator Name:  Open/Closed:  Closed
* Mandatory Fields

Add a New Comment Rich Markup
   

Jump to the original submission

Tue 20 Oct 2015 10:44:22 PM UTC, comment #6: 

ah, time for the post of shame

As it turns out I was using a third party unarchiving utility called "The Unarchiver", which automatically inserted symlinks to half of the libraries.  When untarred using tar -vjf, the archive is intact. I imagine that the program behaved in this fashion in order to save space by symlinking identical files. I was not able to find a config setting that relates to that behavior, though.

Apologies to all for taking up time on a PEBCAK issue.

Rakesh Babu <rbabu>
Sat 10 Oct 2015 02:16:12 AM UTC, comment #5: 

Just a follow-up, I was able to re-link the symlinks in Denemo.app using some bash magic adapted from here (http://unix.stackexchange.com/questions/18360/how-can-i-relink-a-lot-of-broken-symlinks), and was able to successfully start the application.

The first step I ran was to fix the symlinks using this command: find ./ -lname './Denemo.app/*'      -exec sh -c 'ln -snf "../../../../$(readlink "$0")" "$0"' {} \;

The next step was to use the symlinks utility to simplify the symlinks to the current directory (https://github.com/brandt/symlinks)

Thanks!

Rakesh Babu <rbabu>
Sun 04 Oct 2015 05:14:44 PM UTC, comment #4: 

My pleasure!

Rakesh Babu <rbabu>
Sun 04 Oct 2015 03:21:52 PM UTC, comment #3: 

It looks to me like this link:

libglib-2.0.0.dylib -> Denemo.app/Contents/Resources/lib/libglib-2.0.dylib

will fail because it has nothing before Denemo.app, I would think it should be ../../../../Denemo.app/.....
so as to be self-contained.

There is a clue as to why this may have worked for Jeremiah when he built it, namely the system seems happy to fall back to another version installed in /usr/local/lib but this fails on your machine as it is not a compatible version.

I hope this will help Jeremiah get a fix sorted out.
Thank you for the feedback.



Richard Shann <rshann>
Group administrator
Sun 04 Oct 2015 01:51:25 PM UTC, comment #2: 

Hi, Richard,

That's a seriously impressive response time!

And sorry, I knew I was forgetting something! This was the version 1.2.4 dmg from the downloads page. Thank you for the link to the latest development version. The same error occurs when executing the same shell script. I'm pasting the replicated error messages off of the latest build below this message.

I'm noticing some broken symlinks in the Denemo.app/Contents/lib/ directory. I'm not sure if this is something that's supposed to be resolved by the OS at runtime, or if it's just a goof in the build script. Please see the output from some ls and cat commands:

Macbook-white:lib rbabu$ pwd
/Users/rbabu/Desktop/Denemo.app/Contents/Resources/lib
Macbook-white:lib rbabu$ ls -al libglib-2.0.*
lrwxr-xr-x@ 1 rbabu  staff       51 Sep 28 14:46 libglib-2.0.0.dylib -> Denemo.app/Contents/Resources/lib/libglib-2.0.dylib
-rwxr-xr-x@ 1 rbabu  staff  1197492 Sep 28 14:46 libglib-2.0.dylib
-rwxr-xr-x@ 1 rbabu  staff     1061 Sep 28 14:46 libglib-2.0.la
Macbook-white:lib rbabu$ cat libglib-2.0.0.dylib
cat: libglib-2.0.0.dylib: No such file or directory
Macbook-white:lib rbabu$

I'm pretty sure I'm too lazy to re-create all of these symlinks by hand, but re-linking libglib-2.0.0 to ./libglib-2.0.dylib as opposed to Denemo.app/Contents/lib/libglib-2.0.dylib did remove the libglib error line from the output.


Thanks for your help!

--Rakesh


Here's the replicated error message off of the provided build:

Macbook-white:MacOS rbabu$ cd ~/Desktop/Denemo.app/Contents/MacOS/
Macbook-white:MacOS rbabu$ ls
denemo.icns denemo.sh
Macbook-white:MacOS rbabu$ ./denemo.sh
dyld: Library not loaded: @executable_path/../lib/libglib-2.0.0.dylib
  Referenced from: /Users/rbabu/Desktop/Denemo.app/Contents/MacOS/../Resources/bin/glib-compile-schemas
  Reason: no suitable image found.  Did find:
/usr/local/lib/libglib-2.0.0.dylib: mach-o, but wrong architecture
./denemo.sh: line 11: 34473 Trace/BPT trap: 5       $PREFIX/bin/glib-compile-schemas $PREFIX/share/glib-2.0/schemas/
dyld: Library not loaded: @executable_path/../lib/libexpat.1.dylib
  Referenced from: /Users/rbabu/Desktop/Denemo.app/Contents/MacOS/../Resources/bin/fc-cache
  Reason: Incompatible library version: fc-cache requires version 8.0.0 or later, but libexpat.1.dylib provides version 7.0.0
./denemo.sh: line 31: 34476 Trace/BPT trap: 5       $PREFIX/bin/fc-cache -fv ~/Library/Fonts/
dyld: Library not loaded: @executable_path/../lib/libexpat.1.dylib
  Referenced from: /Users/rbabu/Desktop/Denemo.app/Contents/MacOS/../Resources/bin/pango-querymodules
  Reason: Incompatible library version: pango-querymodules requires version 8.0.0 or later, but libexpat.1.dylib provides version 7.0.0
./denemo.sh: line 32: 34477 Trace/BPT trap: 5       $PREFIX/bin/pango-querymodules > $PREFIX/etc/pango/pango.modules
dyld: Library not loaded: @executable_path/../lib/libguile.17.dylib
  Referenced from: /Users/rbabu/Desktop/Denemo.app/Contents/MacOS/../Resources/bin/denemo
  Reason: image not found
./denemo.sh: line 33: 34478 Trace/BPT trap: 5       $PREFIX/bin/denemo

Rakesh Babu <rbabu>
Sun 04 Oct 2015 06:47:51 AM UTC, comment #1: 

which version of denemo?

http://denemo.org/~jjbenham/gub/uploads/denemo-0.0.0-0.darwin-x86.tar.bz2
is close to the version we are about to release as version 2.0, if you see this behavior on that version please report this ASAP

Richard Shann <rshann>
Group administrator
Sun 04 Oct 2015 03:28:15 AM UTC, original submission:  

Denemo fails to start on OSX 10.10.5 when denemo.sh is called from the Denemo.app/Contents/MacOS folder, the following errors appear:

Macbook-white:MacOS rbabu$ ./denemo.sh
dyld: Library not loaded: @executable_path/../lib/libglib-2.0.0.dylib
  Referenced from: /Applications/Denemo.app/Contents/MacOS/../Resources/bin/glib-compile-schemas
  Reason: no suitable image found.  Did find:
/usr/local/lib/libglib-2.0.0.dylib: mach-o, but wrong architecture
./denemo.sh: line 11: 32615 Trace/BPT trap: 5       $PREFIX/bin/glib-compile-schemas $PREFIX/share/glib-2.0/schemas/
dyld: Library not loaded: @executable_path/../lib/libexpat.1.dylib
  Referenced from: /Applications/Denemo.app/Contents/MacOS/../Resources/bin/fc-cache
  Reason: Incompatible library version: fc-cache requires version 8.0.0 or later, but libexpat.1.dylib provides version 7.0.0
./denemo.sh: line 31: 32619 Trace/BPT trap: 5       $PREFIX/bin/fc-cache -fv ~/Library/Fonts/
dyld: Library not loaded: @executable_path/../lib/libexpat.1.dylib
  Referenced from: /Applications/Denemo.app/Contents/MacOS/../Resources/bin/pango-querymodules
  Reason: Incompatible library version: pango-querymodules requires version 8.0.0 or later, but libexpat.1.dylib provides version 7.0.0
./denemo.sh: line 32: 32620 Trace/BPT trap: 5       $PREFIX/bin/pango-querymodules > $PREFIX/etc/pango/pango.modules
dyld: Library not loaded: @executable_path/../lib/libguile.17.dylib
  Referenced from: /Applications/Denemo.app/Contents/MacOS/../Resources/bin/denemo
  Reason: image not found
./denemo.sh: line 33: 32621 Trace/BPT trap: 5       $PREFIX/bin/denemo

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by rbabu (Posted a comment)
  • -email is unavailable- added by rshann (Posted a comment)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2017-02-23 rshann StatusNone Invalid
        Open/ClosedOpen Closed
    2015-10-04 rshann Assigned toNone jjbenham

    Back to the top

    Powered by Savane 3.13-f8d8.
    Corresponding source code