Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.php > #16086 > unrolled thread

/usr/lib64/php/modules/mysqlnd_ms.so: undefined symbol: mysqlnd_globals in Unknown on line 0

Started byjwang25610@gmail.com
First post2016-01-05 07:59 -0800
Last post2016-01-06 15:24 -0500
Articles 13 — 6 participants

Back to article view | Back to comp.lang.php


Contents

  /usr/lib64/php/modules/mysqlnd_ms.so: undefined symbol: mysqlnd_globals in Unknown on line 0 jwang25610@gmail.com - 2016-01-05 07:59 -0800
    Re: /usr/lib64/php/modules/mysqlnd_ms.so: undefined symbol: mysqlnd_globals in Unknown on line 0 James Wang <jwang25610@gmail.com> - 2016-01-05 08:54 -0800
      Re: /usr/lib64/php/modules/mysqlnd_ms.so: undefined symbol: mysqlnd_globals in Unknown on line 0 Michael Vilain <vilain@NOspamcop.net> - 2016-01-05 14:44 -0800
    Re: /usr/lib64/php/modules/mysqlnd_ms.so: undefined symbol: mysqlnd_globals in Unknown on line 0 James Wang <jwang25610@gmail.com> - 2016-01-05 08:56 -0800
      Re: /usr/lib64/php/modules/mysqlnd_ms.so: undefined symbol: mysqlnd_globals in Unknown on line 0 Anders Wegge Keller <wegge@geostat.dk> - 2016-01-06 21:54 +0100
        Re: /usr/lib64/php/modules/mysqlnd_ms.so: undefined symbol: mysqlnd_globals in Unknown on line 0 James Wang <jwang25610@gmail.com> - 2016-01-07 06:32 -0800
          Re: /usr/lib64/php/modules/mysqlnd_ms.so: undefined symbol: mysqlnd_globals in Unknown on line 0 James Wang <jwang25610@gmail.com> - 2016-01-07 08:49 -0800
    Re: /usr/lib64/php/modules/mysqlnd_ms.so: undefined symbol: mysqlnd_globals in Unknown on line 0 Jerry Stuckle <jstucklex@attglobal.net> - 2016-01-05 14:05 -0500
      Re: /usr/lib64/php/modules/mysqlnd_ms.so: undefined symbol: mysqlnd_globals in Unknown on line 0 James Wang <jwang25610@gmail.com> - 2016-01-06 00:58 -0800
        Re: /usr/lib64/php/modules/mysqlnd_ms.so: undefined symbol: mysqlnd_globals in Unknown on line 0 "J.O. Aho" <user@example.net> - 2016-01-06 12:57 +0100
        Re: /usr/lib64/php/modules/mysqlnd_ms.so: undefined symbol: mysqlnd_globals in Unknown on line 0 Jerry Stuckle <jstucklex@attglobal.net> - 2016-01-06 09:44 -0500
          Re: /usr/lib64/php/modules/mysqlnd_ms.so: undefined symbol: mysqlnd_globals in Unknown on line 0 James Wang <jwang25610@gmail.com> - 2016-01-06 09:09 -0800
            Re: /usr/lib64/php/modules/mysqlnd_ms.so: undefined symbol: mysqlnd_globals in Unknown on line 0 Jerry Stuckle <jstucklex@attglobal.net> - 2016-01-06 15:24 -0500

#16086 — /usr/lib64/php/modules/mysqlnd_ms.so: undefined symbol: mysqlnd_globals in Unknown on line 0

Fromjwang25610@gmail.com
Date2016-01-05 07:59 -0800
Subject/usr/lib64/php/modules/mysqlnd_ms.so: undefined symbol: mysqlnd_globals in Unknown on line 0
Message-ID<faf724d8-a4c9-4bae-988b-ffe9c7ecb91d@googlegroups.com>
Hi All,

php -v
PHP 5.3.29 (cli) (built: Aug 15 2014 20:53:28)
Copyright (c) 1997-2014 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2014 Zend Technologies

uname -a
Linux ns-dv-lamp-27.dxi.eu 2.6.32-431.29.2.el6.x86_64 #1 SMP Tue Sep 9 21:36:05 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux

I had the error as in the topic.

Google a bit and some one suggested to comment out what in /etc/php.ini and add a file and "service php-fpm restart" afterwards:
/etc/php.d/mysqlnd_ms.ini
mysqlnd_ms.enable=1
mysqlnd_ms.force_config_usage=1
mysqlnd_ms.config_file=/etc/mysqlnd_ms_cfg.ini
extension=mysqlnd_ms.so

But at later stage, I had:  
PHP Fatal error:  Call to undefined function mysqlnd_ms_fabric_select_global()

Please help.

Thanks a lot in advance

[toc] | [next] | [standalone]


#16087

FromJames Wang <jwang25610@gmail.com>
Date2016-01-05 08:54 -0800
Message-ID<6a80c5fa-7c30-4c4f-919a-f51dc0029764@googlegroups.com>
In reply to#16086
On Debian
php -v
PHP 5.4.37-1+deb.sury.org~lucid+1 (cli) (built: Jan 26 2015 11:45:32)
Copyright (c) 1997-2014 The PHP Group
Zend Engine v2.4.0, Copyright (c) 1998-2014 Zend Technologies

I had:
 /usr/lib/php5/20100525/mysqlnd_ms.so: undefined symbol: mysqlnd_global_stats in Unknown on line 0


On Tuesday, 5 January 2016 15:59:41 UTC, James Wang  wrote:
> Hi All,
> 
> php -v
> PHP 5.3.29 (cli) (built: Aug 15 2014 20:53:28)
> Copyright (c) 1997-2014 The PHP Group
> Zend Engine v2.3.0, Copyright (c) 1998-2014 Zend Technologies
> 
> uname -a
> Linux ns-dv-lamp-27.dxi.eu 2.6.32-431.29.2.el6.x86_64 #1 SMP Tue Sep 9 21:36:05 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux
> 
> I had the error as in the topic.
> 
> Google a bit and some one suggested to comment out what in /etc/php.ini and add a file and "service php-fpm restart" afterwards:
> /etc/php.d/mysqlnd_ms.ini
> mysqlnd_ms.enable=1
> mysqlnd_ms.force_config_usage=1
> mysqlnd_ms.config_file=/etc/mysqlnd_ms_cfg.ini
> extension=mysqlnd_ms.so
> 
> But at later stage, I had:  
> PHP Fatal error:  Call to undefined function mysqlnd_ms_fabric_select_global()
> 
> Please help.
> 
> Thanks a lot in advance

[toc] | [prev] | [next] | [standalone]


#16098

FromMichael Vilain <vilain@NOspamcop.net>
Date2016-01-05 14:44 -0800
Message-ID<vilain-3608DA.14445405012016@news.individual.net>
In reply to#16087
In article <6a80c5fa-7c30-4c4f-919a-f51dc0029764@googlegroups.com>,
 James Wang <jwang25610@gmail.com> wrote:

> On Debian
> php -v
> PHP 5.4.37-1+deb.sury.org~lucid+1 (cli) (built: Jan 26 2015 11:45:32)
> Copyright (c) 1997-2014 The PHP Group
> Zend Engine v2.4.0, Copyright (c) 1998-2014 Zend Technologies
> 
> I had:
>  /usr/lib/php5/20100525/mysqlnd_ms.so: undefined symbol: mysqlnd_global_stats 
>  in Unknown on line 0
> 
> 
> On Tuesday, 5 January 2016 15:59:41 UTC, James Wang  wrote:
> > Hi All,
> > 
> > php -v
> > PHP 5.3.29 (cli) (built: Aug 15 2014 20:53:28)
> > Copyright (c) 1997-2014 The PHP Group
> > Zend Engine v2.3.0, Copyright (c) 1998-2014 Zend Technologies
> > 
> > uname -a
> > Linux ns-dv-lamp-27.dxi.eu 2.6.32-431.29.2.el6.x86_64 #1 SMP Tue Sep 9 
> > 21:36:05 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux
> > 
> > I had the error as in the topic.
> > 
> > Google a bit and some one suggested to comment out what in /etc/php.ini and 
> > add a file and "service php-fpm restart" afterwards:
> > /etc/php.d/mysqlnd_ms.ini
> > mysqlnd_ms.enable=1
> > mysqlnd_ms.force_config_usage=1
> > mysqlnd_ms.config_file=/etc/mysqlnd_ms_cfg.ini
> > extension=mysqlnd_ms.so
> > 
> > But at later stage, I had:  
> > PHP Fatal error:  Call to undefined function 
> > mysqlnd_ms_fabric_select_global()
> > 
> > Please help.
> > 
> > Thanks a lot in advance

I don't know specifically about your Debian version of php, but the 
CentOS 6 version needed to have the MySQL package installed *before* php 
was installed.  Not a problem with CentOS 7 which broke out the various 
plugins for databases (that's what you're missing--the MySQL plugin).

Try installing the MySQL server, then the php server packages.

Just a SWAG...

-- 
DeeDee, don't press that button!  DeeDee!  NO!  Dee...
[I filter all Goggle Groups posts, so any reply may be automatically ignored]

[toc] | [prev] | [next] | [standalone]


#16088

FromJames Wang <jwang25610@gmail.com>
Date2016-01-05 08:56 -0800
Message-ID<39d725f6-1b37-46fc-bf68-148024ce68da@googlegroups.com>
In reply to#16086
on Debian,
 php -v
PHP 5.4.37-1+deb.sury.org~lucid+1 (cli) (built: Jan 26 2015 11:45:32)
Copyright (c) 1997-2014 The PHP Group
Zend Engine v2.4.0, Copyright (c) 1998-2014 Zend Technologies

I had:
 /usr/lib/php5/20100525/mysqlnd_ms.so: undefined symbol: mysqlnd_global_stats in Unknown on line 0


please shed some light.

thanks a lot
On Tuesday, 5 January 2016 15:59:41 UTC, James Wang  wrote:
> Hi All,
> 
> php -v
> PHP 5.3.29 (cli) (built: Aug 15 2014 20:53:28)
> Copyright (c) 1997-2014 The PHP Group
> Zend Engine v2.3.0, Copyright (c) 1998-2014 Zend Technologies
> 
> uname -a
> Linux ns-dv-lamp-27.dxi.eu 2.6.32-431.29.2.el6.x86_64 #1 SMP Tue Sep 9 21:36:05 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux
> 
> I had the error as in the topic.
> 
> Google a bit and some one suggested to comment out what in /etc/php.ini and add a file and "service php-fpm restart" afterwards:
> /etc/php.d/mysqlnd_ms.ini
> mysqlnd_ms.enable=1
> mysqlnd_ms.force_config_usage=1
> mysqlnd_ms.config_file=/etc/mysqlnd_ms_cfg.ini
> extension=mysqlnd_ms.so
> 
> But at later stage, I had:  
> PHP Fatal error:  Call to undefined function mysqlnd_ms_fabric_select_global()
> 
> Please help.
> 
> Thanks a lot in advance

[toc] | [prev] | [next] | [standalone]


#16117

FromAnders Wegge Keller <wegge@geostat.dk>
Date2016-01-06 21:54 +0100
Message-ID<20160106215422.6a6367ae@geostat.dk>
In reply to#16088
On Tue, 5 Jan 2016 08:56:48 -0800 (PST)
James Wang <jwang25610@gmail.com> wrote:

> on Debian,
>  php -v
> PHP 5.4.37-1+deb.sury.org~lucid+1 (cli) (built: Jan 26 2015 11:45:32)
> Copyright (c) 1997-2014 The PHP Group
> Zend Engine v2.4.0, Copyright (c) 1998-2014 Zend Technologies
> 
> I had:
>  /usr/lib/php5/20100525/mysqlnd_ms.so: undefined symbol:
> mysqlnd_global_stats in Unknown on line 0

 What output do you get when you run the command 

ldd usr/lib/php5/20100525/mysqlnd_ms.so

 It will list all the dynamic libraries that mysqlnd_ms depends on, and my
guess is that one of theose are missing. 

-- 
//Wegge

[toc] | [prev] | [next] | [standalone]


#16144

FromJames Wang <jwang25610@gmail.com>
Date2016-01-07 06:32 -0800
Message-ID<2daf448a-dc3b-452d-8fc0-9db33c26d6c3@googlegroups.com>
In reply to#16117
On Wednesday, 6 January 2016 20:54:33 UTC, Anders Wegge Keller  wrote:
> On Tue, 5 Jan 2016 08:56:48 -0800 (PST)
> James Wang <jwang25610@gmail.com> wrote:
> 
> > on Debian,
> >  php -v
> > PHP 5.4.37-1+deb.sury.org~lucid+1 (cli) (built: Jan 26 2015 11:45:32)
> > Copyright (c) 1997-2014 The PHP Group
> > Zend Engine v2.4.0, Copyright (c) 1998-2014 Zend Technologies
> > 
> > I had:
> >  /usr/lib/php5/20100525/mysqlnd_ms.so: undefined symbol:
> > mysqlnd_global_stats in Unknown on line 0
> 
>  What output do you get when you run the command 
> 
> ldd usr/lib/php5/20100525/mysqlnd_ms.so
> 
>  It will list all the dynamic libraries that mysqlnd_ms depends on, and my
> guess is that one of theose are missing. 
> 
> -- 
> //Wegge

ldd /usr/lib64/php/modules/mysqlnd_ms.so
        linux-vdso.so.1 =>  (0x00007fff7dbff000)
        libc.so.6 => /lib64/libc.so.6 (0x00007fc86a936000)
        /lib64/ld-linux-x86-64.so.2 (0x0000003a8a400000)


Thanks

[toc] | [prev] | [next] | [standalone]


#16149

FromJames Wang <jwang25610@gmail.com>
Date2016-01-07 08:49 -0800
Message-ID<da0bc9fc-0a84-4570-b1ba-fb14ae997d6c@googlegroups.com>
In reply to#16144
"Remi's packages" sorted out my problem.

Thanks a lot, All.

[toc] | [prev] | [next] | [standalone]


#16093

FromJerry Stuckle <jstucklex@attglobal.net>
Date2016-01-05 14:05 -0500
Message-ID<n6h403$t1b$1@jstuckle.eternal-september.org>
In reply to#16086
On 1/5/2016 10:59 AM, jwang25610@gmail.com wrote:
> Hi All,
> 
> php -v
> PHP 5.3.29 (cli) (built: Aug 15 2014 20:53:28)
> Copyright (c) 1997-2014 The PHP Group
> Zend Engine v2.3.0, Copyright (c) 1998-2014 Zend Technologies
> 
> uname -a
> Linux ns-dv-lamp-27.dxi.eu 2.6.32-431.29.2.el6.x86_64 #1 SMP Tue Sep 9 21:36:05 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux
> 
> I had the error as in the topic.
> 
> Google a bit and some one suggested to comment out what in /etc/php.ini and add a file and "service php-fpm restart" afterwards:
> /etc/php.d/mysqlnd_ms.ini
> mysqlnd_ms.enable=1
> mysqlnd_ms.force_config_usage=1
> mysqlnd_ms.config_file=/etc/mysqlnd_ms_cfg.ini
> extension=mysqlnd_ms.so
> 
> But at later stage, I had:  
> PHP Fatal error:  Call to undefined function mysqlnd_ms_fabric_select_global()
> 
> Please help.
> 
> Thanks a lot in advance
> 

Usually this indicates a mismatch between modules versions.  Are the PHP
and MySQL libraries from your distribution, or did you get them
somewhere else and/or compile them yourself?  If not from your
distribution, then I definitely suspect a version mismatch.

Just a side note: PHP 5.3.29 is pretty old and has been past end of life
since August, 2014.

-- 
==================
Remove the "x" from my email address
Jerry Stuckle
jstucklex@attglobal.net
==================

[toc] | [prev] | [next] | [standalone]


#16105

FromJames Wang <jwang25610@gmail.com>
Date2016-01-06 00:58 -0800
Message-ID<f2770ab7-8363-4e26-8e08-0b823f3b9568@googlegroups.com>
In reply to#16093
Both Centos and Debian Php and MySQL et al were installed by yum or apt-get

mysqlnd_ms were installed by pecl 


On Tuesday, 5 January 2016 19:05:17 UTC, Jerry Stuckle  wrote:
>
> 
> Usually this indicates a mismatch between modules versions.  Are the PHP
> and MySQL libraries from your distribution, or did you get them
> somewhere else and/or compile them yourself?  If not from your
> distribution, then I definitely suspect a version mismatch.
> 
> Just a side note: PHP 5.3.29 is pretty old and has been past end of life
> since August, 2014.
> 
> -- 
> ==================
> Remove the "x" from my email address
> Jerry Stuckle
> jstucklex@attglobal.net
> ==================

[toc] | [prev] | [next] | [standalone]


#16106

From"J.O. Aho" <user@example.net>
Date2016-01-06 12:57 +0100
Message-ID<df4doeF9q02U1@mid.individual.net>
In reply to#16105
On 01/06/2016 09:58 AM, James Wang wrote:
> Both Centos and Debian Php and MySQL et al were installed by yum or apt-get
> 
> mysqlnd_ms were installed by pecl 

Maybe better to use Remi's packages instead, as it could be the default
php-mysql which makes the conflict.

You can take a look at this howto for CentOS:
http://www.techoism.com/configure-master-and-slave-database-replication-using-mysqlnd-plugin/

-- 

 //Aho

[toc] | [prev] | [next] | [standalone]


#16109

FromJerry Stuckle <jstucklex@attglobal.net>
Date2016-01-06 09:44 -0500
Message-ID<n6j93r$piu$1@jstuckle.eternal-september.org>
In reply to#16105
On 1/6/2016 3:58 AM, James Wang wrote:
> On Tuesday, 5 January 2016 19:05:17 UTC, Jerry Stuckle  wrote:
>>
>>
>> Usually this indicates a mismatch between modules versions.  Are the PHP
>> and MySQL libraries from your distribution, or did you get them
>> somewhere else and/or compile them yourself?  If not from your
>> distribution, then I definitely suspect a version mismatch.
>>
>> Just a side note: PHP 5.3.29 is pretty old and has been past end of life
>> since August, 2014.
>>
> Both Centos and Debian Php and MySQL et al were installed by yum or
> apt-get
>
> mysqlnd_ms were installed by pecl
>

(Top posting fixed)

OK, did PHP work with MySQL before you installed the PECL extension?

Also, did you remove the php-mysql extension and install the
php-mysqlnd-ms extension from the Debian repository (I don't know about
Centos)?

Maybe it would be better if you just went step-by-step through how you
installed the extension.

It's really looking like you have a mismatch in compilations.  The PECL
extension indicates it should work with PHP 5.3.6-dev or better and PEAR
1.4.0 or better, so it should work with your PHP version.  But it also
hasn't been updated in over 1.5 years, so that may no longer be true.

P.S. Please don't top post.  Thanks.

-- 
==================
Remove the "x" from my email address
Jerry Stuckle
jstucklex@attglobal.net
==================

[toc] | [prev] | [next] | [standalone]


#16111

FromJames Wang <jwang25610@gmail.com>
Date2016-01-06 09:09 -0800
Message-ID<6a7d2ce9-c257-4ecd-88e7-3141e3eeaf87@googlegroups.com>
In reply to#16109
On Wednesday, 6 January 2016 14:44:49 UTC, Jerry Stuckle  wrote:
> On 1/6/2016 3:58 AM, James Wang wrote:
> > On Tuesday, 5 January 2016 19:05:17 UTC, Jerry Stuckle  wrote:
> >>
> >>
> >> Usually this indicates a mismatch between modules versions.  Are the PHP
> >> and MySQL libraries from your distribution, or did you get them
> >> somewhere else and/or compile them yourself?  If not from your
> >> distribution, then I definitely suspect a version mismatch.
> >>
> >> Just a side note: PHP 5.3.29 is pretty old and has been past end of life
> >> since August, 2014.
> >>
> > Both Centos and Debian Php and MySQL et al were installed by yum or
> > apt-get
> >
> > mysqlnd_ms were installed by pecl
> >
> 
> (Top posting fixed)
> 
> OK, did PHP work with MySQL before you installed the PECL extension?
> 
> Also, did you remove the php-mysql extension and install the
> php-mysqlnd-ms extension from the Debian repository (I don't know about
> Centos)?
> 
> Maybe it would be better if you just went step-by-step through how you
> installed the extension.
> 
> It's really looking like you have a mismatch in compilations.  The PECL
> extension indicates it should work with PHP 5.3.6-dev or better and PEAR
> 1.4.0 or better, so it should work with your PHP version.  But it also
> hasn't been updated in over 1.5 years, so that may no longer be true.
> 
> P.S. Please don't top post.  Thanks.
> 

My code worked before PECL and afterwards as well.

Will try remove php-mysql - do I have to change code afterwards please?

Thanks a lot and thanks to Aho as well

[toc] | [prev] | [next] | [standalone]


#16115

FromJerry Stuckle <jstucklex@attglobal.net>
Date2016-01-06 15:24 -0500
Message-ID<n6jsvv$ac1$1@jstuckle.eternal-september.org>
In reply to#16111
On 1/6/2016 12:09 PM, James Wang wrote:
> On Wednesday, 6 January 2016 14:44:49 UTC, Jerry Stuckle  wrote:
>> On 1/6/2016 3:58 AM, James Wang wrote:
>>> On Tuesday, 5 January 2016 19:05:17 UTC, Jerry Stuckle  wrote:
>>>>
>>>>
>>>> Usually this indicates a mismatch between modules versions.  Are the PHP
>>>> and MySQL libraries from your distribution, or did you get them
>>>> somewhere else and/or compile them yourself?  If not from your
>>>> distribution, then I definitely suspect a version mismatch.
>>>>
>>>> Just a side note: PHP 5.3.29 is pretty old and has been past end of life
>>>> since August, 2014.
>>>>
>>> Both Centos and Debian Php and MySQL et al were installed by yum or
>>> apt-get
>>>
>>> mysqlnd_ms were installed by pecl
>>>
>>
>> (Top posting fixed)
>>
>> OK, did PHP work with MySQL before you installed the PECL extension?
>>
>> Also, did you remove the php-mysql extension and install the
>> php-mysqlnd-ms extension from the Debian repository (I don't know about
>> Centos)?
>>
>> Maybe it would be better if you just went step-by-step through how you
>> installed the extension.
>>
>> It's really looking like you have a mismatch in compilations.  The PECL
>> extension indicates it should work with PHP 5.3.6-dev or better and PEAR
>> 1.4.0 or better, so it should work with your PHP version.  But it also
>> hasn't been updated in over 1.5 years, so that may no longer be true.
>>
>> P.S. Please don't top post.  Thanks.
>>
> 
> My code worked before PECL and afterwards as well.
> 
> Will try remove php-mysql - do I have to change code afterwards please?
> 
> Thanks a lot and thanks to Aho as well
> 

No, you shouldn't have to change any of your PHP code.  But if you have
both php-mysql and php-msqlnd-ms installed, you may be running into a
conflict.  I don't know, as I've never tried it.

And thanks for not top posting!

-- 
==================
Remove the "x" from my email address
Jerry Stuckle
jstucklex@attglobal.net
==================

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.php


csiph-web