Uploaded image for project: 'CUBRID APIs'
  1. CUBRID APIs
  2. APIS-560

Cannot load PHP API 9.1.0.0003 in CentOS 5.6: undefined symbol: pthread_create in Unknown on line 0

    Details

    • Type: Bug
    • Status: Reopened
    • Priority: Blocker
    • Resolution: Unresolved
    • Affects Version/s: PHP 9.1.0.0003
    • Fix Version/s: PHP 9.1.0 0004
    • Component/s: PHP Driver
    • Labels:
      None
    • Environment:

      CentOS 5.6 x64
      PHP API 9.1.0.0003
      PHP 5.3.3

      Description

      I've tried to install and use the latest PHP API 9.1.0.0003 on CentOS 5.6 x64 with PHP 5.3.3.

      The installation is successful however, PHP can't load the extension. It displays the following error message:

      {code}
      $ php cubrid_php.php
      PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/cubrid.so' - /usr/lib64/php/modules/cubrid.so: undefined symbol: pthread_create in Unknown on line 0
      PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/cubrid.so' - /usr/lib64/php/modules/cubrid.so: undefined symbol: pthread_create in Unknown on line 0
      PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/pdo_cubrid.so' - /usr/lib64/php/modules/pdo_cubrid.so: cannot open shared object file: No such file or directory in Unknown on line 0
      PHP Fatal error: Call to undefined function cubrid_version() in /home/vagrant/cubrid_php.php on line 2{code}

      I suppose this is related to CCI library linking. Please check and fix it.

        Activity

        Hide
        cn15163 杨伟为[Astro] added a comment -

        Fixed. Now the cci library's source code is included instead of the prebuild lib, so this issue won't happen again.

        Show
        cn15163 杨伟为[Astro] added a comment - Fixed. Now the cci library's source code is included instead of the prebuild lib, so this issue won't happen again.
        Hide
        ryin005 Ray Yin added a comment -

        Test OS: Linux 64 (CentOS release 5.6 (Final))
        PHP: 5.3.25
        Cubrid-PHP: 9.1.0.0004 (2013-07-08)

        Test Result: Pass

        The issue could be closed

        Show
        ryin005 Ray Yin added a comment - Test OS: Linux 64 (CentOS release 5.6 (Final)) PHP: 5.3.25 Cubrid-PHP: 9.1.0.0004 (2013-07-08) Test Result: Pass The issue could be closed
        Hide
        kadishmal Esen Sagynov added a comment - - edited

        I've just tested the new PHP API 9.1.0.0004 and having the same problem again. This issue is not resolved.

        • CentOS 5.6 x64 minimal
        • driver is installed via "sudo pecl install cubrid" which installs the latest version.

        Then run "php -i" and the error will be displayed.

        Maybe the CentOS 5.6 you're using is different from mine. I use the bare minimal installation. Maybe it doesn't have some pthread related libraries. Please investigate and let me know.

        If you want to try yourself on my VM, please download it from http://ftp.cubrid.org/CUBRID_VMImages/Vagrant/vagrant-virtualbox-centos-5.6-x64-minimal.box (240MB). This is a Vagrant box for Virtualbox. You need to have Vagrant (http://vagrantup.com) installed to import this VM to Virtualbox. Please try it.

        Just for your reference, I'm using CUBRID Chef cookbook and Test Kitchen to test CUBRID and other drivers, even SHARD and HA on multiple VMs automatically. This is how I found this bug again.

        Show
        kadishmal Esen Sagynov added a comment - - edited I've just tested the new PHP API 9.1.0.0004 and having the same problem again. This issue is not resolved. CentOS 5.6 x64 minimal driver is installed via "sudo pecl install cubrid" which installs the latest version. Then run "php -i" and the error will be displayed. Maybe the CentOS 5.6 you're using is different from mine. I use the bare minimal installation. Maybe it doesn't have some pthread related libraries. Please investigate and let me know. If you want to try yourself on my VM, please download it from http://ftp.cubrid.org/CUBRID_VMImages/Vagrant/vagrant-virtualbox-centos-5.6-x64-minimal.box (240MB). This is a Vagrant box for Virtualbox. You need to have Vagrant ( http://vagrantup.com ) installed to import this VM to Virtualbox. Please try it. Just for your reference, I'm using CUBRID Chef cookbook and Test Kitchen to test CUBRID and other drivers, even SHARD and HA on multiple VMs automatically. This is how I found this bug again.

          People

          • Assignee:
            cn15163 杨伟为[Astro]
            Reporter:
            kadishmal Esen Sagynov
            CC (Referrer):
            Ray Yin
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated: