php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #78049 pdo_informix configure does not pass INFORMIXDIR env var
Submitted: 2019-05-22 13:21 UTC Modified: 2019-05-22 14:52 UTC
From: peter dot siklosi at saint-gobain dot com Assigned:
Status: Open Package: PDO_INFORMIX (PECL)
PHP Version: 7.2.18 OS: CentOS 7.6.1810
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: peter dot siklosi at saint-gobain dot com
New email:
PHP Version: OS:

 

 [2019-05-22 13:21 UTC] peter dot siklosi at saint-gobain dot com
Description:
------------
During the compilation of the pdo_informix module (1.3.3), the configure script sets the INFORMIXDIR variable based on the --with-pdo-informix parameter's value, but does not exports it. When the esql command is executed (line 4156) it does not find the informixdir and falls back to the default: /usr/informix and will fail


Test script:
---------------
[root@ad1svlx10 PDO_INFORMIX-1.3.3]# ./configure --with-php-config=/opt/rh/rh-php72/root/usr/bin/php-config --with-pdo-informix=/opt/IBM/Informix_Client-SDK
[...]
checking for gawk... gawk
checking for Informix driver for PDO... yes, shared
checking for PDO includes... /opt/rh/rh-php72/root/usr/include/php/ext
checking for includes and libraries... /opt/IBM/Informix_Client-SDK
checking Informix version... /opt/IBM/Informix_Client-SDK/bin/esql: line 516: /usr/informix/lib/esql/esqlc: No such file or directory

./configure: line 4156: test: -ge: unary operator expected
checking how to print strings... printf
[...]
configure: creating ./config.status
config.status: creating config.h
config.status: executing libtool commands
[root@ad1svlx10 ~]# egrep 'INFDIR' /opt/IBM/Informix_Client-SDK/bin/esql | head -1
INFDIR=${INFORMIXDIR=/usr/informix}
[root@ad1svlx10 ~]#


Expected result:
----------------
I do not provide a patch, as my make-fu is not good enough.

Actual result:
--------------
I expect the autodetection/parameter passing to work as expected.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2019-05-22 13:27 UTC] peter dot siklosi at saint-gobain dot com
#Forgot to add extra info:

uname -a
#Linux ad1svlx10 3.10.0-957.12.1.el7.x86_64 #1 SMP Mon Apr 29 14:59:59 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
cat /etc/system-release
#CentOS Linux release 7.6.1810 (Core)
rpm -qa rh-php72\*
#rh-php72-runtime-1-2.el7.x86_64
#rh-php72-php-pdo-7.2.10-3.el7.x86_64
#rh-php72-php-pear-1.10.5-1.el7.noarch
#rh-php72-php-snmp-7.2.10-3.el7.x86_64
#rh-php72-php-ldap-7.2.10-3.el7.x86_64
#rh-php72-php-zip-7.2.10-3.el7.x86_64
#rh-php72-php-common-7.2.10-3.el7.x86_64
#rh-php72-php-cli-7.2.10-3.el7.x86_64
#rh-php72-php-process-7.2.10-3.el7.x86_64
#rh-php72-1-2.el7.x86_64
#rh-php72-php-odbc-7.2.10-3.el7.x86_64
#rh-php72-php-gd-7.2.10-3.el7.x86_64
#rh-php72-php-mbstring-7.2.10-3.el7.x86_64
#rh-php72-php-fpm-7.2.10-3.el7.x86_64
#rh-php72-php-devel-7.2.10-3.el7.x86_64
#rh-php72-php-json-7.2.10-3.el7.x86_64
#rh-php72-php-xml-7.2.10-3.el7.x86_64
#rh-php72-php-mysqlnd-7.2.10-3.el7.x86_64
#rh-php72-php-intl-7.2.10-3.el7.x86_64



# Executed commands: 
TMPDIR=/tmp/pdo_informix-install
mkdir $TMPDIR
cd $TMPDIR


mkdir informix_csdk
wget -O informix_csdk/ibm.csdk.4.50.FC1.LNX.tar 'https://iwm.dhe.ibm.com/sdfdl/2v2/regs2/mstadm/informix/..../ibm.csdk.4.50.FC1.LNX.tar'
cd informix_csdk
tar xfv ibm.csdk.4.50.FC1.LNX.tar
./installclientsdk
cd ..
# rm -rf informix_csdk

yum install rh-php72-php-devel
yum group install "Development Tools"
mkdir -p /opt/informix/etc
cat <<EOF >/opt/informix/etc/sqlhosts
ifx_tcp      onsoctcp        ifxhost          sqlexec
ifx_shm      onipcshm        ifxhost          sqlexec
EOF

wget -O $TMPDIR/PDO_INFORMIX-1.3.3.tgz https://pecl.php.net/get/PDO_INFORMIX-1.3.3.tgz
tar xfz PDO_INFORMIX-1.3.3.tgz
cd PDO_INFORMIX-1.3.3/
/opt/rh/rh-php72/root/usr/bin/phpize
export INFORMIXDIR=/opt/IBM/Informix_Client-SDK
./configure --with-php-config=/opt/rh/rh-php72/root/usr/bin/php-config --with-pdo-informix=$INFORMIXDIR
make
#make test
#make install
#cp /etc/opt/rh/rh-php72/php.d/30-pdo_mysql.ini /etc/opt/rh/rh-php72/php.d/30-pdo_informix.ini
#sed 's/mysql/informix/g' /etc/opt/rh/rh-php72/php.d/30-pdo_mysql.ini >/etc/opt/rh/rh-php72/php.d/30-pdo_informix.ini
#yum group remove "Development Tools"
#yum remove rh-php72-php-devel
#systemctl restart rh-php72-php-fpm
 [2019-05-22 14:52 UTC] cmb@php.net
-Package: PDO related +Package: PDO_INFORMIX
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Nov 21 17:01:32 2024 UTC