Bug #53617 [Fbk->Asn]: Unable to run "make test" after building
| From: | cvickery at gmail dot com | Date: | Wed, 12 Jan 2011 01:09:06 +0000 |
| Subject: | Bug #53617 [Fbk->Asn]: Unable to run "make test" after building | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-157828@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: Feedback
+Status: Assigned
Type: Bug
Package: OCI8 related
Operating System: os x 10.5.8
PHP Version: 5.3.4
Assigned To: sixd
Block user comment: N
Private report: N
New Comment:
That was it!
Also, I was wondering why the make test worked on my deployment system,
and see
that variables_order did include 'E' on that one.
Thanks!
Previous Comments:
------------------------------------------------------------------------
[2011-01-11 20:06:59] sixd@php.net
I've seen a similar thing with PHP's run-tests.php on some Linux
shells.
The best solution there is to make sure php.ini's variables_order has
"E", for example "EGPCS". See step 2 on p246 of the Underground PHP &
Oracle Manual.
Let us know if this is also a viable workaround.
------------------------------------------------------------------------
[2010-12-28 04:36:22] cvickery at gmail dot com
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.
------------------------------------------------------------------------
[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