Hi
During the alt_disk_install script phase, the environment often has LIBPATH set wrong.
So AIX loads libiconv from /usr/lib/libiconv.a (wrong place / wrong member), instead of the Toolbox libraries under /opt/freeware.
Try below
**put this before running dnf***
unset LIBPATH
/opt/freeware/bin/dnf <your-command>
=====================================
** If you must set LIBPATH ***
Force Toolbox libraries first:
export LIBPATH=/opt/freeware/lib:/opt/freeware/lib64:/usr/lib:/lib
/opt/freeware/bin/dnf <your-command>
======================================
way to confirm
Add this line right before dnf in your script:
echo "LIBPATH=$LIBPATH"
If it shows /usr/lib (or doesn’t include /opt/freeware/lib), that’s the reason for the failure.