Hi Jan,
Thanks for reply.
It's look like we've libiconf rpm package installed in our environment. Can you please confirm the same by seen the below output.
/root> rpm -qa | grep -i libiconv
libiconv-1.14-2
We've the below quarries/plan in our mind, It would be really helpfull if you can help us on that?
1. We're thinking if the libiconf rpm package installed in our system, then can we remove this rpm and install the fresh rpm from Open source GNU??
2. Can you please confirm if we can use the below link for downloading libiconv package.
https://www.gnu.org/software/libiconv/#TOCdownloading3. Can you share the procedure how to install the libiconv package in AIX enviroment.
4. If we remove current http and php and install the new one from AIX toolbox will it resolve the hole problem.
5. If answer is yes for point 4, then could you please share the link from where we can install the recommended http and php and how to configure these two?? will we need both http and php or only recommended http will be sufficient.
------------------------------
Virendra Singh
------------------------------
Original Message:
Sent: Thu May 19, 2022 09:13 AM
From: Jan Harris
Subject: Unable to start http service in AIX server.
1) The Open Source GNU libiconv package, available on the AIX Toolbox, provides:
/opt/freeware/lib/libiconv.a(libiconv.so.2
The installation also adds the following from the native AIX libiconv.a:
shr4.o
shr.o
2) The AIX libiconv (bos.rte.iconv) provides:
/usr/lib/libiconv.a(shr.o)
/usr/lib/libiconv.a(shr4.o)
/usr/lib/libiconv.a(shr4_64.o
Thus: libiconv.so.2 is only provided in the Open Source GNU libiconv package. AIX Toolbox packages use /opt/freeware libraries. If you don't have the libiconv RPM package installed, you will need to install it. Your apache and php is really old. It is possible that efforts to update AIX Toolbox packages will cause more issues for this old product.
If you have the AIX Toolbox GNU libiconv package installed, and the application is not loading it, you will need to work with the provider of this package, or install AIX Toolbox versions of httpd.
Important:
- AIX support cannot provide any workarounds for your open source requirements.
- The AIX Open Source team cannot provide solutions to issues with your non-Toolbox packages, since their packages might conflict with your older packages.
------------------------------
Jan Harris
AIX Development Support (Liaison to the AIX Toolbox for Open Source)
IBM (Contract)
Austin TX
Original Message:
Sent: Thu May 19, 2022 03:38 AM
From: Virendra Singh
Subject: Unable to start http service in AIX server.
Hi Jan,
It is not possible for us to upgrade to php-7.4.28-1.ppc because of application dependency. Could you please suggest another way / workaround to mitigate the "ar: 0707-109 Member name libiconv.so.2 does not exist" issue.
tsmcf1:/opt/freeware/lib> ldd /usr/opt/perl5/lib64/site_perl/5.10.1/aix-thread-multi-64all/auto/XML/LibXML/LibXML.so
/usr/opt/perl5/lib64/site_perl/5.10.1/aix-thread-multi-64all/auto/XML/LibXML/LibXML.so needs:
/usr/lib/libpthreads.a(shr_xpg5_64.o)
/usr/lib/libc.a(shr_64.o)
/opt/freeware/lib/libxml2.a(libxml2.so.2)
/unix
/usr/lib/libcrypt.a(shr_64.o)
/usr/lib/libiconv.a(libiconv.so.2)
ar: 0707-109 Member name libiconv.so.2 does not exist.
dump: /tmp/tmpdir30933158/extract/libiconv.so.2: 0654-106 Cannot open the specified file.
/opt/freeware/lib/libz.a(libz.so.1)
/opt/freeware/lib/liblzma.a(liblzma.so.0)
/usr/lib/libpthread.a(shr_xpg5_64.o)
tsmcf1:/opt/freeware/lib>
Thanks
------------------------------
Virendra Singh
Original Message:
Sent: Wed May 18, 2022 11:54 PM
From: Jan Harris
Subject: Unable to start http service in AIX server.
Hello
I would check your httpd and related package levels.
ls -ltr /opt/freeware/lib/httpd/modules/libphp5.so
-rwxr-xr-x 1 root system 8338559 Aug 24 2011 /opt/freeware/lib/httpd/modules/libphp5.so
libphp5 is pretty old. I don't even see that on the AIX Toolbox. Perhaps you installed this from a different site <?>
I have
httpd-2.4.52-1.ppc
php-7.4.28-1.ppc
This provides: /opt/freeware/lib/httpd/modules/libphp7.so
------------------------------
Jan Harris
AIX Development Support (Liaison to the AIX Toolbox for Open Source)
IBM (Contract)
Austin TX
Original Message:
Sent: Wed May 18, 2022 10:20 PM
From: Virendra Singh
Subject: Unable to start http service in AIX server.
Hi Jan,
Thanks for the reply.
I've checked in my server and it's look like LIBPATH is not set in my environment.
tsmcf1:/opt/freeware/etc/httpd/conf/extra> echo $LIBPATH
tsmcf1:/opt/freeware/etc/httpd/conf/extra>
tsmcf1:/opt/freeware/etc/httpd/conf/extra>
Also i've checked using dump and found the below output.
dump -Hv /opt/freeware/lib/libxml2.a
/opt/freeware/lib/libxml2.a[libxml2.so.2]:
***Loader Section***
Loader Header Information
VERSION# #SYMtableENT #RELOCent LENidSTR
0x00000001 0x00000742 0x0000263c 0x0000008d
#IMPfilID OFFidSTR LENstrTBL OFFstrTBL
0x00000006 0x00027920 0x00009b21 0x000279ad
***Import File Strings***
INDEX PATH BASE MEMBER
0 /opt/freeware/lib:/usr/lib:/lib
1 libc.a shr.o
2 libiconv.a libiconv.so.2
3 libz.a libz.so.1
4 liblzma.a liblzma.so.0
5 libpthread.a shr_xpg5.o
Could you please let me know how to set LIBPATH so that it would not give any error.
Also I've checkd few things and found the below outputs,
ls -ltr /opt/freeware/lib/httpd/modules/libphp5.so
-rwxr-xr-x 1 root system 8338559 Aug 24 2011 /opt/freeware/lib/httpd/modules/libphp5.so
tsmcf1:/usr/lib> ls -ltr /opt/freeware/lib/libxml2.a
-rwxr-xr-x 1 root system 4782200 Oct 16 2012 /opt/freeware/lib/libxml2.a
tsmcf1:/usr/lib> ls -ltr /usr/lib/libiconv.a
-r--r--r-- 1 bin bin 788939 Aug 03 2020 /usr/lib/libiconv.a
Clearly the mentioned library changed sometime 2020. Probably that version of the file does not contain the missing component "libxml2.so.2". So the problem is related to this?? Can you pls confirm?
------------------------------
Virendra Singh
Original Message:
Sent: Wed May 18, 2022 09:20 PM
From: Jan Harris
Subject: Unable to start http service in AIX server.
The AIX Toolbox httpd requires /opt/freeware/lib/libiconv.a[libiconv.so.2]
Check the environment LIBPATH.
- Setting the system LIBPATH to load other paths before /opt/freeware/lib might cause failures for AIX Toolbox applications.
- If your application has explicit LIBPATH requirements, it is recommended to apply the LIBPATH to the application via a wrapper or configuration file. Do not set LIBPATH globally before calling AIX Toolbox packages.
------------------------------
Jan Harris
AIX Development Support (Liaison to the AIX Toolbox for Open Source)
IBM (Contract)
Austin TX
Original Message:
Sent: Wed May 18, 2022 02:25 PM
From: Virendra Singh
Subject: Unable to start http service in AIX server.
Hi Team,
In our AIX server we use Ganglia web for chat and graph. Today we've rebooted out AIX server and just after that Ganglia web page is not opening. I've checked the http service status it is not running state. I'm trying to start the service but getting some error related to modules. Below I'm sharing the logs. Can someone please help me on that on priority.
http status:
/etc/rc.d/init.d/httpd status
Apache httpd daemon is not running.
Getting error:
/etc/rc.d/init.d/httpd start
Starting Apache httpd... httpd: Syntax error on line 520 of /opt/freeware/etc/httpd/conf/httpd.conf: Syntax error on line 6 of /opt/freeware/etc/httpd/conf/extra/httpd-php.conf: Cannot load /opt/freeware/lib/httpd/modules/libphp5.so into server: Could not load module /opt/freeware/lib/libxml2.a(libxml2.so.2).\n\tDependent module /usr/lib/libiconv.a(libiconv.so.2) could not be loaded.\n\tMember libiconv.so.2 is not found in archive \nCould not load module /opt/freeware/lib/httpd/modules/libphp5.so.\n\tDependent module /opt/freeware/lib/libxml2.a(libxml2.so.2) could not be loaded.
done.
------------------------------
Sudip Das.
------------------------------