PHP 4.0 Bug #3710: mysql.so complies but get invalid library on startup

From: Date: Thu, 02 Mar 2000 19:31:10 +0000
Subject: PHP 4.0 Bug #3710: mysql.so complies but get invalid library on startup
Groups: php.dev 
Request: Send a blank email to php-dev+get-16310@lists.php.net to get a copy of this message
From: oyarzun@wilmington.net Operating system: Linux (mandrake 6.1 and redhat 6.0) PHP version: 4.0 Latest CVS (02/03/2000) PHP Bug Type: Dynamic loading related Bug description: mysql.so complies but get invalid library on startup 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)

« previous php.dev (#16310) next »