Does AIX support the Xrandr extension?

Kazunori Ogata OGATAK at jp.ibm.com
Tue Nov 20 08:45:33 UTC 2018


Hi Volker,

I asked about existence of AIX Xrandr package to IBM internal mailing 
list, but the answers are only the packages you pointed out.

For the library version issue (libXrender.so.0 vs. libXrender.so.1), the 
maintenance of perzl.org said he always includes both libXrender.so.0 and 
libXrender.so.1 in the package for compatibility.  I guess you are aware 
of it, too.

Is it because this package is not an "IBM official" that you won't use it 
(as you replied to Ichiroh), even though the maintainer is IBMer?


Regards,
Ogata


"ppc-aix-port-dev" <ppc-aix-port-dev-bounces at openjdk.java.net> wrote on 
2018/11/20 01:52:20:

> From: Volker Simonis <volker.simonis at gmail.com>
> To: Ichiroh Takiguchi <takiguc at linux.vnet.ibm.com>
> Cc: ppc-aix-port-dev at openjdk.java.net
> Date: 2018/11/20 02:03
> Subject: Re: Does AIX support the Xrandr extension?
> Sent by: "ppc-aix-port-dev" <ppc-aix-port-dev-bounces at openjdk.java.net>
> 
> Hi,
> 
> I've now lost two days by trying out all the versions I could find at:
> 
> http://www.perzl.org/aix/index.php?n=Main.LibXrandr
> http://www.bullfreeware.com/affichage.php?id=3351
> http://www.oss4aix.org/download/RPMS/libXrandr/
> 
> The problem with all of them is that they depend on libXrender.so.1.
> That version is provided by the corresponding Xrender packages from
> that sites BUT the default AIX version of libXrender.a only contains
> libXrender.so.0. OpenJDK's libawt_xawt.so is linked against the system
> libXrender.so.0 an I don't think it would be good to change that. So
> that means we finally can't load libXrandr at runtime anyway.
> 
> Sorry to say, but AIX X11 really seems to be terribly outdated and I
> don't see any sense in fixing this.
> 
> Moreover, all the code in
> java.desktop/unix/native/libawt_xawt/awt/awt_GraphicsEnv.c which uses
> "dlopen()" is broken on AIX anyway (and it always has been, even in
> IBM's J9) because on AIX we would have to use dlopen with a shared
> library name PLUS the corresponding member name PLUS the RTLD_MEMBER
> flag. E.g.:
> 
> dlopen("libXrandr.a(libXrandr.so.2)", RTLD_MEMBER | RTLD_LAZY | 
RTLD_LOCAL);
> 
> As people don't really seem to have cared until now, I'll propose a
> minimal fix for "8213944: Fix AIX build after the removal of Xrandr.h
> and add a configure check for it" [1] which simply #ifdefs out all
> this broken functionality on AIX (see review thread at [2])
> 
> With best regards,
> Volker
> 
> [1] https://bugs.openjdk.java.net/browse/JDK-8213944
> [2] 
http://mail.openjdk.java.net/pipermail/2d-dev/2018-November/009636.html
> 
> On Fri, Nov 16, 2018 at 7:05 PM Volker Simonis 
<volker.simonis at gmail.com> wrote:
> >
> > Hi Ichiroh,
> >
> > thanks a lot for the pointers.
> >
> > Up to now, I tried to only depend on "official" IBM packages (i.e.
> > original AIX packages or packages from the "AIX Toolbox for Linux
> > Applications" [1]) for both, the build and at runtime. I'm not sure
> > how "reliable" the packages from perzl.org are, but in general I want
> > to avoid unverified dependencies.
> >
> > That said, I don't know Xrandr makes any sense on AIX at all. As far
> > as I can see, it hasn't worked until now anyway. Or can anyone report
> > any successful usage of Xrandr on AIX with these packages?
> >
> > Thank you and best regards,
> > Volker
> >
> > [1] https://www.ibm.com/it-infrastructure/power/os/aix
> > On Fri, Nov 16, 2018 at 1:42 PM Ichiroh Takiguchi
> > <takiguc at linux.vnet.ibm.com> wrote:
> > >
> > > Hello Volker.
> > >
> > > I'm not sure, you want to know following information.
> > >
> > > User can download libXrandr for AIX via Perzl.org AIX Open Source
> > > Packages site. [1][2]
> > >
> > > I have not used this library, so I don't know the detail.
> > >
> > > I checked the contents of libXrandr-devel-1.5.1-1.aix5.1.ppc.rpm [3]
> > >
> > > $ rpm -qpl libXrandr-devel-1.5.1-1.aix5.1.ppc.rpm
> > > /opt/freeware/include/X11/extensions/Xrandr.h
> > > /opt/freeware/lib/libXrandr.la
> > > /opt/freeware/lib/pkgconfig/xrandr.pc
> > > /opt/freeware/man/man3/XRRConfigCurrentConfiguration.3
> > > /opt/freeware/man/man3/XRRConfigCurrentRate.3
> > > /opt/freeware/man/man3/XRRConfigRates.3
> > > /opt/freeware/man/man3/XRRConfigRotations.3
> > > /opt/freeware/man/man3/XRRConfigSizes.3
> > > /opt/freeware/man/man3/XRRConfigTimes.3
> > > /opt/freeware/man/man3/XRRFreeScreenConfigInfo.3
> > > /opt/freeware/man/man3/XRRGetScreenInfo.3
> > > /opt/freeware/man/man3/XRRQueryExtension.3
> > > /opt/freeware/man/man3/XRRQueryVersion.3
> > > /opt/freeware/man/man3/XRRRootToScreen.3
> > > /opt/freeware/man/man3/XRRSelectInput.3
> > > /opt/freeware/man/man3/XRRSetScreenConfig.3
> > > /opt/freeware/man/man3/XRRSetScreenConfigAndRate.3
> > > /opt/freeware/man/man3/Xrandr.3
> > > /usr/lib/libXrandr.la
> > > $
> > >
> > > [1] INVALID URI REMOVED
> u=http-3A__www.perzl.org_aix_index.php&d=DwIBaQ&c=jf_iaSHvJObTbx-
> siA1ZOg&r=p-
> 
FJcrbNvnCOLkbIdmQ2tigCrcpdU77tlI2EIdaEcJw&m=o1pbP3NffoAgtuDUH4F16mS5ja5PH38mxVQjyJZ9JXQ&s=6kb0W7yq0gDYSBm_B3Q3iZjdo9Pf3lCGT4DC3qN-
> K4g&e=
> > > [2] INVALID URI REMOVED
> 
u=http-3A__www.perzl.org_aix_index.php-3Fn-3DMain.LibXrandr&d=DwIBaQ&c=jf_iaSHvJObTbx-
> siA1ZOg&r=p-
> 
FJcrbNvnCOLkbIdmQ2tigCrcpdU77tlI2EIdaEcJw&m=o1pbP3NffoAgtuDUH4F16mS5ja5PH38mxVQjyJZ9JXQ&s=LnITx2TCKu0rq3XsLvrdVB9UTLliKEV-07ZmlMIpGYs&e=
> > > [3]
> > > INVALID URI REMOVED
> 
u=http-3A__www.oss4aix.org_download_RPMS_libXrandr_libXrandr-2Ddevel-2D1.
> 5.1-2D1.aix5.1.ppc.rpm&d=DwIBaQ&c=jf_iaSHvJObTbx-siA1ZOg&r=p-
> 
FJcrbNvnCOLkbIdmQ2tigCrcpdU77tlI2EIdaEcJw&m=o1pbP3NffoAgtuDUH4F16mS5ja5PH38mxVQjyJZ9JXQ&s=xFwQLSrOvtOrQ79gUDOTS74H8yscUVWfvKclJmfY7Zk&e=
> > >
> > > Thanks,
> > > Ichiroh Takiguchi
> > > IBM Japan, Ltd.
> > >
> > >
> > > On 2018-11-16 18:17, Volker Simonis wrote:
> > > > Hi AIX experts,
> > > >
> > > > a recent change ("8210863: Remove Xrandr include files from JDK
> > > > sources" [1]) has removed the Xrander header files which were
> > > > previously checked in in the OpenJDK sources, from there. This 
means
> > > > that the build now requires the platform version of these header
> > > > files:
> > > >
> > > > X11/extensions/Xrandr.h
> > > > X11/extensions/randr.h
> > > >
> > > > To the best of my knowledge, AIX does not support the Xrandr 
extension
> > > > and I couldn't find the corresponding header files any where (even 
not
> > > > in the "AIX Toolbox for Linux Applications" [2]).
> > > >
> > > > I've therefor prepared a change which fixes these issues on AIX 
(see:
> > > > INVALID URI REMOVED
> 
u=http-3A__mail.openjdk.java.net_pipermail_2d-2Ddev_2018-2DNovember_009636.html&d=DwIBaQ&c=jf_iaSHvJObTbx-
> siA1ZOg&r=p-
> 
FJcrbNvnCOLkbIdmQ2tigCrcpdU77tlI2EIdaEcJw&m=o1pbP3NffoAgtuDUH4F16mS5ja5PH38mxVQjyJZ9JXQ&s=qUvLEJuxTwhOq_5lK-
> B2sjBExUOslxZaBHSHLIRxyaY&e=).
> > > >
> > > > However, before pushing this fix, I'd like to get a confirmation 
if
> > > > Xrandr is indeed not supported and not available on AIX. If it is,
> > > > please point me to a place where I can get a package with the
> > > > corresponding header files.
> > > >
> > > > Thank you and best regards,
> > > > Volker
> > > >
> > > > [1] INVALID URI REMOVED
> 
u=https-3A__bugs.openjdk.java.net_browse_JDK-2D8210863&d=DwIBaQ&c=jf_iaSHvJObTbx-
> siA1ZOg&r=p-
> 
FJcrbNvnCOLkbIdmQ2tigCrcpdU77tlI2EIdaEcJw&m=o1pbP3NffoAgtuDUH4F16mS5ja5PH38mxVQjyJZ9JXQ&s=t75o8gztGCdG4Foc9Zap1ZKxCQBSKF8M62GA_gXGzaw&e=
> > > > [2]
> > > > 
https://www.ibm.com/developerworks/aix/library/aix-toolbox/alpha.html
> > >
> 




More information about the ppc-aix-port-dev mailing list