Okay, I've been able to get PHP 4.0.4 to compile on AIX 4.3.3 with APXS and mysql. I'll still trying to get --with-gd and --with-informix to compile properly, and would appreciate anyone's help on how they did it and got it working...
Thanks to a few kind souls for some tips, which I'll share below:
If you're using the IBM "C for AIX" compiler (on AIX 4.3.3 in my case), Do:
export CC='cc -Dinline= -ma'
./configure --with-apxs=/usr/local/etc/apache/bin/apxs --with-mysql=/usr/local
make
Another tip from Bill Stoddard (thanks Bill) when using APXS:
There is a bug report about this problem. The work around is messy but it
works.
After you run ./configure, a script named 'libtool' is generated. Find the
archive_cmds= and archive_expsym_cmds line and add the additional switch to
each:
\${w1} -bI/usr/local/apache/libexec/httpd.exp
Then recompile.
The segfault is caused when PHP attempts to call an Apache API. The -bI switch tells PHP which calls have been exported and can be resolved at runtime.
Bill
My question is, why does the Linux version compile and install so easily compared to AIX? Is there a FAQ out there to help us morons who don't eat/sleep/breath makefile configurations in order to get this to compile properly?
Zack Hamm