LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices



Reply
 
Search this Thread
Old 04-26-2006, 11:38 AM   #1
hampen
LQ Newbie
 
Registered: Apr 2006
Posts: 3

Rep: Reputation: 0
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

Last edited by hampen; 04-26-2006 at 11:40 AM.
 
Old 04-26-2006, 05:36 PM   #2
tomdkat
Member
 
Registered: May 2003
Location: S.F. Bay Area
Distribution: Ubuntu 9.04 AMD64
Posts: 595

Rep: Reputation: 30
Have you done any system updates or upgrades at all recently?

Peace...
 
Old 04-27-2006, 05:50 AM   #3
hampen
LQ Newbie
 
Registered: Apr 2006
Posts: 3

Original Poster
Rep: Reputation: 0
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
 
Old 04-27-2006, 07:00 AM   #4
bathory
Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 10,975

Rep: Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343
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
 
Old 04-28-2006, 06:19 AM   #5
pen8wen
LQ Newbie
 
Registered: Apr 2006
Posts: 17

Rep: Reputation: 0
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
 
Old 04-28-2006, 10:23 AM   #6
hampen
LQ Newbie
 
Registered: Apr 2006
Posts: 3

Original Poster
Rep: Reputation: 0
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
 
Old 04-29-2006, 06:34 PM   #7
pen8wen
LQ Newbie
 
Registered: Apr 2006
Posts: 17

Rep: Reputation: 0
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.

Last edited by pen8wen; 04-30-2006 at 07:10 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Install PHP - Error During Compile Sitaga Linux - Software 3 01-13-2005 01:04 PM
compile php with gd ? sonaatti Slackware 3 11-29-2004 11:46 AM
can't compile php 4.3.3 adrianmak Linux - Software 3 11-20-2003 09:06 PM
PHP 4.3 compile error on RH9 men$an Linux - Distributions 0 05-23-2003 02:09 AM
Compile php grubjo Linux - Software 7 09-09-2002 04:19 PM


All times are GMT -5. The time now is 07:32 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration