Bug #53617 [Opn]: Unable to run "make test" after building
| From: | cvickery at gmail dot com | Date: | Tue, 28 Dec 2010 03:36:23 +0000 |
| Subject: | Bug #53617 [Opn]: Unable to run "make test" after building | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-157348@lists.php.net to get a copy of this message | ||
Edit report at http://bugs.php.net/bug.php?id=53617&edit=1
ID: 53617
User updated by: cvickery at gmail dot com
Reported by: cvickery at gmail dot com
Summary: Unable to run "make test" after building
Status: Open
Type: Bug
Package: OCI8 related
Operating System: os x 10.5.8
PHP Version: 5.3.4
Block user comment: N
Private report: N
New Comment:
In a parenthetical note, I mentioned that DYLD_LIBRARY_PATH has to be
set for
apache to launch successfully. But I failed to mention that, of course,
it must
also be set when launching the cli.
Previous Comments:
------------------------------------------------------------------------
[2010-12-28 04:27:18] cvickery at gmail dot com
Description:
------------
After running configure with '--with-
oci8=instantclient,/opt/oracle/app/oracle/lib' PHP builds, installs, and
runs
successfully (using both apache 2.2.14 and the cli). However, attempting
to run
"make test" in the build directory results in every test failing.
tests/run-
tests/test001.out, for example, contains:
dyld: Library not loaded: /b/227/rdbms/lib/libclntsh.dylib.10.1
Referenced from: /Users/vickery/Downloads/php-5.3.4/sapi/cli/php
Reason: image not found
But libclntsh.dylib.10.1 is actually located in
/opt/oracle/app/oracle/lib
(When starting apache, the DYLD_LIBRARY_PATH environment variable must
be set to
/opt/oracle/app/oracle/lib.)
But having DYLD_LIBRARY_PATH properly set when running "make test" does
not
solve the problem; the tests seem to be run in a separate environment
not
inherited from the command line (?)
Test script:
---------------
This is a build bug, so there is no test script available.
Workaround:
If I add the following statement to run-tests.php at line 1690, the
problem goes away:
$env['DYLD_LIBRARY_PATH'] = '/opt/oracle/app/oracle/lib';
Of course, this is not a real fix; it just demonstrates the need for
build-test.php to add the value of DYLD_LIBRARY_PATH to the $env
variable being passed to system_with_timeout(). On OS X. When
configuring with oci8=instantclient,[path]
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/bug.php?id=53617&edit=1