#17918 closed defect (duplicate)
gtk2 2.14.7: X11 dependency issues on Tiger
Reported by: | dbevans (David B. Evans) | Owned by: | jeremyhu (Jeremy Huddleston Sequoia) |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 1.7.0 |
Keywords: | Cc: | nox@… | |
Port: | gtk2 |
Description
I just upgraded gtk2 from gtk2 @2.14.5_0+darwin_8+x11 to gtk2 @2.14.7_0+darwin_8+x11 on 10.4.11, XCode 2.5 using MacPorts trunk.
The build completed successfully but when running a gtk2 based application (gimp in this case), the program died with the now well known
_X11TransSocketUNIXConnect: Cannot connect to non-local host ???D XIO: fatal IO error 0 (Unknown error: 0) on X server ":0.0"
error that is described in #17558.
After reviewing the ports dependencies, I manually installed the following ports which were not required nor installed for the previous version of the port
% port installed xorg-libXrandr xorg-libXcursor xorg-libXinerama The following ports are currently installed: xorg-libXcursor @1.1.9_0 (active) xorg-libXinerama @1.0.3_0 (active) xorg-libXrandr @1.2.3_0 (active)
and then rebuilt the port.
The resulting gtk2 allowed gimp to run properly although the program emits the following non-fatal warning periodically
Xlib: extension "RANDR" missing on display ":0.0"
when using the default 10.4.11 X11.app server.
Note that I am not using the +system_x11 variant.
Looks like this is the result of the lib style of dependency for these libraries coupled with the fact that gtk2 is apparently the only port that expresses a dependency upon them and they exist in the default Tiger X11 implementation.
% port dependents xorg-libXrandr xorg-libXcursor xorg-libXinerama gtk2 depends on xorg-libXrandr gtk2 depends on xorg-libXcursor gtk2 depends on xorg-libXinerama
The lib dependencies allow the Tiger X11 libraries to satisfy the dependency even though the rest of the X11 libraries come from ${prefix}/lib.
Perhaps the dependencies should be changed to port style in the default +x11 case (use xorg) and changed to lib style only for the +system_x11 case (use Tiger X11).
Assigning to Jeremy as this looks like something in his area of expertise with cc to maintainer
Change History (2)
comment:1 Changed 16 years ago by jeremyhu (Jeremy Huddleston Sequoia)
Resolution: | → duplicate |
---|---|
Status: | new → closed |
more or less... yeah... the problem was that you likely had xorg-libX11 installed on your system when you installed the gtk2 update and then ran into bug #17558
The randr warning is more of a notification than anything else... it just causes gimp to not get told about RANDR events (like your scren size changing).
The dependencies should be changed to port: dependencies, but ALL ports in MacPorts need to have that done at the exact same time, and all need to be revision bumped. See macports-dev for my post a few days ago about this.