php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #3710 mysql.so complies but get invalid library on startup
Submitted: 2000-03-02 14:31 UTC Modified: 2000-03-02 16:18 UTC
From: oyarzun at wilmington dot net Assigned:
Status: Closed Package: Dynamic loading
PHP Version: 4.0 Latest CVS (02/03/2000) OS: Linux (mandrake 6.1 and redhat 6
Private report: No CVE-ID: None
 [2000-03-02 14:31 UTC] oyarzun at wilmington dot net
I compiled the mysql extension as a shared library.  Here is the section from the rpm spec file:

# MySQL module
cd ./ext/mysql
/usr/sbin/apxs -c -DCOMPILE_DL=1 -I. -I../../ -I../../Zend \
  -I/usr/include/mysql -o ../../mysql.so php_mysql.c -lmysqlclient -lc

It compiles fine.. Running strings on the mysql.so shows the functions are in the shared library, but when I start apache I get:

PHP Warning:  Invalid library (maybe not a PHP library) 'mysql.so'  in Unknown o
n line 0
PHP Warning:  Invalid library (maybe not a PHP library) 'mysql.so'  in Unknown o
n line 0
[Thu Mar  2 14:13:48 2000] [notice] Apache/1.3.11 (Unix)  (NetRevolution Advance
d Server/Linux-Mandrake) PHP/4.0b5-dev DAV/0.9.12 configured -- resuming normal
operations
[Thu Mar  2 14:13:48 2000] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin
/suexec)


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-03-02 16:16 UTC] oyarzun at wilmington dot net
I just found the configure option --with-mysql=shared.
Using that the shared library works.
 [2000-03-02 16:18 UTC] oyarzun at wilmington dot net
Sorry, forgot to change status to closed.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Mar 28 17:01:29 2024 UTC