Re: Bug #7022 [Com]: Fail to install (Invalid library)

From: Date: Sat, 25 Mar 2006 12:46:24 +0000
Subject: Re: Bug #7022 [Com]: Fail to install (Invalid library)
References: 1  Groups: php.pecl.dev 
Request: Send a blank email to pecl-dev+get-3666@lists.php.net to get a copy of this message
Hi, can you test changing COMPILE_DL_STATISTICS to COMPILE_DL_STATS in statistics.c and try to compile it again as a module without touching anything else? Thanks, Andrey cherry_avium at yahoo dot com wrote:
Edit report at http://pecl.php.net/bugs/bug.php?id=7022&edit=1
 ID:               7022
 Comment by:       cherry_avium at yahoo dot com
 Reported By:      pavlos at psychology dot gr
 Status:           Open
 Type:             Bug
 Package:          stats
Operating System: Gentoo Linux on PPC (mac mini)
 PHP Version:      4.4.1
New Comment: Here's the steps to fix the problem: 1. run phpize 2. edit generated Makefile 3. add -DCOMPILE_DL_STATISTICS to CPPGLAFS 4. make, make install Or else 1. open statistics.c 2. remove the #ifdef and #endif in line 136-138 around ZEND_GET_MODULE(stats) Or else, maybe, compile it staticly with php :D Previous Comments: ------------------------------------------------------------------------ [2006-03-15 09:48:20] keke at keke dot dk I have same problem. Linux 2.6.14-gentoo-r5 on x86 Using PHP-5.0.5 and tried too PHP-5.1.2 doesn't make a differens. PHP Warning: PHP Startup: Invalid library (maybe not a PHP library) 'stats.so' in Unknown on line 0 ------------------------------------------------------------------------ [2006-03-13 16:15:49] rashid at ds dot pg dot gda dot pl windows builds from snaps.php.net have the same problem ------------------------------------------------------------------------ [2006-03-04 15:34:41] pavlos at psychology dot gr Description: ------------ Hello! I am trying to install stats. When I restart Apache I get the error: PHP Warning: Unknown(): Invalid library (maybe not a PHP library) 'stats.so' in Unknown on line 0 I have tried to install with "pear install stats". Then I tried to install manually from CVS (phpize et al.). The error remains the same. I have tried both dl('stats.so') or extension=stats.so in php.ini. The error is either displayed or written in the apache error log. Some info (could be irrelevant): gcc -v gcc version 3.4.4 (Gentoo 3.4.4-r1, ssp-3.4.4-1.0, pie-8.7.8) Reproduce code: --------------- pear install stats echo "<?php dl('stats.so'); ?>" |php Expected result: ---------------- nothing Actual result: -------------- Warning: dl(): Invalid library (maybe not a PHP library) 'stats.so' in - on line 1 ------------------------------------------------------------------------


« previous php.pecl.dev (#3666) next »