I'll dispense with why I'm posting this.....
1) Download PHP source.
2) gunzip -> tar ....
3)
./configure --without-mysql --with-ibm-db2 --with-apxs=/usr/local/apache/bin
/apxs
4) cd php-4.0.5
5) vi libtool
6) Hack away at these lines: (many posts around on this)
archive_cmds= .....
add this:
\${wl} -bI:/usr/local/apache/libexec/httpd.exp
do the same for:
archive_expsym_cmds= ......
7) Search for the following:
Do each command in the archive commands
At the bottom of the loop that starts with the line:
for oldobj in $oldobjs; do
.
.
.
.
done
insert this just before and after the "done" i.e.
obj=`$echo "X$oldobj" | $Xsed -e "lo2o"`
eval "cp $oldobj $obj"
done
oldobjs=`$echo "X$oldobjs" | $Xsed -e 's/\.lo/\.o/g'`
What this does:
All .lo files are copied to .o files. The variable that thought it had .lo
files now has .o files. This
prevents the AIX linker from "spitting the dummy" because of the file types
are wrong. The
libtool still think it has the .lo files around (because they are - hence
this is inefficient because of the
multiple copies of the object code ....) which libtool thinks it owns and
controls.
8) make
9) make install
Your compilation will now work and PHP will install and operate correctly.
I'm now working on getting DB2 to work. It seems that the environment is not
allocated for
network DB2 connections. Those people that have it working are only running
on locally connected
databases (I think) and there seems to be some kind of difference (don't
know yet).
OK I feel better now, having posted this.
Phill.
--
PHP Install Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]