Re: [PHP] undefined symbol: uncompress

2002-01-27 Thread Miles Thompson


Add the path to libphp4.so to the file /etc/ld.conf.so  
and run ldconfig

or

copy libphp4.so to the libexec directory found beneath the main apach directory. 
It's most likely in the libs directory of your php source directory.

The second way is probably the best.

HTH - Miles Thompson


On Sunday 27 January 2002 03:11 pm, David Jackson wrote:
 I've seen similar question in the archive, but here it goes?
 Setup: Slackware-8.0, Apache-1.3.23, mysql-3.23.47-pc-linux-gnu-i686
 Config options:
 Apache: ./configure --prefix=/usr/local/www --with-modules=most
 compiles and run fine.

 MySQl from binaires run fine into /usr/local/mysql (set ld.so.conf to
 correct value).

 PHP-4.1.1: ./configure --with-apxs=/usr/local/www/bin/apxs
 --with-mysql=/usr/local/mysql
 cp php-ini-recommanded /usr/local/lib/php.ini
 Added AddType statement to httpd.conf


 Results in following error when I try to start Apache:

 Syntax error on line 236 of /usr/local/www/conf/httpd.conf:
 Cannot load /usr/local/www/libexec/libphp4.so into server:
 /usr/local/www/libexec/libphp4.so: undefined symbol: uncompress

 Line 236 of http.conf:
 LoadModule php4_modulelibexec/libphp4.so


 Thanks for you help.
 David Jackson

-- 
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]




Re: [PHP] undefined symbol: uncompress

2002-01-27 Thread Michael Sims

At 12:11 PM 1/27/2002 -0700, David Jackson wrote:
I've seen similar question in the archive, but here it goes?
Setup: Slackware-8.0, Apache-1.3.23, mysql-3.23.47-pc-linux-gnu-i686
[...]
Config options:
Syntax error on line 236 of /usr/local/www/conf/httpd.conf:
Cannot load /usr/local/www/libexec/libphp4.so into server:
/usr/local/www/libexec/libphp4.so: undefined symbol: uncompress

I had this problem on RedHat 7.2.  Turns out I needed zlib support 
(libz.so).  Not sure how to do it on Slackware, but on RedHat 7.2 you need 
two RPMs, both zlib-1.1.3-24 and zlib-devel-1.1.3-24.  After I installed 
these RPMs I had to do a make clean, rm config.cache, and then configure 
again adding --with-zlib to the configure command.

(I saw some saying that you needed to add -ld to the LTLIBRARY_LDFLAGS 
line in the top level Makefile but this did not work for me.)

To be honest, I have no idea why any of this was needed, I got all this 
info from various sources on Google Groups.  But it worked for me.  Maybe 
this can point you in the right direction...


-- 
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]




Re: [PHP] undefined symbol: uncompress

2002-01-27 Thread David Jackson

Mike --
Thanks for you reply, I made the changes an am stilling getting the same
error?
On the other hand if I compile PHP with out specifing mysql home. I
don't get the error.

David Jackson

Miles Thompson wrote:
 
 Add the path to libphp4.so to the file /etc/ld.conf.so
 and run ldconfig
 
 or
 
 copy libphp4.so to the libexec directory found beneath the main apach directory.
 It's most likely in the libs directory of your php source directory.
 
 The second way is probably the best.
 
 HTH - Miles Thompson
 
 On Sunday 27 January 2002 03:11 pm, David Jackson wrote:
  I've seen similar question in the archive, but here it goes?
  Setup: Slackware-8.0, Apache-1.3.23, mysql-3.23.47-pc-linux-gnu-i686
  Config options:
  Apache: ./configure --prefix=/usr/local/www --with-modules=most
  compiles and run fine.
 
  MySQl from binaires run fine into /usr/local/mysql (set ld.so.conf to
  correct value).
 
  PHP-4.1.1: ./configure --with-apxs=/usr/local/www/bin/apxs
  --with-mysql=/usr/local/mysql
  cp php-ini-recommanded /usr/local/lib/php.ini
  Added AddType statement to httpd.conf
 
 
  Results in following error when I try to start Apache:
 
  Syntax error on line 236 of /usr/local/www/conf/httpd.conf:
  Cannot load /usr/local/www/libexec/libphp4.so into server:
  /usr/local/www/libexec/libphp4.so: undefined symbol: uncompress
 
  Line 236 of http.conf:
  LoadModule php4_modulelibexec/libphp4.so
 
 
  Thanks for you help.
  David Jackson

-- 
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]




Re: [PHP] undefined symbol: uncompress

2002-01-27 Thread Michael Sims

At 12:50 PM 1/27/2002 -0700, David Jackson wrote:
Mike --
Thanks for you reply, I made the changes an am stilling getting the same
error?
On the other hand if I compile PHP with out specifing mysql home. I
don't get the error.

Check and see which directory libmysqlclient.so is in, and make sure that 
directory is listed in /etc/ld.so.conf and rerun ldconfig.  Then try to 
start the server.


-- 
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]




Re: [PHP] undefined symbol: uncompress

2002-01-27 Thread David Jackson

Micheal --
Thanks for your replys.
What I see in /usr/local/mysql/lib is:

libmysqlclient.a 

I'm wondering if the MySQL binaaries use static libs?



Thanks, 
David


Michael Sims wrote:
 
 At 12:50 PM 1/27/2002 -0700, David Jackson wrote:
 Mike --
 Thanks for you reply, I made the changes an am stilling getting the same
 error?
 On the other hand if I compile PHP with out specifing mysql home. I
 don't get the error.
 
 Check and see which directory libmysqlclient.so is in, and make sure that
 directory is listed in /etc/ld.so.conf and rerun ldconfig.  Then try to
 start the server.

-- 
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]




Re: [PHP] undefined symbol: uncompress

2002-01-27 Thread Miles Thompson


Try it t wo ways ...
1. w/o the with-mysql, run a script containing phpinfo() and see what it returns. 
MySQL support is compiled in by default to a default location.

2. Check that the with-mysql parameter is correct. On one system I had a path that was 
/usr/local/mysql/bin/mysql
and yes, that fina lmysql was a directory. It caused so me problems.

It would help if the error messages were clearer, but they're still better than Winows 
GPF's.

Miles Thompson

On Sunday 27 January 2002 03:50 pm, David Jackson wrote:
 Mike --
 Thanks for you reply, I made the changes an am stilling getting the same
 error?
 On the other hand if I compile PHP with out specifing mysql home. I
 don't get the error.

 David Jackson

 Miles Thompson wrote:
  Add the path to libphp4.so to the file /etc/ld.conf.so
  and run ldconfig
 
  or
 
  copy libphp4.so to the libexec directory found beneath the main apach
  directory. It's most likely in the libs directory of your php source
  directory.
 
  The second way is probably the best.
 
  HTH - Miles Thompson
 
  On Sunday 27 January 2002 03:11 pm, David Jackson wrote:
   I've seen similar question in the archive, but here it goes?
   Setup: Slackware-8.0, Apache-1.3.23, mysql-3.23.47-pc-linux-gnu-i686
   Config options:
   Apache: ./configure --prefix=/usr/local/www --with-modules=most
   compiles and run fine.
  
   MySQl from binaires run fine into /usr/local/mysql (set ld.so.conf to
   correct value).
  
   PHP-4.1.1: ./configure --with-apxs=/usr/local/www/bin/apxs
   --with-mysql=/usr/local/mysql
   cp php-ini-recommanded /usr/local/lib/php.ini
   Added AddType statement to httpd.conf
  
  
   Results in following error when I try to start Apache:
  
   Syntax error on line 236 of /usr/local/www/conf/httpd.conf:
   Cannot load /usr/local/www/libexec/libphp4.so into server:
   /usr/local/www/libexec/libphp4.so: undefined symbol: uncompress
  
   Line 236 of http.conf:
   LoadModule php4_modulelibexec/libphp4.so
  
  
   Thanks for you help.
   David Jackson

-- 
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]