Open Source Development

Power Open Source Development

Explore the open source tools and capabilities for building and deploying modern applications on IBM Power platforms including AIX, IBM i, and Linux.


#Power


#Power

 View Only
  • 1.  Symbol locale_charset missing in libintl.a

    Posted Fri November 04, 2022 08:15 AM
    Hello,

    we have a Problem on AIX 7.1 and 7.2 with the gdb-command after upgrading gettext from Version 0.21-1 to 0.21-2.
    When trying to use the gdb we get an error:
    $ gdb
    exec(): 0509-036 Cannot load program gdb because of the following errors:
            0509-130 Symbol resolution failed for gdb because:
            0509-136   Symbol locale_charset (number 304) is not exported from
                       dependent module /opt/freeware/lib/libintl.a[libintl.so.8].
            0509-192 Examine .loader section symbols with the
                     'dump -Tv' command.​

    Installation and update is done by dnf.
    Installed version of
    • gdb: gdb.ppc 10.2-2
    • gettext:
      gettext ppc 0.21-2
      gettext-devel ppc 0.21-2
      libtextstyle ppc 0.21-2
      libtextstyle-devel ppc 0.21-2


    After downgrading getext and libextstyle to Version 0.21-1 gdb ist working as normal:

    $ gdb
    GNU gdb (GDB) 10.2
    Copyright (C) 2021 Free Software Foundation, Inc.


    Do we need to wait for a new gdb-Package or is there an issue in building gettext-0.21-2?

    Thanks a lot and greetings
    Stefan



    ------------------------------
    Stefan Kirchberg
    ------------------------------

    #AIXOpenSource


  • 2.  RE: Symbol locale_charset missing in libintl.a

    Posted Fri November 04, 2022 08:32 AM
    Looks like there is an issue with gettext-0.21-2 build. 
    We will check and update it as soon as possible.

    ------------------------------
    Ayappan P
    ------------------------------



  • 3.  RE: Symbol locale_charset missing in libintl.a

    Posted Tue November 08, 2022 01:39 AM
    The previous versions of gettext was built using a gcc which doesn't have visibility support. So gettext ended up exporting symbols which should have been hidden. gdb links to one of these symbols. With the current gettext version built using a gcc which has visibility support , the symbols are not exported now. 
    We will rebuild gdb and upload it to Toolbox.

    ------------------------------
    Ayappan P
    ------------------------------



  • 4.  RE: Symbol locale_charset missing in libintl.a

    Posted Tue November 08, 2022 02:20 AM
    Hello Ayappan,

    thank you very much for your analysis and explanation.
    We will look forward for a new gdb-build.

    Thanks
    Stefan

    ------------------------------
    Stefan Kirchberg
    ------------------------------