AIX Open Source

AIX Open Source

Share your experiences and connect with fellow developers to discover how to build and manage open source software for the AIX operating system

 View Only
  • 1.  GTK Issues

    Posted Mon January 27, 2020 03:31 PM

    Originally posted by: MarkJordan


    Hello-

     

    We have a config tool that invokes gtk2 libs on AIX.  Our documentation is here:

     

    https://www.ibm.com/support/pages/system-requirements-ibm-content-navigator-305-and-later-aix

     

    Our client is running into an issue where they cannot run the tool due to missing companion libraries.  We feel we have ruled out LIBPATH as a cause.

     

    See comments from my colleague:

     

    The new data was useful in the sense, it rules out issues with their LIBPATH or the LD_LIBRARY_PATH setting. It shows there is an issue with the underlying GTK libraries. For instance, I see the shared object library named "libXrender.so.1" is missing. Also, the dependent libraries for the "libgdk-x11-2.0.a" appear to be missing. The sample "gtk-demo" application also failed to resolved because of these gaps so there is no way our configuration manager is going to launch.

     

    gtk-demo

    exec(): 0509-036 Cannot load program gtk-demo because of the following errors:

    0509-022 Cannot load module /usr/lib/libgdk-x11-2.0.a(libgdk-x11-2.0.so.0).

    0509-150 Dependent module /usr/lib/libXrender.a(libXrender.so.1) could not be loaded.

    0509-152 Member libXrender.so.1 is not found in archive

    0509-022 Cannot load module gtk-demo.

    0509-150 Dependent module /usr/lib/libgdk-x11-2.0.a(libgdk-x11-2.0.so.0) could not be loaded.

    0509-022 Cannot load module

     

    As per the Client, they have successfully applied the GTK 2+ RPMs but then the above data shows that something has not gone well with the RPM install. The next step in my opinion will be to rope in AIX Support (say via a Skills Case). We have enough diagonistic evidence. Either the Client is not using the correct version of the GTK 2+ RPMs or they are missing some RPMs or dependencies. This is where AIX support can provide better guidance. If we are able to resolve "gtk-demo" correctly, then our configuration manager should also work.

     

    The client has confirmed they have all the RPMs on the documentation listed.

     

    Their *PATH env variables:

     

    LIBPATH=/usr/lib:/lib:/opt/freeware/lib:/opt/freeware/bin:/opt/freeware/sbin:/opt/freeware/lib64:/home/wasadmin/sqllib/lib64:/home/wasadmin/sqllib/lib64/gskit:/usr/lib:/lib
    LD_LIBRARY_PATH=/opt/IBM/ondemand/V9.5/www:/usr/lib:/lib:/opt/freeware/lib:

     

    Can someone help explain why the gtk - demo is failing or what data we can gather to determine it.

     

     



  • 2.  Re: GTK Issues

    Posted Mon January 27, 2020 06:16 PM

    Originally posted by: H0W2_tomasz_lacki


    I have two systems with link to the libXrender.a pointing to different libraries:

    AIX72:> ls -l /usr/lib/libXrender.a
    lrwxrwxrwx 1 root system 30 Oct 22 01:49 /usr/lib/libXrender.a -> /opt/freeware/lib/libXrender.a

    AIX71:> ls -l  /usr/lib/libXrender.a
    lrwxrwxrwx 1 bin bin 32 Mar 19  2018 /usr/lib/libXrender.a -> /usr/lpp/X11/lib/R7/libXrender.a

    On the second I am able to get the same error:

    AIX71:/opt/freeware/bin> LIBPATH=/usr/lib:/lib:/opt/freeware/lib ./gtk-demo
    exec(): 0509-036 Cannot load program ./gtk-demo because of the following errors:
            0509-022 Cannot load module /opt/freeware/lib/libgdk-x11-2.0.a(libgdk-x11-2.0.so.0).
            0509-150   Dependent module /usr/lib/libXrender.a(libXrender.so.1) could not be loaded.
            0509-152   Member libXrender.so.1 is not found in archive
            0509-022 Cannot load module gtk-demo.
            0509-150   Dependent module /opt/freeware/lib/libgdk-x11-2.0.a(libgdk-x11-2.0.so.0) could not be loaded.
            0509-022 Cannot load module .

    First check if all dependent libraries that gtk-demo needs are installed. It shall run without any LIBPATH set:

    AIX71:/opt/freeware/bin> LIBPATH= ./gtk-demo
    ** (gtk-demo:60621310): WARNING **: 18:05:43.886: Cannot find demo data file "appwindow.c"

    If it works change your LIBPATH so the AIX Toolbox location is on the first position:

    AIX71:/opt/freeware/bin> LIBPATH=/opt/freeware/lib:/usr/lib:/lib ./gtk-demo

    ** (gtk-demo:11403526): WARNING **: 18:08:04.852: Cannot find demo data file "appwindow.c"

     



  • 3.  Re: GTK Issues

    Posted Wed February 12, 2020 10:28 AM

    Originally posted by: MarkJordan


    Much appreciated!



  • 4.  Re: GTK Issues

    Posted Wed February 12, 2020 10:11 AM

    Originally posted by: AyappanP


    As mentioned by @H0W2_tomasz_lacki , there is no need for any LIBPATH set. If you are setting it for some other reason, make sure "/opt/freeware/lib" occupies the first position.