Bug #77676 [NEW]: Unable to run tests when building shared exension on AIX

From: Date: Thu, 28 Feb 2019 03:21:48 +0000
Subject: Bug #77676 [NEW]: Unable to run tests when building shared exension on AIX
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-219756@lists.php.net to get a copy of this message
From: kadler at us dot ibm dot com Operating system: AIX PHP version: 7.3.2 Package: *General Issues Bug Type: Bug Bug description:Unable to run tests when building shared exension on AIX Description: ------------ When building a PHP extension on AIX, I am unable to run tests. Here's the output I get (building ibm_db): -bash-4.4$ make test Build complete. Don't forget to run 'make test'. /bin/sh: line 12: .: /QOpenSys/home/kadler/ibm_db2_73/modules/ibm_db2.so: cannot execute binary file PHP Warning: PHP Startup: Unable to load dynamic library '' (tried: /QOpenSys/home/kadler/ibm_db2_73/modules/ (Invalid argument), /QOpenSys/home/kadler/ibm_db2_73/modules/.so (Could not load module /QOpenSys/home/kadler/ibm_db2_73/modules/.so. System error: No such file or directory)) in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library '' (tried: /QOpenSys/home/kadler/ibm_db2_73/modules/ (Invalid argument), /QOpenSys/home/kadler/ibm_db2_73/modules/.so (Could not load module /QOpenSys/home/kadler/ibm_db2_73/modules/.so. System error: No such file or directory)) in Unknown on line 0 ===================================================================== PHP : /QOpenSys/pkgs/bin/php Warning: PHP Startup: Unable to load dynamic library '' (tried: /QOpenSys/home/kadler/ibm_db2_73/modules/ (Invalid argument), /QOpenSys/home/kadler/ibm_db2_73/modules/.so (Could not load module /QOpenSys/home/kadler/ibm_db2_73/modules/.so. System error: No such file or directory)) in Unknown on line 0 PHP_SAPI : cli PHP_VERSION : 7.3.1 ZEND_VERSION: 3.3.1 PHP_OS : OS400 - OS400 wernstrom 2 7 0010000ACBAA INI actual : /QOpenSys/home/kadler/ibm_db2_73/tmp-php.ini More .INIs : --------------------------------------------------------------------- This is due to how the Makefile is generated on AIX. The code to load the test extensions reads in the dlname from the libtool.la file: PHP_TEST_SHARED_EXTENSIONS = ` \ if test "x$(PHP_MODULES)" != "x"; then \ for i in $(PHP_MODULES)""; do \ . $$i; $(top_srcdir)/build/shtool echo -n -- " -d extension=$$dlname"; \ done; \ fi; \ if test "x$(PHP_ZEND_EX)" != "x"; then \ for i in $(PHP_ZEND_EX)""; do \ . $$i; $(top_srcdir)/build/shtool echo -n -- " -d $(ZEND_EXT_TYPE)=$(top_builddir)/modules/$$dlname"; \ done; \ fi` However, on AIX PHP_MODULES is set to a bare .so: PHP_MODULES = $(phplibdir)/ibm_db2.so Above output shows results for 7.3, but the problem goes back to PHP 5.6 (at least). -- Edit bug report at https://bugs.php.net/bug.php?id=77676&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=77676&r=trysnapshot54 Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=77676&r=trysnapshot55 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=77676&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=77676&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=77676&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=77676&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=77676&r=needscript Try newer version: https://bugs.php.net/fix.php?id=77676&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=77676&r=support Expected behavior: https://bugs.php.net/fix.php?id=77676&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=77676&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=77676&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=77676&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=77676&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=77676&r=dst IIS Stability: https://bugs.php.net/fix.php?id=77676&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=77676&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=77676&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=77676&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=77676&r=mysqlcfg

« previous php.bugs (#219756) next »