[MacPorts] #47708: gedit builds but does not launch
#47708: gedit builds but does not launch --------------------+---------------------- Reporter: mf2k@… | Owner: devans@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.99 Keywords: | Port: gedit --------------------+---------------------- I'm trying to run gedit on OS X 10.9.5. It installs fine, but when I go to run it, I see the following error: {{{ $ gedit Couldn't open /opt/X11/lib/libGL.1.dylib: dlopen(/opt/X11/lib/libGL.1.dylib, 5): image not found }}} {{{ $ port contents mesa | grep libGL /opt/local/lib/libGL.1.dylib /opt/local/lib/libGL.dylib }}} {{{ $ port installed gedit* mesa The following ports are currently installed: gedit @3.16.1_0+python34 (active) gedit-plugins @3.16.0_0+python34 (active) mesa @10.5.4_0+osmesa+python27 (active) }}} -- Ticket URL: <https://trac.macports.org/ticket/47708> MacPorts <https://www.macports.org/> Ports system for OS X
#47708: gedit builds but does not launch ---------------------+---------------------- Reporter: mf2k@… | Owner: devans@… Type: defect | Status: assigned Priority: Normal | Milestone: Component: ports | Version: 2.3.99 Resolution: | Keywords: Port: gedit | ---------------------+---------------------- Changes (by devans@…): * status: new => assigned -- Ticket URL: <https://trac.macports.org/ticket/47708#comment:1> MacPorts <https://www.macports.org/> Ports system for OS X
#47708: gedit builds but does not launch ---------------------+---------------------- Reporter: mf2k@… | Owner: devans@… Type: defect | Status: assigned Priority: Normal | Milestone: Component: ports | Version: 2.3.99 Resolution: | Keywords: Port: gedit | ---------------------+---------------------- Comment (by devans@…): Frank, I've been trying for the last few hours but I can't reproduce this result on my Mavericks machine. gedit starts up and runs fine for me. AFAICT, gedit does not link with any libGL at all. So I'm wondering who it is that is looking for /opt/X11/lib/libGL.1.dylib. The only candidate I could find was webkit-gtk3 and it links with opt/local/lib/libGL.1.dylib provided by mesa. Now, I will say that /opt/X11/lib/libGL.1.dylib does exist on my machine: its one of the client libraries provided by XQuartz. I even renamed this lib to something else to see it that would cause gedit to error but it did not. The only apps that I can find that link to it are {{{ /opt/X11/bin/glxgears /opt/X11/bin/glxinfo }}} again part of the XQuartz distribution which seems appropriate. (They did error out with same message you got when I renamed /opt/X11/lib/libGL.1.dylib). So I'm thinking that something on your system related to gedit or its dependencies linked with /opt/X11/lib/libGL.1.dylib instead of the version provided by mesa but I'm at a loss to understand how that happened and who the culprit is. Questions: * which X11 server are you using? I'm using XQuartz 2.7.7, not xorg- server{-devel}. * does /opt/X11/lib/libGL.1.dylib exist on your system? * have you done any custom configuration on your system (paths, etc) that might get MacPorts confused as to which library to use? * any other evidence on your end that might help figure this out? -- Ticket URL: <https://trac.macports.org/ticket/47708#comment:2> MacPorts <https://www.macports.org/> Ports system for OS X
#47708: gedit builds but does not launch ---------------------+---------------------- Reporter: mf2k@… | Owner: devans@… Type: defect | Status: assigned Priority: Normal | Milestone: Component: ports | Version: 2.3.99 Resolution: | Keywords: Port: gedit | ---------------------+---------------------- Comment (by devans@…): I see you have gedit-plugins installed. Have you tried running with gedit with gedit-plugins deactivated? Maybe you have a plugin activated (via Preferences) that I don't? But again not sure which one it might be. Do other GNOME apps such as evince or ego work OK? -- Ticket URL: <https://trac.macports.org/ticket/47708#comment:3> MacPorts <https://www.macports.org/> Ports system for OS X
#47708: gedit builds but does not launch ---------------------+---------------------- Reporter: mf2k@… | Owner: devans@… Type: defect | Status: assigned Priority: Normal | Milestone: Component: ports | Version: 2.3.99 Resolution: | Keywords: Port: gedit | ---------------------+---------------------- Comment (by mf2k@…): To answer your questions from comment:2: - I'm using xorg-server. {{{ xorg-server @1.16.4_0 (active) }}} - No - No - Nothing unusual going on with my setup that I can think of. -- Ticket URL: <https://trac.macports.org/ticket/47708#comment:4> MacPorts <https://www.macports.org/> Ports system for OS X
#47708: gedit builds but does not launch ---------------------+---------------------- Reporter: mf2k@… | Owner: devans@… Type: defect | Status: assigned Priority: Normal | Milestone: Component: ports | Version: 2.3.99 Resolution: | Keywords: Port: gedit | ---------------------+---------------------- Comment (by mf2k@…): Uninstalling gedit-plugins does not help. Same issue. -- Ticket URL: <https://trac.macports.org/ticket/47708#comment:5> MacPorts <https://www.macports.org/> Ports system for OS X
#47708: gedit builds but does not launch ---------------------+---------------------- Reporter: mf2k@… | Owner: devans@… Type: defect | Status: assigned Priority: Normal | Milestone: Component: ports | Version: 2.3.99 Resolution: | Keywords: Port: gedit | ---------------------+---------------------- Comment (by mf2k@…): I see the same problem with eog: {{{ $ eog Couldn't open /opt/X11/lib/libGL.1.dylib: dlopen(/opt/X11/lib/libGL.1.dylib, 5): image not found }}} -- Ticket URL: <https://trac.macports.org/ticket/47708#comment:6> MacPorts <https://www.macports.org/> Ports system for OS X
#47708: gedit builds but does not launch ---------------------+---------------------- Reporter: mf2k@… | Owner: devans@… Type: defect | Status: assigned Priority: Normal | Milestone: Component: ports | Version: 2.3.99 Resolution: | Keywords: Port: gedit | ---------------------+---------------------- Comment (by devans@…): OK, so you need to find what is linked with /opt/X11/lib/libGL.1.dylib that is causing the failure. Since it doesn't happen for me you'll have to do the leg work here. Two possible suggestions: * use otool -L in a shell script to search for ports that link with /opt/X11/lib/libGL.1.dylib. Attached is my modified version (more verbose) of the old depsearch.sh script that might be used. * run gedit in a debugger (gdb, lldb) to the failure point and see if a back trace will tell you where the error occurred. -- Ticket URL: <https://trac.macports.org/ticket/47708#comment:7> MacPorts <https://www.macports.org/> Ports system for OS X
#47708: gedit builds but does not launch ---------------------+---------------------- Reporter: mf2k@… | Owner: devans@… Type: defect | Status: assigned Priority: Normal | Milestone: Component: ports | Version: 2.3.99 Resolution: | Keywords: Port: gedit | ---------------------+---------------------- Comment (by mf2k@…): When I run it, nothing comes back: {{{ $ sudo ./depsearch.sh '/opt/X11/lib/libGL.1.dylib' $ }}} -- Ticket URL: <https://trac.macports.org/ticket/47708#comment:8> MacPorts <https://www.macports.org/> Ports system for OS X
#47708: gedit builds but does not launch ---------------------+---------------------- Reporter: mf2k@… | Owner: devans@… Type: defect | Status: assigned Priority: Normal | Milestone: Component: ports | Version: 2.3.99 Resolution: | Keywords: Port: gedit | ---------------------+---------------------- Comment (by devans@…): Same here, indicating nothing linked to /opt/X11/lib/libGL.1.dylib in the hard coded search paths. However, if I run {{{ $ depsearch.sh libGL.1.dylib mesa (/opt/local/lib/libGL.1.dylib) webkit-gtk3 (/opt/local/lib/libwebkitgtk-3.0.0.dylib) }}} and then {{{ $ otool -L /opt/local/lib/libwebkitgtk-3.0.0.dylib | grep libGL /opt/local/lib/libGL.1.dylib (compatibility version 4.0.0, current version 4.0.0) }}} -- Ticket URL: <https://trac.macports.org/ticket/47708#comment:9> MacPorts <https://www.macports.org/> Ports system for OS X
#47708: gedit builds but does not launch ---------------------+---------------------- Reporter: mf2k@… | Owner: devans@… Type: defect | Status: assigned Priority: Normal | Milestone: Component: ports | Version: 2.3.99 Resolution: | Keywords: Port: gedit | ---------------------+---------------------- Comment (by cal@…): Just to make sure, you don't have `DYLD_LIBRARY_PATH` set, do you? -- Ticket URL: <https://trac.macports.org/ticket/47708#comment:10> MacPorts <https://www.macports.org/> Ports system for OS X
#47708: gedit builds but does not launch ---------------------+---------------------- Reporter: mf2k@… | Owner: devans@… Type: defect | Status: assigned Priority: Normal | Milestone: Component: ports | Version: 2.3.99 Resolution: | Keywords: Port: gedit | ---------------------+---------------------- Comment (by mf2k@…): Replying to [comment:10 cal@…]:
Just to make sure, you don't have `DYLD_LIBRARY_PATH` set, do you?
No. I do know better. :) Here is the output for just the library: {{{ $ sudo ./depsearch.sh 'libGL.1.dylib' fox (/opt/local/bin/PathFinder) fox (/opt/local/bin/adie) fox (/opt/local/bin/calculator) fox (/opt/local/bin/shutterbug) fox (/opt/local/lib/libCHART-1.6.0.dylib) fox (/opt/local/lib/libFOX-1.6.0.dylib) freeglut (/opt/local/lib/libglut.3.10.0.dylib) glw (/opt/local/lib/libGLw.1.dylib) gtkglext (/opt/local/lib/libgdkglext-x11-1.0.0.0.0.dylib) gtkglext (/opt/local/lib/libgtkglext-x11-1.0.0.0.0.dylib) libGLU (/opt/local/lib/libGLU.1.dylib) libcaca (/opt/local/bin/cacaclock) libcaca (/opt/local/bin/cacademo) libcaca (/opt/local/bin/cacafire) libcaca (/opt/local/bin/cacaplay) libcaca (/opt/local/bin/cacaserver) libcaca (/opt/local/bin/cacaview) libcaca (/opt/local/bin/img2txt) libcaca (/opt/local/lib/libcaca++.0.dylib) libcaca (/opt/local/lib/libcaca.0.dylib) libquicktime-devel (/opt/local/bin/lqtplay) mesa (/opt/local/lib/libGL.1.dylib) pcb (/opt/local/bin/pcb) webkit-gtk (/opt/local/lib/libwebkitgtk-1.0.0.dylib) webkit-gtk3 (/opt/local/lib/libwebkitgtk-3.0.0.dylib) }}} -- Ticket URL: <https://trac.macports.org/ticket/47708#comment:11> MacPorts <https://www.macports.org/> Ports system for OS X
#47708: gedit builds but does not launch ---------------------+---------------------- Reporter: mf2k@… | Owner: devans@… Type: defect | Status: assigned Priority: Normal | Milestone: Component: ports | Version: 2.3.99 Resolution: | Keywords: Port: gedit | ---------------------+---------------------- Comment (by mf2k@…): I completely uninstalled all ports and installed gedit from scratch. Same error. Next I will try to uninstall everything and do a source build of gedit and all the dependencies to see if a binary on the buildbots is the cause. -- Ticket URL: <https://trac.macports.org/ticket/47708#comment:12> MacPorts <https://www.macports.org/> Ports system for OS X
#47708: gedit builds but does not launch ---------------------+---------------------- Reporter: mf2k@… | Owner: devans@… Type: defect | Status: assigned Priority: Normal | Milestone: Component: ports | Version: 2.3.99 Resolution: | Keywords: Port: gedit | ---------------------+---------------------- Comment (by mf2k@…): FYI, a completely fresh source rebuild causes the same problem for me. -- Ticket URL: <https://trac.macports.org/ticket/47708#comment:13> MacPorts <https://www.macports.org/> Ports system for OS X
#47708: gedit builds but does not launch ---------------------+---------------------- Reporter: mf2k@… | Owner: devans@… Type: defect | Status: assigned Priority: Normal | Milestone: Component: ports | Version: 2.3.99 Resolution: | Keywords: Port: gedit | ---------------------+---------------------- Comment (by devans@…): Thanks for the update. Odd. I guess I would try running it in a debugger to see if you can get a backtrace that tells you what code produces the load failure if you haven't already. I'm going out of town tomorrow for the rest of the week but when I return I will try doing a fresh build from scratch as you have done to see if that will reproduce the error. -- Ticket URL: <https://trac.macports.org/ticket/47708#comment:14> MacPorts <https://www.macports.org/> Ports system for OS X
#47708: gedit builds but does not launch ---------------------+---------------------- Reporter: mf2k@… | Owner: devans@… Type: defect | Status: assigned Priority: Normal | Milestone: Component: ports | Version: 2.3.99 Resolution: | Keywords: Port: gedit | ---------------------+---------------------- Comment (by wyatt8750@…): Same problem here with both gedit and eog. -- Ticket URL: <https://trac.macports.org/ticket/47708#comment:15> MacPorts <https://www.macports.org/> Ports system for OS X
#47708: gedit builds but does not launch ---------------------+---------------------- Reporter: mf2k@… | Owner: devans@… Type: defect | Status: assigned Priority: Normal | Milestone: Component: ports | Version: 2.3.99 Resolution: | Keywords: Port: gedit | ---------------------+---------------------- Comment (by devans@…): The real issue here is who (which binary) is trying to load /opt/X11/lib/libGL.1.dylib since none of the apps in question should be using it at all. When gedit crashes with this error, there ought to be a corresponding user (or maybe system?) diagnostic report in Console. If so, this report would show not only the failure to load the library but the name of the binary that references it. Note the name of the report may not be gedit (or whichever app is crashing) so you should look at any report with an appropriate time stamp. -- Ticket URL: <https://trac.macports.org/ticket/47708#comment:16> MacPorts <https://www.macports.org/> Ports system for OS X
#47708: gedit builds but does not launch ---------------------+---------------------- Reporter: mf2k@… | Owner: devans@… Type: defect | Status: assigned Priority: Normal | Milestone: Component: ports | Version: 2.3.99 Resolution: | Keywords: Port: gedit | ---------------------+---------------------- Comment (by devans@…): BTW, if you haven't done so already please upgrade to the latest versions of these ports, typically 3.16.2, so we are all working with the same software. Thanks. -- Ticket URL: <https://trac.macports.org/ticket/47708#comment:17> MacPorts <https://www.macports.org/> Ports system for OS X
#47708: gedit builds but does not launch ---------------------+---------------------- Reporter: mf2k@… | Owner: devans@… Type: defect | Status: assigned Priority: Normal | Milestone: Component: ports | Version: 2.3.99 Resolution: | Keywords: Port: gedit | ---------------------+---------------------- Comment (by mf2k@…): Replying to [comment:17 devans@…]:
BTW, if you haven't done so already please upgrade to the latest versions of these ports, typically 3.16.2, so we are all working with the same software. Thanks.
I always keep my ports updated to the latest version. -- Ticket URL: <https://trac.macports.org/ticket/47708#comment:18> MacPorts <https://www.macports.org/> Ports system for OS X
#47708: gedit builds but does not launch ---------------------+---------------------- Reporter: mf2k@… | Owner: devans@… Type: defect | Status: assigned Priority: Normal | Milestone: Component: ports | Version: 2.3.99 Resolution: | Keywords: Port: gedit | ---------------------+---------------------- Comment (by mf2k@…): See also #47828 -- Ticket URL: <https://trac.macports.org/ticket/47708#comment:19> MacPorts <https://www.macports.org/> Ports system for OS X
#47708: gedit builds but does not launch ---------------------+---------------------- Reporter: mf2k@… | Owner: devans@… Type: defect | Status: assigned Priority: Normal | Milestone: Component: ports | Version: 2.3.99 Resolution: | Keywords: Port: gedit | ---------------------+---------------------- Comment (by devans@…): Patch to libepoxy provided by ryandesign in #47828 committed in r136739. This, almost certainly, should fix the issue reported here but please verify that that is the case. Thanks. -- Ticket URL: <https://trac.macports.org/ticket/47708#comment:20> MacPorts <https://www.macports.org/> Ports system for OS X
#47708: gedit builds but does not launch ---------------------+---------------------- Reporter: mf2k@… | Owner: devans@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.3.99 Resolution: fixed | Keywords: Port: gedit | ---------------------+---------------------- Changes (by mf2k@…): * status: assigned => closed * resolution: => fixed Comment: Yes, it works now! -- Ticket URL: <https://trac.macports.org/ticket/47708#comment:21> MacPorts <https://www.macports.org/> Ports system for OS X
participants (1)
-
MacPorts