LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 04-21-2012, 08:17 AM   #1
flyer103
Member
 
Registered: Mar 2010
Location: Beijing, China
Distribution: Slackware
Posts: 41

Rep: Reputation: 1
PHP gearman undefined symbol: zend_new_interned_string in Unknown on line 0


Hello everyone.
I installed gearmand-0.32 on Slackware-current, and then installed gearman-1.0.2. After that, I copied gearman.so from /usr/local/lib/php/extensions/debug-non-zts-20100525/gearman.so
to /usr/lib/php/extensions and then added "extension=gearman.so" on /etc/httpd/php.ini.
But when I run
Quote:
$ php --info | grep gearman
I got the following warning:
Quote:
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/extensions/gearman.so' - /usr/lib/php/extensions/gearman.so: undefined symbol: zend_new_interned_string in Unknown on line 0
My php version is 5.3.10.
I couldn't google what's wrong. Please give me some tips. Thanks a lot

Last edited by flyer103; 04-21-2012 at 08:18 AM.
 
Old 04-22-2012, 03:54 AM   #2
j-ray
Senior Member
 
Registered: Jan 2002
Location: germany
Distribution: ubuntu, mint, suse
Posts: 1,591

Rep: Reputation: 145Reputation: 145
maybe it helps making /usr/lib/php/extensions/gearman.so a symlink to the .so file instead of copying it?

ln -s /usr/local/lib/php/extensions/debug-non-zts-20100525/gearman.so /usr/lib/php/extensions/gearman.so

If not you should follow the install described here:
http://gearman.org/index.php?id=gett..._php_extension

Last edited by j-ray; 04-22-2012 at 08:31 AM.
 
Old 04-22-2012, 09:27 AM   #3
flyer103
Member
 
Registered: Mar 2010
Location: Beijing, China
Distribution: Slackware
Posts: 41

Original Poster
Rep: Reputation: 1
Quote:
Originally Posted by j-ray View Post
maybe it helps making /usr/lib/php/extensions/gearman.so a symlink to the .so file instead of copying it?

ln -s /usr/local/lib/php/extensions/debug-non-zts-20100525/gearman.so /usr/lib/php/extensions/gearman.so

If not you should follow the install described here:
http://gearman.org/index.php?id=gett..._php_extension
I'm sorry the two methods didn't help and the same problem is encountered……
 
Old 04-23-2012, 08:01 AM   #4
flyer103
Member
 
Registered: Mar 2010
Location: Beijing, China
Distribution: Slackware
Posts: 41

Original Poster
Rep: Reputation: 1
Today I found that the problem was caused by php-config. I installed php5.4 some days ago and removed all files of php5.4 manually. Maybe I didn't remove php-config that belongs to php5.4.
When I configure gearman using the following commands:
Quote:
$ ./configure --with-php-config=/usr/bin/php-config
After the common steps, all things are done!
Thank you
 
  


Reply



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
apache + php: undefined symbol: zend_parse_parameters meczo Linux - Server 3 01-28-2011 09:43 PM
[SOLVED] Error installing PHP with Apache (undefined symbol: sqlite3ExprDelete) ShellyCat Linux - Software 3 12-25-2010 06:11 PM
[SOLVED] php-mysql dynamic module fails on RHEL 5.5 -- undefined symbol: executor_globals ccfalsesysadm Linux - Server 3 11-17-2010 12:22 PM
PHP+Apache2: undefined symbol error on linux box vkaur Linux - General 4 06-15-2007 07:46 AM
PHP+apache undefined symbol:unixd_config error Emist Linux - Newbie 13 03-15-2005 10:49 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 12:32 AM.

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
Open Source Consulting | Domain Registration