LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   PHP Compile error (https://www.linuxquestions.org/questions/linux-software-2/php-compile-error-439023/)

hampen 04-26-2006 10:38 AM

PHP Compile error
 
Howdy folks!

I have been running PHP 5.1.1 on a SuSE 10.0 test server for a few weeks, and I haven't noticed anything funny until today.
Now, when I do php --version it pops up with:
Quote:

PHP Warning: PHP Startup: UåVSè«øÿÿÃFN: Unable to initialize module
Module compiled with module API=20020429, debug=0, thread-safety=0
PHP compiled with module API=20050922, debug=0, thread-safety=0
These options need to match
in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/extensions/wddx.so' - /usr/lib/php/extensions/wddx.so: undefined symbol: empty_string in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/extensions/unixODBC.so' - /usr/lib/php/extensions/unixODBC.so: undefined symbol: empty_string in Unknown on line 0
PHP Warning: PHP Startup: UåVSèëþÿÿÃ2#: Unable to initialize module
Module compiled with module API=20020429, debug=0, thread-safety=0
PHP compiled with module API=20050922, debug=0, thread-safety=0
These options need to match
in Unknown on line 0
And many, many more blocks like this, before giving the version output.

When I tried to recompile/upgrade to 5.1.2 it didn't help, and when I started looking closer at the compiling process I noticed this:

Quote:

[...]
on-pic -c /root/download/php-4.4.2/ext/zlib/zlib.c -o ext/zlib/zlib.lo
/root/download/php-4.4.2/ext/zlib/zlib.c: In function âzif_gzcompressâ:
/root/download/php-4.4.2/ext/zlib/zlib.c:440: warning: pointer targets in passing argument 1 of âcompress2â differ in signedness
/root/download/php-4.4.2/ext/zlib/zlib.c:440: warning: pointer targets in passing argument 3 of âcompress2â differ in signedness
/root/download/php-4.4.2/ext/zlib/zlib.c:442: warning: pointer targets in passing argument 1 of âcompressâ differ in signedness
/root/download/php-4.4.2/ext/zlib/zlib.c:442: warning: pointer targets in passing argument 3 of âcompressâ differ in signedness
/root/download/php-4.4.2/ext/zlib/zlib.c: In function âzif_gzuncompressâ:
/root/download/php-4.4.2/ext/zlib/zlib.c:498: warning: pointer targets in passing argument 1 of âuncompressâ differ in signedness
/root/download/php-4.4.2/ext/zlib/zlib.c:498: warning: pointer targets in passing argument 3 of âuncompressâ differ in signedness
/root/download/php-4.4.2/ext/zlib/zlib.c: In function âzif_gzdeflateâ:
/root/download/php-4.4.2/ext/zlib/zlib.c:555: warning: pointer targets in assignment differ in signedness
/root/download/php-4.4.2/ext/zlib/zlib.c: In function âzif_gzinflateâ:
/root/download/php-4.4.2/ext/zlib/zlib.c:634: warning: pointer targets in assignment differ in signedness
[...]
... and the same on other modules, I believe xml as well..

I get the same with PHP 4.4.2, 5.1.1 and 5.1.2.

configured with

Quote:

./configure --with-xml-dir=/usr/include/libxml2 --with-bz2=/usr/lib --with-curl=/usr --with-bd --with-mysqli=/usr/local/mysql/bin/mysql_config --with-mysql=/usr/local/mysql --with-apxs2=/usr/local/apache2/bin/apxs --with-zlib=/usr
Does anyone have any ideas is this a problem with my libs or with gcc?

Like I said before, it seemed to be working fine for a long time. I only noticed it yesterday when the simplexml_load_string() didn't work as expected.
CURL seems to be working.

Any ideas or pointers?


HK

tomdkat 04-26-2006 04:36 PM

Have you done any system updates or upgrades at all recently?

Peace...

hampen 04-27-2006 04:50 AM

Quote:

Originally Posted by tomdkat
Have you done any system updates or upgrades at all recently?

Peace...

Hmmm... No, can't say I have...

Cheers!

HK

bathory 04-27-2006 06:00 AM

Quote:

PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/extensions/wddx.so' - /usr/lib/php/extensions/wddx.so: undefined symbol: empty_string in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/extensions/unixODBC.so' - /usr/lib/php/extensions/unixODBC.so: undefined symbol: empty_string in Unknown on line 0
Remove or comment the references to the 2 modules from your php.ini

pen8wen 04-28-2006 05:19 AM

i have a question for you - is DB.php installed on your system? i think it should be in /usr/share/php? it should only be present if you're using PEAR.

if you do perchance have it, could you tell me what php packages you have installed? (rpm -qa|grep -i php should do it)

thanks

hampen 04-28-2006 09:23 AM

Quote:

Originally Posted by pen8wen
i have a question for you - is DB.php installed on your system? i think it should be in /usr/share/php? it should only be present if you're using PEAR.

if you do perchance have it, could you tell me what php packages you have installed? (rpm -qa|grep -i php should do it)

thanks

Hmm... I don't.. Though I do have
/usr/local/lib/php/PEAR/DependencyDB.php
if that's any good to you.

And I didn't install php as rpm eigther. Self compiled. You can see the ./configure command I used above.

If I don't get anywhere with this over the weekend, I will just reinstall. (You always have the option to reinstall)

Would be good though to figure out what it is and why it happened, so that I don't have to spend the same amount of time on it if it happens again.

Cheers!

HK

pen8wen 04-29-2006 05:34 PM

i don't think db.php gets installed from pkgs on the suse cds.

i need to install using the installer, but it needs internet access (aparantly) even tho i've d/l'd the pear packages. the "approved" method is to use the installer. i havent figured out how to install d/l'd pkgs. maybe it's possible. the machine i am pear-ing is not connected, only my laptop. i would like to just d/l pkgs and install.

the REALLY goofy thing is that pear -V reports info that conflicts with the errors you get when using pear install DB-1.something - it sez it wants pear >= 1.01b or some such - i forget the exact rev - but it sez it wants something newer than the installer thinks it is, but less than what pear -v sez.

thanks suse for not providing the basic DB stuff so we can use mysql.

if i figure out how to beat the "no access" issue plus the conflicting version thing, i'll post it.


All times are GMT -5. The time now is 07:47 AM.