[php-maint] Bug#668048: Bug#668048: pdo_mysql.so: undefined symbol: php_pdo_register_driver

Ondřej Surý ondrej at sury.org
Mon Apr 9 08:32:04 UTC 2012


Alf,

thanks for testing. Let me know. We do all strange things to the
configuration files and there could be an error in invocation order of
dpkg-maintscript-helper mv_conffile and ucf ultimately leading to an
empty conffile.

BTW could you please use 'Reply All', so your responses go to Debian
BTS as well? This would help other maintainers to know what's going
on.

Thanks,
Ondrej

On Mon, Apr 9, 2012 at 00:43, agaida at siduction.org <agaida at siduction.org> wrote:
> The chance is there. But i will try the process on a clean installation.
> Maybe this can help. Today it was only my private server under the desk. The
> little machine is only for testing purposes. And i might say -  great work.
>
> Thanks Alf
>
> Am 09.04.2012 00:32, schrieb Ondřej Surý:
>
>> Is there a chance that the file was empty before the upgrade?
>>
>> I just cannot think of other reason, why it should end this way.
>>
>> I'll keep the bug open and maxbe we got more bugreports from other people
>> to nail it down.
>>
>> Thanks for helping to triage the bug.
>>
>> Ondřej Surý
>>
>> On 8. 4. 2012, at 21:24, "agaida at siduction.org"<agaida at siduction.org>
>>  wrote:
>>
>>> The reinstall leave the file empty. My solution for now was
>>>
>>> cp /usr/share/php5/common/pdo.ini /etc/php5/mods-available/pdo.ini
>>>
>>> After that, the reinstall went smooth and the errors are gone. I dont
>>> remember a ucf error in upgrade, but some hassle with the dpkg-scripts.
>>> Unfortunally i didnt make a hardcopy.
>>>
>>> Am 08.04.2012 20:12, schrieb Ondřej Surý:
>>>>
>>>> It should not be empty. Could you try reinstalling php5-common
>>>> (apt-get --reinstall install php5-common) and report back?
>>>>
>>>> There should be a ucf trigger to install a new config file in
>>>> /etc/php5/mods-available/pdo.ini. Do you remember if the installation
>>>> script have asked you about it?
>>>>
>>>> O.
>>>>
>>>> On Sun, Apr 8, 2012 at 19:12, agaida at siduction.org<agaida at siduction.org>
>>>>   wrote:
>>>>>
>>>>> Its empty.
>>>>>
>>>>> Am 08.04.2012 19:10, schrieb Ondřej Surý:
>>>>>
>>>>>> Everything seems to be correct, what are the contents of
>>>>>> /etc/php5/mods-available/pdo.ini ?
>>>>>>
>>>>>> O.
>>>>>>
>>>>>> On Sun, Apr 8, 2012 at 18:42,
>>>>>> agaida at siduction.org<agaida at siduction.org>
>>>>>>  wrote:
>>>>>>>
>>>>>>> Hi Ondřej,
>>>>>>>
>>>>>>> # LANG=C ls -l /etc/php5/cli
>>>>>>> total 64
>>>>>>> lrwxrwxrwx 1 root root     9 Apr  6 15:48 conf.d ->     ../conf.d
>>>>>>> -rw-r--r-- 1 root root 65472 Apr  8 18:08 php.ini
>>>>>>>
>>>>>>> # LANG=C ls -l /etc/php5/cli/conf.d/
>>>>>>> total 8
>>>>>>> lrwxrwxrwx 1 root root  25 Apr  8 13:31 10-pdo.ini ->
>>>>>>> ../mods-available/pdo.ini
>>>>>>> lrwxrwxrwx 1 root root  26 Apr  8 13:39 20-curl.ini ->
>>>>>>> ../mods-available/curl.ini
>>>>>>> lrwxrwxrwx 1 root root  24 Apr  8 13:40 20-gd.ini ->
>>>>>>> ../mods-available/gd.ini
>>>>>>> lrwxrwxrwx 1 root root  26 Apr  8 13:37 20-intl.ini ->
>>>>>>> ../mods-available/intl.ini
>>>>>>> lrwxrwxrwx 1 root root  28 Apr  8 14:06 20-mcrypt.ini ->
>>>>>>> ../mods-available/mcrypt.ini
>>>>>>> lrwxrwxrwx 1 root root  27 Apr  8 15:19 20-mysql.ini ->
>>>>>>> ../mods-available/mysql.ini
>>>>>>> lrwxrwxrwx 1 root root  28 Apr  8 15:19 20-mysqli.ini ->
>>>>>>> ../mods-available/mysqli.ini
>>>>>>> lrwxrwxrwx 1 root root  31 Apr  8 15:19 20-pdo_mysql.ini ->
>>>>>>> ../mods-available/pdo_mysql.ini
>>>>>>> -rw-r--r-- 1 root root  56 Mar 14  2010 adodb.ini
>>>>>>> -rw-r--r-- 1 root root 161 Mar  4 17:23 apc.ini
>>>>>>>
>>>>>>>
>>>>>>> Am 08.04.2012 18:31, schrieb Ondřej Surý:
>>>>>>>
>>>>>>>> Hi Alf,
>>>>>>>>
>>>>>>>> could you please send the listing of /etc/php5/cli and
>>>>>>>> /etc/php5/cli/conf.d:
>>>>>>>>
>>>>>>>> root at howl:/# ls -l /etc/php5/cli/
>>>>>>>> total 64
>>>>>>>> lrwxrwxrwx 1 root root     9 Mar 21 20:58 conf.d ->       ../conf.d
>>>>>>>> -rw-r--r-- 1 root root 65432 Apr  6 13:47 php.ini
>>>>>>>> root at howl:/# ls -l /etc/php5/conf.d
>>>>>>>> total 0
>>>>>>>> lrwxrwxrwx 1 root root 25 Apr  8 16:25 10-pdo.ini ->
>>>>>>>>  ../mods-available/pdo.ini
>>>>>>>> lrwxrwxrwx 1 root root 27 Apr  8 16:31 20-mysql.ini ->
>>>>>>>> ../mods-available/mysql.ini
>>>>>>>> lrwxrwxrwx 1 root root 28 Apr  8 16:31 20-mysqli.ini ->
>>>>>>>> ../mods-available/mysqli.ini
>>>>>>>> lrwxrwxrwx 1 root root 31 Apr  8 16:31 20-pdo_mysql.ini ->
>>>>>>>> ../mods-available/pdo_mysql.ini
>>>>>>>>
>>>>>>>> It should looks like this...
>>>>>>>>
>>>>>>>> O.
>>>>>>>>
>>>>>>>> On Sun, Apr 8, 2012 at 17:01, Alf Gaida<agaida at siduction.org>
>>>>>>>> wrote:
>>>>>>>>>
>>>>>>>>> Package: php5-mysql
>>>>>>>>> Version: 5.4.1~rc1-1
>>>>>>>>> Severity: normal
>>>>>>>>>
>>>>>>>>> Dear Maintainer,
>>>>>>>>>
>>>>>>>>> i'm running a cron-job every 5 min:
>>>>>>>>> /usr/bin/php5 -q ../scripts/froxlor_master_cronjob.php
>>>>>>>>>
>>>>>>>>> Result:
>>>>>>>>> PHP Warning:  PHP Startup: Unable to load dynamic library
>>>>>>>>> '/usr/lib/php5/20100525/pdo_mysql.so' -
>>>>>>>>> /usr/lib/php5/20100525/pdo_mysql.so:
>>>>>>>>> undefined symbol: php_pdo_register_driver in Unknown on line 0
>>>>>>>>>
>>>>>>>>> ldd /usr/lib/php5/20100525/pdo_mysql.so
>>>>>>>>>        linux-vdso.so.1 =>         (0x00007fff0edff000)
>>>>>>>>>        libmysqlclient_r.so.16 =>
>>>>>>>>> /usr/lib/libmysqlclient_r.so.16
>>>>>>>>> (0x00007fbc320f4000)
>>>>>>>>>        libc.so.6 =>       /lib/x86_64-linux-gnu/libc.so.6
>>>>>>>>> (0x00007fbc31d6d000)
>>>>>>>>>        libpthread.so.0 =>
>>>>>>>>> /lib/x86_64-linux-gnu/libpthread.so.0
>>>>>>>>> (0x00007fbc31b50000)
>>>>>>>>>        librt.so.1 =>       /lib/x86_64-linux-gnu/librt.so.1
>>>>>>>>> (0x00007fbc31948000)
>>>>>>>>>        libcrypt.so.1 =>       /lib/x86_64-linux-gnu/libcrypt.so.1
>>>>>>>>> (0x00007fbc31711000)
>>>>>>>>>        libnsl.so.1 =>       /lib/x86_64-linux-gnu/libnsl.so.1
>>>>>>>>> (0x00007fbc314f8000)
>>>>>>>>>        libm.so.6 =>       /lib/x86_64-linux-gnu/libm.so.6
>>>>>>>>> (0x00007fbc31276000)
>>>>>>>>>        libz.so.1 =>       /usr/lib/x86_64-linux-gnu/libz.so.1
>>>>>>>>> (0x00007fbc31060000)
>>>>>>>>>        /lib64/ld-linux-x86-64.so.2 (0x00007fbc32735000)
>>>>>>>>>
>>>>>>>>> it seems to be, that the script work correct, but the message is
>>>>>>>>> really
>>>>>>>>> annoing.
>>>>>>>>> I think i just disable the cron job and make it manual, when i need
>>>>>>>>> the
>>>>>>>>> script.
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> -- System Information:
>>>>>>>>> Debian Release: wheezy/sid
>>>>>>>>>  APT prefers unstable
>>>>>>>>>  APT policy: (500, 'unstable'), (500, 'stable'), (1,
>>>>>>>>> 'experimental')
>>>>>>>>> Architecture: amd64 (x86_64)
>>>>>>>>>
>>>>>>>>> Kernel: Linux 3.3-1.towo.2-siduction-amd64 (SMP w/4 CPU cores;
>>>>>>>>> PREEMPT)
>>>>>>>>> Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
>>>>>>>>> Shell: /bin/sh linked to /bin/dash
>>>>>>>>>
>>>>>>>>> Versions of packages php5-mysql depends on:
>>>>>>>>> pn  dpkg                                   1.16.2
>>>>>>>>> pn  libapache2-mod-php5 [phpapi-20100525]  5.4.1~rc1-1
>>>>>>>>> pn  libc6                                  2.13-27
>>>>>>>>> pn  libmysqlclient16<none>
>>>>>>>>> pn  php5-cgi [phpapi-20100525]             5.4.1~rc1-1
>>>>>>>>> pn  php5-cli [phpapi-20100525]             5.4.1~rc1-1
>>>>>>>>> pn  php5-common<none>
>>>>>>>>> pn  ucf<none>
>>>>>>>>>
>>>>>>>>> php5-mysql recommends no packages.
>>>>>>>>>
>>>>>>>>> php5-mysql suggests no packages.
>>>>>>>>>
>>>>>>>>> -- no debconf information
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> _______________________________________________
>>>>>>>>> pkg-php-maint mailing list
>>>>>>>>> pkg-php-maint at lists.alioth.debian.org
>>>>>>>>>
>>>>>>>>> http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-php-maint
>>>>>>>>
>>>>>>>>
>>>>
>



-- 
Ondřej Surý <ondrej at sury.org>





More information about the pkg-php-maint mailing list