Greetings -
We are attempting to create a new PHP RPM that installs PHP compiled with the Teradata ODBC driver version 16.
The RPM is created without issue, however when attempting to install it, we receive the following errors:
--> Finished Dependency Resolution Error: Package: php56-5.6.30-7.el6.x86_64 (opsbi-test) Requires: libodbcinst.so()(64bit) Error: Package: php56-5.6.30-7.el6.x86_64 (opsbi-test) Requires: libodbc.so()(64bit) Error: Package: php56-5.6.30-7.el6.x86_64 (opsbi-test) Requires: libodbc.so(VERS_3.52)(64bit) You could try using --skip-broken to work around the problem You could try running: rpm -Va --nofiles --nodigest
When creating the RPM, here's our configure line for PHP:
export EXTENSION_DIR=%{_libdir}/php/20100525 export CPPFLAGS="-I/opt/teradata/client/16.00/include/" export ODBC_HOME=/opt/teradata/client/16.00/odbc_64/ export ODBCINI="/opt/teradata/client/ODBC_64/odbc.ini" export ODBCINST="/opt/teradata/client/ODBC_64/odbcinst.ini" export CUSTOM_ODBC_LIBS="-L/opt/teradata/client/16.00/lib64/ -lodbc -lodbcinst" export LD_LIBRARY_PATH=/opt/teradata/client/16.00/odbc_64/lib:$LD_LIBRARY_PATH export LD_LIBRARY_PATH_64=/opt/teradata/client/16.00/odbc_64/lib:$LD_LIBRARY_PATH_64 export LDFLAGS="-L$ODBC_HOME/lib" sh ./configure \ --enable-shared \ --program-prefix= \ --prefix=/usr \ --with-libdir=lib64 \ --with-config-file-path=%{_sysconfdir} \ --with-config-file-scan-dir=/etc/php.d \ --with-pic \ --disable-rpath \ --with-bz2 \ --with-freetype-dir=/usr/lib64 \ --with-png-dir=/usr \ --with-xpm-dir=/usr \ --enable-gd-native-ttf \ --with-gdbm \ --with-gettext \ --with-gmp \ --with-iconv \ --with-jpeg-dir=/usr \ --with-openssl \ --with-pcre-regex=/usr \ --with-zlib \ --with-openssl-dir=/usr \ --with-zlib-dir=/usr \ --with-layout=GNU \ --enable-exif \ --enable-ftp \ --enable-sockets \ --with-kerberos \ --enable-shmop \ --enable-calendar \ --with-libxml-dir=/usr \ --enable-xml \ --with-mhash \ --with-apxs2=/usr/bin/apxs \ --libdir=/usr/lib64/php \ --disable-ipv6 \ --enable-bcmath \ --with-curl \ --enable-dba=shared \ --with-db4 \ --with-ldap \ --with-ldap-sasl \ --enable-mbstring \ --enable-pdo \ --with-mysql=mysqlnd \ --with-mysqli=mysqlnd \ --with-pdo-mysql=mysqlnd \ --with-pdo-sqlite=shared,/usr \ --with-custom-odbc=$ODBC_HOME \ --with-pdo-odbc=generic,$ODBC_HOME,odbc \ --with-readline \ --with-pspell \ --with-snmp \ --with-xsl \ --with-gd \ --with-sqlite3 \ --with-mcrypt=/usr \ --with-imap \ --with-imap-ssl \ --enable-soap \ --enable-wddx \ --with-libexpat-dir=/usr \ --enable-zip \ --with-pear \ --enable-fpm \ --with-fpm-user=apache \ --with-fpm-group=apache \ --enable-maintainer-zts \ --with-pgsql \ --with-pdo-pgsql
This configure line works well with the TD 14.1 drivers, but seems to yield the same missing dependency errors for TD drivers >= 15.
Confirmed that the TD 16 RPMs installed without issue. (tdodbc, tdicu, and TeraGSS).
Any help would be appreciated. Not realy sure what to look for next. We've tried various iterations of changing the compile flags, but have been unsuccessful thusfar.