php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #76121 PDO_INFORMIX make fails
Submitted: 2018-03-20 20:17 UTC Modified: 2021-06-08 15:26 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:0 of 1 (0.0%)
From: david_beach at mab dot uscourts dot gov Assigned:
Status: Open Package: PDO_INFORMIX (PECL)
PHP Version: 5.6.34 OS: Centos 6.9
Private report: No CVE-ID: None
 [2018-03-20 20:17 UTC] david_beach at mab dot uscourts dot gov
Description:
------------
Using Centos 6.9 CentOS-6.9-x86_64-minimal.ISO
Installed using yum: gcc php-devel libxml2-devel

PHP 5.6.34 installed from php-5.6.34.tar.gz

IBM Informix Client SDK 3.70.FC9 installed from CSDK_3.70.FC9_LIN-x86_64_Fixpack.tar.gz

PDO_INFORMIX processed using PDO_INFORMIX-1.3.3.tgz


Test script:
---------------
tar -xvzf PDO_INFORMIX-1.3.3.tgz
cd PDO_INFORMIX-1.3.3
phpize
./configure
make

Expected result:
----------------
Successful generation of pdo_informix.so extension.

Actual result:
--------------
make fails with these errors:

/usr/bin/ld: /opt/IBM/informix/lib/cli/libifcli.a(odconnct.o): relocation R_X86_64_32 against `.rodata.str4.4' can not be used when making a shared object; recompile with -fPIC
/opt/IBM/informix/lib/cli/libifcli.a: could not read symbols: Bad value

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2018-04-25 18:27 UTC] David_Beach at mab dot uscourts dot gov
Extracted from the Client SDK library libifcli.a, inspecting odconnct.o with this command returns nothing:

readelf --relocs odconnct.o | egrep '(GOT|PLT|JU?MP_SLOT)'

Since nothing was returned I think that suggests the object is not compiled with position independent code, just as the error message states.
 [2021-06-08 14:51 UTC] cmb@php.net
-Status: Open +Status: Feedback -Assigned To: +Assigned To: cmb
 [2021-06-08 14:51 UTC] cmb@php.net
Is this still an issue with latest PDO_INFORMIX (1.3.4)?
 [2021-06-08 15:12 UTC] david_beach at mab dot uscourts dot gov
-Status: Feedback +Status: Assigned
 [2021-06-08 15:12 UTC] david_beach at mab dot uscourts dot gov
Switching to Informix Client SDK 4.x allowed a successful PDO build. I have since moved on to major revision upgrades of Centos and PHP. I reported this problem three years ago. I have no interest in whether or not Informix Client SDK 3.x can be used to create a PDO. Never worked for me, ever.
 [2021-06-08 15:26 UTC] cmb@php.net
-Status: Assigned +Status: Open -Assigned To: cmb +Assigned To:
 [2021-06-08 15:26 UTC] cmb@php.net
Hmm, interestingly, the linked git repo of the source code[1] had
it's latest commit in 2014; however, the latest version of the
package is from 2021.  I'm not interested in working on such …

[1] <http://git.php.net/?p=pecl/database/pdo_informix.git>
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed Oct 09 19:01:26 2024 UTC