Hi,
It's probably a simple problem but never the less I spent the last 3 days
trying to figure it out.
Here it is, I hope you can help.
I configure apache with php and when I "make apache" I get the following
error:
"...
/usr/local/mysql/lib/libmysqlclient.a(my_compress.o): In function
'my_uncompress':
my_compress.o(.text+ox9a): undefined reference to 'compress'
collect2: ld returned 1 exit status
make[2]: ***[target_static] Error 1
make[2]: Leaving directory /usr/local/apache_1.3.19/src'
make[1]: ***[build-sld] Error 2
make[1]: Leaving directory '/usr/local/apache_1.3.19'
make:***[build] Error 2
...
"
when I remove the line --activate-module=src/modules/php4/libphp4.a from the
configure command for apache everything works fine....but of course php does
not work...
all the php4 files required by appache are in the apache src/modules/php4/
directory as far as I can tell.
Where is this error comming from, any idea?
See below for more details
-----
The packages used:
A new linux red-hat 7.2 server install
apache_1.3.19 (source)
mod_ssl-1.8.3-1.3.19 (source)
mysql-3.23.37-pc-linux-gnu-i686 (binary)
openssl-0.9.6a (source)
php-4.0.5 (source)
----
Here is more information and all the commands I do.
First I unpack all packages into /usr/local
1) mysql
shell> groupadd mysql
shell> useradd -g mysql mysql
shell> ln -s mysql-mysql-3.23.37-pc-linux-gnu-i686 mysql
shell> cd mysql
shell> scripts/mysql_install_db
shell> chown -R root /usr/local/mysql
shell> chown -R mysql /usr/local/mysql/data
shell> chgrp -R mysql /usr/local/mysql
shell> chown -R root /usr/local/mysql/bin/
shell> bin/safe_mysqld --user=mysql &
2) apache (configure only)
./configure --prefix/usr/local/apache
3) php
./configure --with-mysql=/usr/local/mysql --with-xml --with-apache=../apache
_1.3.19 --with-gettext --enable-track-vars
make
make install
cp php.ini-dist /usr/local/lib/php.ini
4) openssl
./config --prefix=/usr/local/ssl
make
make test
make install
5) mod_ssl (configure only)
./configure --with apache=../apache_1.3.19
6) apache
SSL_BASE=../openssl-0.9.6a
./configure --enable-module=ssl --activate-module=src/modules/php4/libphp4.a
--enable-module=php4 --prefix=/usr/local/apache --enable-shared=ssl
make (PROBLEM ABOVE)
Thanks for the help!!!!
Maxime
[EMAIL PROTECTED]
--
PHP General 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]