AIX extension woes
| From: | Ryan Smith | Date: | Sat, 12 Oct 2002 00:23:05 +0000 |
| Subject: | AIX extension woes | ||
| Groups: | php.install | ||
| Request: | Send a blank email to php-install+get-8770@lists.php.net to get a copy of this message | ||
I'm having some problems getting an extension to work in the AIX
environment, and I'm wondering if anyone has seen anything similar.
Please reply to me, and I will summarize for the list if there is a
solution.
I'm using PHP 4.1.2, and everything is fine until I add an extension to the
php.ini file. Then, on startup, I get the following error messages:
PHP Warning: Unable to load dynamic library
'/usr/HTTPServer/libexec/libfirstmod.so' - Invalid argument in Unknown on
line 0
PHP Warning: Unable to load dynamic library
'/usr/HTTPServer/libexec/libfirstmod.so' - Invalid argument in Unknown on
line 0
And the extension doesn't load. If I try to load it within a page using
dl(), I get a similar problem. The module works fine on Solaris. I
additionally tried using the firstmod module in the documentation, and get
the same results.
Here's what I'm using to compile PHP and the extension:
env CC=cc CXX=xlC CFLAGS="-ma -Dinline" ./configure
--enable-shared
--with-apxs=/usr/HTTPServer/bin/apxs
--with-ibm-db2=/usr/db2inst1/sqllib
--without-mysql
--with-ldap=/users/rysmith/apache/openldap-2.0.25_AIX/
cc -I/usr/local/include -I../../Zend -I../../main -I../.. -I../../TSRM -c -o
firstmod.o firstmod.c
cc -G -qmkshrobj -o libfirstmod.so firstmod.o
--Ryan