Please login or register. November 14, 2019, 07:38:17 PM

Author Topic: aixtools.gnu.bash 4.4.23.0 on AIX 7.2 TL3 SP3  (Read 179 times)

0 Members and 1 Guest are viewing this topic.

user92

  • New Member
  • *
  • Posts: 2
  • Karma: +0/-0
aixtools.gnu.bash 4.4.23.0 on AIX 7.2 TL3 SP3
« on: October 18, 2019, 05:36:19 PM »
Hello,

I had a question about the bash package I downloaded and installed from aixtools.net, on an AIX 7.2 TL3 SP3 server.
The install went fine, and if I read everything correctly, on v4.4.23.0 there aren't any other package that I need to install in order to get this bash package to work.
However, after installing, I receive this error and I haven't been able to bypass it:

root@server:/root > /opt/bin/bash
exec(): 0509-036 Cannot load program /opt/bin/bash because of the following errors:
        0509-150   Dependent module /opt/lib/libintl.a(libintl.so.8) could not be loaded.
        0509-022 Cannot load module /opt/lib/libintl.a(libintl.so.8).
        0509-026 System error: A file or directory in the path name does not exist.

I'm not sure if I need to set a system-wide environment variable for LIBPATH or something like that, in order to get around this.  There are no libraries in /opt/lib where it is looking for libintl.a, but this library does exist in /opt/freeware/lib, and there is a link to it in /usr/lib as well:

root@server:/root > ls -l /opt/lib
total 6808
drwxr-xr-x    2 bin      bin             256 Mar 28 2019  bash
-r-xr-xr-x    1 bin      bin         3459920 May 11 2018  libpython2.7.a
drwxr-xr-x    2 bin      bin             256 Sep 11 11:22 pkgconfig
drwxr-xr-x   28 bin      bin           24576 May 11 2018  python2.7
root@server:/root > ls -al /opt/freeware/lib/libintl.a
-rwxr-xr-x    1 root     system       441267 Jul 08 2017  /opt/freeware/lib/libintl.a
root@server:/root > ls -l /usr/lib/libintl.a
lrwxrwxrwx    1 root     system           31 Sep 11 15:50 /usr/lib/libintl.a -> /usr/opt/freeware/lib/libintl.a

Any help you can provide would be greatly appreciated, or if I can provide anything additional that would be useful, please let me know.  Thank you for providing all of the packages you have on aixtools.net.

Thanks,
Jeff

Michael

  • Administrator
  • Hero Member
  • *****
  • Posts: 1169
  • Karma: +0/-0
Re: aixtools.gnu.bash 4.4.23.0 on AIX 7.2 TL3 SP3
« Reply #1 on: October 18, 2019, 09:30:42 PM »
err. Maybe my build system was not as clean as I thought.

Short-term - download aixtools.gnu.gettext - that will provide the library.

Or, as I believe the libintl.a provided by the fileset rpm.rte does finally include libintl.so.8, it may be sufficient to create a symbolic link in /opt/lib.

I'll make a truly clean install asap though.

Michael

  • Administrator
  • Hero Member
  • *****
  • Posts: 1169
  • Karma: +0/-0
Re: aixtools.gnu.bash 4.4.23.0 on AIX 7.2 TL3 SP3
« Reply #2 on: October 18, 2019, 10:28:47 PM »
OK. I have looked into this.

a) My statement that bash needs nothing else is, sadly, not true. At least, not in all cases.

** bash requires libintl.so.8, and for a very very long time AIX (in rpm.rte) only provided libintl.so.1

b) To get around this, my packaging of aixtools.gnu.gettext moves the symbolic link of /usr/lib/libintl.a to point at /opt/lib/libintl.a. Before doing this it extracts all the existing objects from "/usr/lib/libintl.a" (i.e., whatever it is pointing at) and sets those members so that may no longer be used for linking something new. They remain for the tools that need, in particular, libintl.so.1 (other tools in rpm.rte, iirc, gzip is one tool that, ultimately, relies on libintl.so.1).

** what the install of aixtools.gnu.gettext also does is maintain a copy of the symbolic link that previously existed at /usr/lib/libintl.a - so, should you uninstall aixtools.gnu.gettext the uninstall process is able to restore the previous link to the previous (aka "freeware" libintl.a library).

** I am going to check AIX 7.1 TL5 and AIX 7.2 TL3 and their versions of libintl.so.8 and build some additional intelligence in aixtools.gnu.gettext and aixtools.gnu.bash - to test for the existence of libintl.so.8 in /usr/lib/libintl.a.

**** Until then, if your /usr/lib/libintl.a has libintl.so.8 just add a symbolic link at /opt/lib/libintl.a to point at whatever /usr/lib/libintl.a is pointing at - OR - install aixtools.gnu.gettext. If it does not include libintl.so.8 you will need to install aixtools.gnu.gettext as well.

Thank you for pointing this out!

FYI: gettext is the GNU equivalent of NCS (Language Support).

Michael

  • Administrator
  • Hero Member
  • *****
  • Posts: 1169
  • Karma: +0/-0
Re: aixtools.gnu.bash 4.4.23.0 on AIX 7.2 TL3 SP3
« Reply #3 on: October 19, 2019, 07:31:06 AM »

user92

  • New Member
  • *
  • Posts: 2
  • Karma: +0/-0
Re: aixtools.gnu.bash 4.4.23.0 on AIX 7.2 TL3 SP3
« Reply #4 on: October 21, 2019, 01:32:15 PM »
Good morning!

Thank you for the updates and detailed explanation of what the issue was.  You are so fast with the repackaging that all I needed to do was download and install the bash update-- I didn't need to mess with acquiring aixtools.gnu.gettext.  After applying the update I am able to launch /opt/bin/bash successfully.

Thank you very much for the speedy service!
Jeff

Michael

  • Administrator
  • Hero Member
  • *****
  • Posts: 1169
  • Karma: +0/-0
Re: aixtools.gnu.bash 4.4.23.0 on AIX 7.2 TL3 SP3
« Reply #5 on: October 21, 2019, 08:40:56 PM »
My pleasure.

Glad it is working as expected.