Bug #78049 [Com]: pdo_informix configure does not pass INFORMIXDIR env var

From: Date: Wed, 22 May 2019 13:27:22 +0000
Subject: Bug #78049 [Com]: pdo_informix configure does not pass INFORMIXDIR env var
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-220943@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=78049&edit=1 ID: 78049 Comment by: peter dot siklosi at saint-gobain dot com Reported by: peter dot siklosi at saint-gobain dot com Summary: pdo_informix configure does not pass INFORMIXDIR env var Status: Open Type: Bug Package: PDO related Operating System: CentOS 7.6.1810 PHP Version: 7.2.18 Block user comment: N Private report: N New Comment: #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 Previous Comments: ------------------------------------------------------------------------ [2019-05-22 13:21:41] 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. ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=78049&edit=1

« previous php.bugs (#220943) next »