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.  gdb fails to load

    Posted Thu January 03, 2019 05:26 AM

    Originally posted by: sjwing


    gdb fails to load with the following:-

    Could not load program gdb:
            Dependent module /opt/freeware/lib/libintl.a(libintl.so.8) could not be loaded.
            Member libintl.so.8 is not found in archive

     

    oslevel -s
    7200-01-03-1720
     

    Can someone advise how to resolve this issue

     



  • 2.  Re: gdb fails to load

    Posted Thu January 03, 2019 05:34 AM

    Originally posted by: sangameshm


    What version of gettext and gdb is installed ?

    And what version of rpm.rte is installed ?

    By looking at the error mostly you have older version of gettext which needs to be update to latest one.

     

    Thanks,

    Sangamesh



  • 3.  Re: gdb fails to load

    Posted Thu January 03, 2019 05:45 AM

    Originally posted by: sjwing


    rpm.rte is version 3.0.5.53

    gdb is version gdb-8.1.1-2

    gettext is not installed and when I tried to install this I get the following pre-reqs:-

     

    billing_poc/root> rpm -Uvh gettext-0.19.8.1-3.aix6.1.ppc.rpm
    error: failed dependencies:
            libglib-2.0.a(libglib-2.0.so.0) is needed by gettext-0.19.8.1-3
    billing_poc/root> rpm -Uvh glib2-2.56.1-2.aix6.1.ppc.rpm
    error: failed dependencies:
            gettext >= 0.17 is needed by glib2-2.56.1-2
            libintl.a(libintl.so.8)   is needed by glib2-2.56.1-2
    billing_poc/root>
     

    Regards



  • 4.  Re: gdb fails to load

    Posted Thu January 03, 2019 07:11 AM

    Originally posted by: sangameshm


    I think better here is to configure YUM and install gettext using "yum install gettext" command.

    You can setup YUM using yum.sh script.

    More information on YUM can be found in this article https://developer.ibm.com/articles/configure-yum-on-aix/

     

    Thanks,

    Sangamesh



  • 5.  Re: gdb fails to load

    Posted Thu January 03, 2019 07:21 AM

    Originally posted by: sjwing


    I understand why you suggest to use YUM as it will update and down load all the correct versions of code etc.

    But these aix servers are not internet facing and are not allowed to have internet access due to security policies etc.

    Is there any other way this can be resolved without YUM.

    This seems to be an issue across different versions of aix.

     

    Regards



  • 6.  Re: gdb fails to load

    Posted Thu January 03, 2019 07:33 AM

    Originally posted by: sangameshm


    There are other ways to setup YUM in this case which is mentioned in the article.

    But, at least one machine needs to have access to the internet.

    Please go through the article and check if it is feasible in your case.

     

    Anyway, here is the list of dependencies which you need to download manually from https://www.ibm.com/developerworks/aix/library/aix-toolbox/alpha.html

    Since you have AIX7.2 you need to download the ligcc and libstdc++ built for AIX 7.2.

    libgcc-8.1.0-2
    libstdc++-8.1.0-2
    glib2-2.56.1-2
    libffi-3.2.1-2
    ncurses-6.1-1

     

    Thanks,

    Sangamesh



  • 7.  Re: gdb fails to load

    Posted Thu January 03, 2019 07:53 AM

    Originally posted by: sjwing


    Yum is not an option as none of the aix servers have internet access.

    As for the dependencies the only other one I needed was the libstc++ which I have now installed but still the glib2 will not install and the gettext as you can see below:-

    billing_poc/root> rpm -Uvh libstdcplusplus-8.1.0-2.aix7.2.ppc.rpm
    libstdc++                   ##################################################
    billing_poc/root> rpm -Uvh glib2-2.56.1-2.aix6.1.ppc.rpm
    error: failed dependencies:
            gettext >= 0.17 is needed by glib2-2.56.1-2
            libintl.a(libintl.so.8)   is needed by glib2-2.56.1-2
    billing_poc/root> rpm -Uvh gettext-0.19.8.1-3.aix6.1.ppc.rpm
    error: failed dependencies:
            libglib-2.0.a(libglib-2.0.so.0) is needed by gettext-0.19.8.1-3
    billing_poc/root> rpm -qa
    expat-2.2.6-1
    tcl-8.4.7-3
    tk-8.4.7-3
    expect-5.42.1-3
    gdb-8.1.1-2
    libffi-3.2.1-2
    AIX-rpm-7.2.2.0-4
    ncurses-6.1-1
    libgcc-8.1.0-2
    libstdc++-8.1.0-2
     

    Have you any other suggestions to try and get around this issue

     

    Regards



  • 8.  Re: gdb fails to load

    Posted Thu January 03, 2019 11:25 AM

    Originally posted by: sangameshm


    You need to provide both the rpms with same command as.

    rpm -Uvh glib2-2.56.1-2.aix6.1.ppc.rpm gettext-0.19.8.1-3.aix6.1.ppc.rpm

     

    Thanks,

    Sangamesh



  • 9.  Re: gdb fails to load

    Posted Fri January 04, 2019 04:29 AM

    Originally posted by: sjwing


    I have been able to install the glib2 and the gettext but still have the same issue when running the gdb as below:-

    billing_poc/root> gdb core
    Could not load program gdb:
            Dependent module /opt/freeware/lib/libiconv.a(libiconv.so.2) could not be loaded.
    Could not load module /opt/freeware/lib/libiconv.a(libiconv.so.2).
    System error: No such file or directory
    billing_poc/root> rpm -qa
    expect-5.42.1-3.ppc
    tk-8.4.7-3.ppc
    gdb-8.1.1-2.ppc
    libgcc-8.1.0-2.ppc
    ncurses-6.1-1.ppc
    glib2-2.56.1-2.ppc
    tcl-8.4.7-3.ppc
    expat-2.2.6-1.ppc
    libffi-3.2.1-2.ppc
    libstdc++-8.1.0-2.ppc
    AIX-rpm-7.2.2.0-5.ppc
    gettext-0.19.8.1-3.ppc
     

    Regards



  • 10.  Re: gdb fails to load

    Posted Fri January 04, 2019 04:36 AM

    Originally posted by: AyappanP


    Install libiconv rpm 



  • 11.  Re: gdb fails to load

    Posted Fri January 04, 2019 04:58 AM

    Originally posted by: sjwing


    Hi

    I have now installed the libiconv rpm and the gdb is now working.

    Thank you for all your help with this problem

     

    Regards