Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Bricolage: users

PHP::Interpreter Installation Difficulties

 

 

Bricolage users RSS feed   Index | Next | Previous | View Threaded


waldo at vqronline

Oct 29, 2008, 11:32 AM

Post #1 of 9 (6277 views)
Permalink
PHP::Interpreter Installation Difficulties

Folks,

The PHP::Interpreter installation process is deeply bad. It's a hurdle
that I'm running out of ideas of how to get over (or around), and I'm
hoping that somebody here can help me deal with it.

The badness of PHP::Interpreter's installation has been well-
documented on PerlMonks <http://www.perlmonks.org/?node_id=685156>,
and PerlMonks contributor "Andreas" has made a valiant attempt to
improve Makefile.PL, but unfortunately it doesn't work any better for
me (though it does return more useful status and error messages). The
provided Makefile.PL makes a series of terrible assumptions about the
location of PHP's assets on the server, which Andreas' changes appear
to compensate for.

Anyhow, everything starts to go south when creating the makefile, with
this line:

Note (probably harmless): No library found for -lphp5

Maybe it is harmless, but I suspect not. Then make test goes terribly
badly, with all five tests failed. (I am not a Perl guy. These errors
don't mean much to me.) When it gets to "deep recursion on anonymous
subroutine" I quit the process, because otherwise the processor usage
spirals out of control. No particular error message stands out for me;
I've simply included the transcript of perl Makefile.PL and make test
below.

Can anybody advise as to how to proceed?

Best,
Waldo

---
Virginia Quarterly Review
One West Range, Box 400223
University of Virginia
Charlottesville, VA 22904-4223



# perl Makefile.PL
using php version 5.1.6
using prefix /usr
using includes -I/usr/include -I/usr/include/php -I/usr/include/php/
main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/
php/ext
using lddlflags -shared -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -
fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -
mtune=generic -L/usr/kerberos/lib64 -L/usr/lib -L/usr/lib
using libs -L/usr/lib -lphp5
Checking header files...
using incdir '/usr/include'
using incdir '/usr/include/php'
using incdir '/usr/include/php/main'
using incdir '/usr/include/php/TSRM'
using incdir '/usr/include/php/Zend'
using incdir '/usr/include/php/ext'
Found /usr/include/php/Zend/zend_compile.h
Found /usr/include/php/Zend/zend_ini.h
Found /usr/include/php/Zend/zend.h
Found /usr/include/php/Zend/zend_API.h
Found /usr/include/php/main/php_main.h
Found /usr/include/php/main/php_config.h
Found /usr/include/php/main/SAPI.h
Found /usr/include/php/main/php_ini.h
Found /usr/include/php/main/php.h
Found /usr/include/php/TSRM/TSRM.h
Note (probably harmless): No library found for -lphp5
Writing Makefile for PHP::Interpreter

# make test
gcc -c -I/usr/include -I/usr/include/php -I/usr/include/php/main -I/
usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -g
-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-
protector --param=ssp-buffer-size=4 -m64 -mtune=generic -DVERSION=
\"1.0.1\" -DXS_VERSION=\"1.0.1\" -fPIC "-I/usr/lib64/perl5/5.8.8/
x86_64-linux-thread-multi/CORE" PHP.c
In file included from phpinterp.h:10,
from PHP.xs:13:
/usr/include/php/main/php_config.h:2250:1: warning: "_GNU_SOURCE"
redefined
In file included from /usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi/
CORE/perl.h:37,
from PHP.xs:3:
/usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi/CORE/config.h:1794:1:
warning: this is the location of the previous definition
In file included from /usr/include/php/main/php.h:35,
from phpinterp.h:11,
from PHP.xs:13:
/usr/include/php/Zend/zend.h:34:1: warning: "END_EXTERN_C" redefined
In file included from PHP.xs:3:
/usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi/CORE/perl.h:242:1:
warning: this is the location of the previous definition
PHP.xs: In function ‘zval_is_assoc’:
PHP.xs:49: warning: dereferencing type-punned pointer will break
strict-aliasing rules
PHP.xs: In function ‘SvZval’:
PHP.xs:146: warning: unused variable ‘i’
PHP.xs: In function ‘newSVzval’:
PHP.xs:234: warning: dereferencing type-punned pointer will break
strict-aliasing rules
PHP.xs:247: warning: format ‘%d’ expects type ‘int’, but argument 4
has type ‘ulong’
PHP.xs: In function ‘my_autoglobal_merge’:
PHP.xs:368: warning: dereferencing type-punned pointer will break
strict-aliasing rules
PHP.xs:372: warning: dereferencing type-punned pointer will break
strict-aliasing rules
PHP.xs:373: warning: dereferencing type-punned pointer will break
strict-aliasing rules
PHP.xs: At top level:
PHP.xs:396: warning: return type defaults to ‘int’
PHP.xs: In function ‘XS_PHP__Interpreter_new’:
PHP.xs:507: warning: implicit declaration of function
‘php_register_variable_ex’
PHP.xs: In function ‘XS_PHP__Interpreter_DESTROY’:
PHP.xs:640: warning: implicit declaration of function
‘sandwich_per_interp_shutdown’
PHP.xs: In function ‘XS_PHP__Interpreter__Class_STORE’:
PHP.xs:763: warning: unused variable ‘retval’
PHP.xs: In function ‘XS_PHP__Interpreter__Class_FIRSTKEY’:
PHP.xs:787: warning: unused variable ‘buf’
PHP.xs: In function ‘XS_PHP__Interpreter__Class_NEXTKEY’:
PHP.xs:821: warning: unused variable ‘buf’
PHP.c:1080: warning: unused variable ‘lastkey’
PHP.xs: In function ‘XS_PHP__Interpreter__Class_EXISTS’:
PHP.xs:861: warning: passing argument 3 of ‘Perl_sv_2pv_flags’ from
incompatible pointer type
PHP.xs: In function ‘XS_PHP__Interpreter__Class_DELETE’:
PHP.xs:887: warning: passing argument 3 of ‘Perl_sv_2pv_flags’ from
incompatible pointer type
PHP.xs: In function ‘XS_PHP__Interpreter__Class__AUTOLOAD’:
PHP.xs:915: warning: unused variable ‘calling_obj’
PHP.xs:1052: warning: label ‘cleanup’ defined but not used
PHP.c: In function ‘XS_PHP__Interpreter__Resource_FETCH’:
PHP.c:1438: warning: useless type name in empty declaration
PHP.c: In function ‘XS_PHP__Interpreter__Resource_STORE’:
PHP.c:1475: warning: unused variable ‘new’
PHP.c: In function ‘XS_PHP__Interpreter_set_output_handler’:
PHP.c:744: warning: ‘RETVAL’ may be used uninitialized in this function
PHP.c: In function ‘XS_PHP__Interpreter__Class__AUTOLOAD’:
PHP.c:1230: warning: ‘RETVAL’ may be used uninitialized in this function
PHP.c: In function ‘XS_PHP__Interpreter_instantiate’:
PHP.c:864: warning: ‘RETVAL’ may be used uninitialized in this function
gcc -c -I/usr/include -I/usr/include/php -I/usr/include/php/main -I/
usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -g
-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-
protector --param=ssp-buffer-size=4 -m64 -mtune=generic -DVERSION=
\"1.0.1\" -DXS_VERSION=\"1.0.1\" -fPIC "-I/usr/lib64/perl5/5.8.8/
x86_64-linux-thread-multi/CORE" phpinterp.c
In file included from phpinterp.h:10,
from phpinterp.c:13:
/usr/include/php/main/php_config.h:2250:1: warning: "_GNU_SOURCE"
redefined
In file included from /usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi/
CORE/perl.h:37,
from phpinterp.c:3:
/usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi/CORE/config.h:1794:1:
warning: this is the location of the previous definition
In file included from /usr/include/php/main/php.h:35,
from phpinterp.h:11,
from phpinterp.c:13:
/usr/include/php/Zend/zend.h:34:1: warning: "END_EXTERN_C" redefined
In file included from phpinterp.c:3:
/usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi/CORE/perl.h:242:1:
warning: this is the location of the previous definition
phpinterp.c: In function ‘sandwich_sapi_ub_write’:
phpinterp.c:31: warning: ignoring return value of ‘fwrite’, declared
with attribute warn_unused_result
phpinterp.c: In function ‘sandwich_php_interpreter_create’:
phpinterp.c:119: warning: unused variable ‘tsrm_ls’
phpinterp.c:118: warning: unused variable ‘sapi_globals’
phpinterp.c:117: warning: unused variable ‘core_globals’
phpinterp.c:116: warning: unused variable ‘executor_globals’
phpinterp.c:115: warning: unused variable ‘compiler_globals’
phpinterp.c: At top level:
phpinterp.c:21: warning: ‘sandwich_per_thread_info_key’ defined but
not used
gcc -c -I/usr/include -I/usr/include/php -I/usr/include/php/main -I/
usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -g
-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-
protector --param=ssp-buffer-size=4 -m64 -mtune=generic -DVERSION=
\"1.0.1\" -DXS_VERSION=\"1.0.1\" -fPIC "-I/usr/lib64/perl5/5.8.8/
x86_64-linux-thread-multi/CORE" phpfuncs.c
In file included from phpinterp.h:10,
from phpfuncs.c:5:
/usr/include/php/main/php_config.h:2250:1: warning: "_GNU_SOURCE"
redefined
In file included from /usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi/
CORE/perl.h:37,
from phpfuncs.c:2:
/usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi/CORE/config.h:1794:1:
warning: this is the location of the previous definition
In file included from /usr/include/php/main/php.h:35,
from phpinterp.h:11,
from phpfuncs.c:5:
/usr/include/php/Zend/zend.h:34:1: warning: "END_EXTERN_C" redefined
In file included from phpfuncs.c:2:
/usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi/CORE/perl.h:242:1:
warning: this is the location of the previous definition
phpfuncs.c: In function ‘zm_info_sandwich’:
phpfuncs.c:24: warning: implicit declaration of function
‘php_info_print_table_start’
phpfuncs.c:25: warning: implicit declaration of function
‘php_info_print_table_row’
phpfuncs.c:26: warning: implicit declaration of function
‘php_info_print_table_end’
phpfuncs.c: In function ‘zif_perl_setvariable’:
phpfuncs.c:149: warning: unused variable ‘retval’
phpfuncs.c: In function ‘_sandwich_call_method’:
phpfuncs.c:219: warning: ‘return’ with no value, in function returning
non-void
phpfuncs.c:212: warning: unused variable ‘n_a’
phpfuncs.c:201: warning: unused variable ‘sparam’
phpfuncs.c:199: warning: unused variable ‘param’
phpfuncs.c:198: warning: unused variable ‘namelen’
phpfuncs.c:197: warning: unused variable ‘name’
phpfuncs.c: In function ‘sandwich_get_method’:
phpfuncs.c:290: warning: dereferencing type-punned pointer will break
strict-aliasing rules
phpfuncs.c:285: warning: unused variable ‘pl’
phpfuncs.c:283: warning: unused variable ‘fptr’
phpfuncs.c:282: warning: unused variable ‘object’
phpfuncs.c: In function ‘zif_perl_getinstance’:
phpfuncs.c:311: warning: unused variable ‘pl’
phpfuncs.c: In function ‘my_eval_sv’:
phpfuncs.c:327: warning: unused variable ‘mark’
phpfuncs.c:325: warning: unused variable ‘cnt’
phpfuncs.c: In function ‘zif_perl_new’:
phpfuncs.c:403: warning: unused variable ‘n_a’
phpfuncs.c:381: warning: unused variable ‘sparam’
phpfuncs.c:379: warning: unused variable ‘param’
phpfuncs.c: In function ‘sv_prop_read’:
phpfuncs.c:458: warning: ‘return’ with no value, in function returning
non-void
phpfuncs.c: In function ‘sv_prop_exists’:
phpfuncs.c:536: warning: ‘return’ with no value, in function returning
non-void
phpfuncs.c: In function ‘_sv_call_method’:
phpfuncs.c:575: warning: ‘return’ with no value, in function returning
non-void
phpfuncs.c:570: warning: unused variable ‘oldscope’
phpfuncs.c:568: warning: unused variable ‘n_a’
phpfuncs.c:557: warning: unused variable ‘sparam’
phpfuncs.c:555: warning: unused variable ‘param’
phpfuncs.c:554: warning: unused variable ‘namelen’
phpfuncs.c:553: warning: unused variable ‘name’
phpfuncs.c: In function ‘sv_get_method’:
phpfuncs.c:640: warning: dereferencing type-punned pointer will break
strict-aliasing rules
phpfuncs.c:635: warning: unused variable ‘pl’
phpfuncs.c:633: warning: unused variable ‘fptr’
phpfuncs.c:632: warning: unused variable ‘object’
phpfuncs.c: In function ‘stderr_dump’:
phpfuncs.c:688: warning: ignoring return value of ‘fwrite’, declared
with attribute warn_unused_result
phpfuncs.c: In function ‘plsv_iter_move_forwards’:
phpfuncs.c:789: warning: passing argument 4 of ‘Perl_hv_iternextsv’
from incompatible pointer type
phpfuncs.c: In function ‘plobj_new’:
phpfuncs.c:883: warning: unused variable ‘obj’
phpfuncs.c: In function ‘plsv_new’:
phpfuncs.c:958: warning: unused variable ‘obj’
phpfuncs.c: At top level:
phpfuncs.c:687: warning: ‘stderr_dump’ defined but not used
phpfuncs.c: In function ‘sv_prop_exists’:
phpfuncs.c:536: warning: ‘return_value’ is used uninitialized in this
function
phpfuncs.c: In function ‘sv_prop_write’:
phpfuncs.c:502: warning: ‘return_value’ is used uninitialized in this
function
phpfuncs.c: In function ‘sv_prop_read’:
phpfuncs.c:458: warning: ‘return_value’ is used uninitialized in this
function
phpfuncs.c: In function ‘plsv_iter_get’:
phpfuncs.c:837: warning: ‘my_perl’ is used uninitialized in this
function
phpfuncs.c: In function ‘plsv_iter_move_forwards’:
phpfuncs.c:789: warning: ‘my_perl’ is used uninitialized in this
function
phpfuncs.c: In function ‘plsv_iter_rewind’:
phpfuncs.c:801: warning: ‘my_perl’ is used uninitialized in this
function
phpfuncs.c: In function ‘zif_perl_getvariable’:
phpfuncs.c:99: warning: ‘my_perl’ is used uninitialized in this function
Running Mkbootstrap for PHP::Interpreter ()
chmod 644 Interpreter.bs
rm -f blib/arch/auto/PHP/Interpreter/Interpreter.so
gcc -shared -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -
fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -L/usr/
kerberos/lib64 -L/usr/lib -L/usr/lib PHP.o phpinterp.o phpfuncs.o -o
blib/arch/auto/PHP/Interpreter/Interpreter.so \
\

chmod 755 blib/arch/auto/PHP/Interpreter/Interpreter.so
cp Interpreter.bs blib/arch/auto/PHP/Interpreter/Interpreter.bs
chmod 644 blib/arch/auto/PHP/Interpreter/Interpreter.bs
PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e"
"test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/1....................
t/1....................NOK 1# Failed test 'use PHP::Interpreter;'
# at t/1.t line 6.
# Tried to use 'PHP::Interpreter'.
# Error: Can't load '/root/.cpan/build/PHP-Interpreter-1.0.1/blib/
arch/auto/PHP/Interpreter/Interpreter.so' for module
PHP::Interpreter: /root/.cpan/build/PHP-Interpreter-1.0.1/blib/arch/
auto/PHP/Interpreter/Interpreter.so: undefined symbol:
zend_ce_traversable at /usr/lib64/perl5/5.8.8/x86_64-linux-thread-
multi/DynaLoader.pm line 230.
# at (eval 3) line 2
# Compilation failed in require at (eval 3) line 2.
# BEGIN failed--compilation aborted at (eval 3) line 2.
Died at t/1.t line 6.
BEGIN failed--compilation aborted at t/1.t line 7.
# Looks like you planned 6 tests but ran 1.
# Looks like you failed 1 test of 1 run.
# Looks like your test exited with 255 just after 1.
t/1....................dubious
Test returned status 255 (wstat 65280, 0xff00)
DIED. FAILED tests 1-6
Failed 6/6 tests, 0.00% okay
t/10...................# Instantiate an internal class with
PHP::Interpreter::instantiate()
t/10...................NOK 1
# Failed test 'use PHP::Interpreter;'
# at t/10.t line 8.
# Tried to use 'PHP::Interpreter'.
# Error: Can't load '/root/.cpan/build/PHP-Interpreter-1.0.1/blib/
arch/auto/PHP/Interpreter/Interpreter.so' for module
PHP::Interpreter: /root/.cpan/build/PHP-Interpreter-1.0.1/blib/arch/
auto/PHP/Interpreter/Interpreter.so: undefined symbol:
zend_ce_traversable at /usr/lib64/perl5/5.8.8/x86_64-linux-thread-
multi/DynaLoader.pm line 230.
# at (eval 3) line 2
# Compilation failed in require at (eval 3) line 2.
# BEGIN failed--compilation aborted at (eval 3) line 2.
Died at t/10.t line 8.
BEGIN failed--compilation aborted at t/10.t line 10.
# Looks like you planned 5 tests but ran 1.
# Looks like you failed 1 test of 1 run.
# Looks like your test exited with 2 just after 1.
t/10...................dubious
Test returned status 2 (wstat 512, 0x200)
DIED. FAILED tests 1-5
Failed 5/5 tests, 0.00% okay
t/11...................
t/11...................NOK 1# Failed test 'use PHP::Interpreter;'
# at t/11.t line 6.
# Tried to use 'PHP::Interpreter'.
# Error: Can't load '/root/.cpan/build/PHP-Interpreter-1.0.1/blib/
arch/auto/PHP/Interpreter/Interpreter.so' for module
PHP::Interpreter: /root/.cpan/build/PHP-Interpreter-1.0.1/blib/arch/
auto/PHP/Interpreter/Interpreter.so: undefined symbol:
zend_ce_traversable at /usr/lib64/perl5/5.8.8/x86_64-linux-thread-
multi/DynaLoader.pm line 230.
# at (eval 3) line 2
# Compilation failed in require at (eval 3) line 2.
# BEGIN failed--compilation aborted at (eval 3) line 2.
Died at t/11.t line 6.
BEGIN failed--compilation aborted at t/11.t line 7.
# Looks like you planned 3 tests but ran 1.
# Looks like you failed 1 test of 1 run.
# Looks like your test exited with 255 just after 1.
t/11...................dubious
Test returned status 255 (wstat 65280, 0xff00)
DIED. FAILED tests 1-3
Failed 3/3 tests, 0.00% okay
t/12...................
t/12...................NOK 1# Failed test 'use PHP::Interpreter;'
# at t/12.t line 6.
# Tried to use 'PHP::Interpreter'.
# Error: Can't load '/root/.cpan/build/PHP-Interpreter-1.0.1/blib/
arch/auto/PHP/Interpreter/Interpreter.so' for module
PHP::Interpreter: /root/.cpan/build/PHP-Interpreter-1.0.1/blib/arch/
auto/PHP/Interpreter/Interpreter.so: undefined symbol:
zend_ce_traversable at /usr/lib64/perl5/5.8.8/x86_64-linux-thread-
multi/DynaLoader.pm line 230.
# at (eval 3) line 2
# Compilation failed in require at (eval 3) line 2.
# BEGIN failed--compilation aborted at (eval 3) line 2.
Died at t/12.t line 6.
BEGIN failed--compilation aborted at t/12.t line 7.
# Looks like you planned 6 tests but ran 1.
# Looks like you failed 1 test of 1 run.
# Looks like your test exited with 255 just after 1.
t/12...................dubious
Test returned status 255 (wstat 65280, 0xff00)
DIED. FAILED tests 1-6
Failed 6/6 tests, 0.00% okay
t/13...................NOK 1
# Failed test 'use PHP::Interpreter;'
# at t/13.t line 6.
# Tried to use 'PHP::Interpreter'.
# Error: Can't load '/root/.cpan/build/PHP-Interpreter-1.0.1/blib/
arch/auto/PHP/Interpreter/Interpreter.so' for module
PHP::Interpreter: /root/.cpan/build/PHP-Interpreter-1.0.1/blib/arch/
auto/PHP/Interpreter/Interpreter.so: undefined symbol:
zend_ce_traversable at /usr/lib64/perl5/5.8.8/x86_64-linux-thread-
multi/DynaLoader.pm line 230.
# at (eval 3) line 2
# Compilation failed in require at (eval 3) line 2.
# BEGIN failed--compilation aborted at (eval 3) line 2.
Died at t/13.t line 6.
BEGIN failed--compilation aborted at t/13.t line 7.
# Looks like you planned 3 tests but ran 1.
# Looks like you failed 1 test of 1 run.
# Looks like your test exited with 255 just after 1.
t/13...................dubious
Test returned status 255 (wstat 65280, 0xff00)
DIED. FAILED tests 1-3
Failed 3/3 tests, 0.00% okay
t/14...................
# Failed test 'use PHP::Interpreter;'
# at t/14.t line 6.
# Tried to use 'PHP::Interpreter'.
# Error: Can't load '/root/.cpan/build/PHP-Interpreter-1.0.1/blib/
arch/auto/PHP/Interpreter/Interpreter.so' for module
PHP::Interpreter: /root/.cpan/build/PHP-Interpreter-1.0.1/blib/arch/
auto/PHP/Interpreter/Interpreter.so: undefined symbol:
zend_ce_traversable at /usr/lib64/perl5/5.8.8/x86_64-linux-thread-
multi/DynaLoader.pm line 230.
# at (eval 3) line 2
# Compilation failed in require at (eval 3) line 2.
# BEGIN failed--compilation aborted at (eval 3) line 2.
Died at t/14.t line 6.
BEGIN failed--compilation aborted at t/14.t line 7.
# Looks like you planned 7 tests but ran 1.
# Looks like you failed 1 test of 1 run.
# Looks like your test exited with 255 just after 1.
t/14...................dubious
Test returned status 255 (wstat 65280, 0xff00)
DIED. FAILED tests 1-7
Failed 7/7 tests, 0.00% okay
t/15...................# Testing Perl::call

# Failed test 'use PHP::Interpreter;'
t/15...................NOK 1# at t/15.t line 7.
# Tried to use 'PHP::Interpreter'.
# Error: Can't load '/root/.cpan/build/PHP-Interpreter-1.0.1/blib/
arch/auto/PHP/Interpreter/Interpreter.so' for module
PHP::Interpreter: /root/.cpan/build/PHP-Interpreter-1.0.1/blib/arch/
auto/PHP/Interpreter/Interpreter.so: undefined symbol:
zend_ce_traversable at /usr/lib64/perl5/5.8.8/x86_64-linux-thread-
multi/DynaLoader.pm line 230.
# at (eval 3) line 2
# Compilation failed in require at (eval 3) line 2.
# BEGIN failed--compilation aborted at (eval 3) line 2.
Died at t/15.t line 7.
BEGIN failed--compilation aborted at t/15.t line 8.
# Looks like you planned 6 tests but ran 1.
# Looks like you failed 1 test of 1 run.
# Looks like your test exited with 255 just after 1.
t/15...................dubious
Test returned status 255 (wstat 65280, 0xff00)
DIED. FAILED tests 1-6
Failed 6/6 tests, 0.00% okay
t/16...................# Testing passing blessed references into PHP
t/16...................NOK 1
# Failed test 'use PHP::Interpreter;'
# at t/16.t line 7.
# Tried to use 'PHP::Interpreter'.
# Error: Can't load '/root/.cpan/build/PHP-Interpreter-1.0.1/blib/
arch/auto/PHP/Interpreter/Interpreter.so' for module
PHP::Interpreter: /root/.cpan/build/PHP-Interpreter-1.0.1/blib/arch/
auto/PHP/Interpreter/Interpreter.so: undefined symbol:
zend_ce_traversable at /usr/lib64/perl5/5.8.8/x86_64-linux-thread-
multi/DynaLoader.pm line 230.
# at (eval 3) line 2
# Compilation failed in require at (eval 3) line 2.
# BEGIN failed--compilation aborted at (eval 3) line 2.
Died at t/16.t line 7.
BEGIN failed--compilation aborted at t/16.t line 8.
# Looks like you planned 9 tests but ran 1.
# Looks like you failed 1 test of 1 run.
# Looks like your test exited with 255 just after 1.
t/16...................dubious
Test returned status 255 (wstat 65280, 0xff00)
DIED. FAILED tests 1-9
Failed 9/9 tests, 0.00% okay
t/17...................# Testing passing resources out of PHP

# Failed test 'use PHP::Interpreter;'
t/17...................NOK 1# at t/17.t line 7.
# Tried to use 'PHP::Interpreter'.
# Error: Can't load '/root/.cpan/build/PHP-Interpreter-1.0.1/blib/
arch/auto/PHP/Interpreter/Interpreter.so' for module
PHP::Interpreter: /root/.cpan/build/PHP-Interpreter-1.0.1/blib/arch/
auto/PHP/Interpreter/Interpreter.so: undefined symbol:
zend_ce_traversable at /usr/lib64/perl5/5.8.8/x86_64-linux-thread-
multi/DynaLoader.pm line 230.
# at (eval 3) line 2
# Compilation failed in require at (eval 3) line 2.
# BEGIN failed--compilation aborted at (eval 3) line 2.
Died at t/17.t line 7.
BEGIN failed--compilation aborted at t/17.t line 8.
# Looks like you planned 6 tests but ran 1.
# Looks like you failed 1 test of 1 run.
# Looks like your test exited with 255 just after 1.
t/17...................dubious
Test returned status 255 (wstat 65280, 0xff00)
DIED. FAILED tests 1-6
Failed 6/6 tests, 0.00% okay
t/18...................# Testing Passing interpreter globals

# Failed test 'use PHP::Interpreter;'
t/18...................NOK 1# at t/18.t line 6.
# Tried to use 'PHP::Interpreter'.
# Error: Can't load '/root/.cpan/build/PHP-Interpreter-1.0.1/blib/
arch/auto/PHP/Interpreter/Interpreter.so' for module
PHP::Interpreter: /root/.cpan/build/PHP-Interpreter-1.0.1/blib/arch/
auto/PHP/Interpreter/Interpreter.so: undefined symbol:
zend_ce_traversable at /usr/lib64/perl5/5.8.8/x86_64-linux-thread-
multi/DynaLoader.pm line 230.
# at (eval 3) line 2
# Compilation failed in require at (eval 3) line 2.
# BEGIN failed--compilation aborted at (eval 3) line 2.
Died at t/18.t line 6.
BEGIN failed--compilation aborted at t/18.t line 7.
# Looks like you planned 6 tests but ran 1.
# Looks like you failed 1 test of 1 run.
# Looks like your test exited with 255 just after 1.
t/18...................dubious
Test returned status 255 (wstat 65280, 0xff00)
DIED. FAILED tests 1-6
Failed 6/6 tests, 0.00% okay
t/19...................# Testing Output Buffering

# Failed test 'use PHP::Interpreter;'
t/19...................NOK 1# at t/19.t line 7.
# Tried to use 'PHP::Interpreter'.
# Error: Can't load '/root/.cpan/build/PHP-Interpreter-1.0.1/blib/
arch/auto/PHP/Interpreter/Interpreter.so' for module
PHP::Interpreter: /root/.cpan/build/PHP-Interpreter-1.0.1/blib/arch/
auto/PHP/Interpreter/Interpreter.so: undefined symbol:
zend_ce_traversable at /usr/lib64/perl5/5.8.8/x86_64-linux-thread-
multi/DynaLoader.pm line 230.
# at (eval 3) line 2
# Compilation failed in require at (eval 3) line 2.
# BEGIN failed--compilation aborted at (eval 3) line 2.
Died at t/19.t line 7.
BEGIN failed--compilation aborted at t/19.t line 8.
# Looks like you planned 14 tests but ran 1.
# Looks like you failed 1 test of 1 run.
# Looks like your test exited with 255 just after 1.
t/19...................dubious
Test returned status 255 (wstat 65280, 0xff00)
DIED. FAILED tests 1-14
Failed 14/14 tests, 0.00% okay
t/2....................# Testing basic function autoloadind

# Failed test 'use PHP::Interpreter;'
t/2....................NOK 1# at t/2.t line 7.
# Tried to use 'PHP::Interpreter'.
# Error: Can't load '/root/.cpan/build/PHP-Interpreter-1.0.1/blib/
arch/auto/PHP/Interpreter/Interpreter.so' for module
PHP::Interpreter: /root/.cpan/build/PHP-Interpreter-1.0.1/blib/arch/
auto/PHP/Interpreter/Interpreter.so: undefined symbol:
zend_ce_traversable at /usr/lib64/perl5/5.8.8/x86_64-linux-thread-
multi/DynaLoader.pm line 230.
# at (eval 3) line 2
# Compilation failed in require at (eval 3) line 2.
# BEGIN failed--compilation aborted at (eval 3) line 2.
Died at t/2.t line 7.
BEGIN failed--compilation aborted at t/2.t line 8.
# Looks like you planned 5 tests but ran 1.
# Looks like you failed 1 test of 1 run.
# Looks like your test exited with 255 just after 1.
t/2....................dubious
Test returned status 255 (wstat 65280, 0xff00)
DIED. FAILED tests 1-5
Failed 5/5 tests, 0.00% okay
t/20...................
t/20...................NOK 1# Failed test 'use PHP::Interpreter;'
# at t/20.t line 5.
# Tried to use 'PHP::Interpreter'.
# Error: Can't load '/root/.cpan/build/PHP-Interpreter-1.0.1/blib/
arch/auto/PHP/Interpreter/Interpreter.so' for module
PHP::Interpreter: /root/.cpan/build/PHP-Interpreter-1.0.1/blib/arch/
auto/PHP/Interpreter/Interpreter.so: undefined symbol:
zend_ce_traversable at /usr/lib64/perl5/5.8.8/x86_64-linux-thread-
multi/DynaLoader.pm line 230.
# at (eval 3) line 2
# Compilation failed in require at (eval 3) line 2.
# BEGIN failed--compilation aborted at (eval 3) line 2.
Deep recursion on anonymous subroutine at /root/.cpan/build/PHP-
Interpreter-1.0.1/blib/lib/PHP/Interpreter.pm line 46.
make: *** wait: No child processes. Stop.
make: *** Waiting for unfinished jobs....
make: *** wait: No child processes. Stop.
#


david at kineticode

Oct 29, 2008, 11:48 AM

Post #2 of 9 (6035 views)
Permalink
Re: PHP::Interpreter Installation Difficulties [In reply to]

On Oct 29, 2008, at 11:32, Waldo Jaquith wrote:

> Folks,
>
> The PHP::Interpreter installation process is deeply bad. It's a
> hurdle that I'm running out of ideas of how to get over (or around),
> and I'm hoping that somebody here can help me deal with it.
>
> The badness of PHP::Interpreter's installation has been well-
> documented on PerlMonks <http://www.perlmonks.org/?node_id=685156>,
> and PerlMonks contributor "Andreas" has made a valiant attempt to
> improve Makefile.PL, but unfortunately it doesn't work any better
> for me (though it does return more useful status and error
> messages). The provided Makefile.PL makes a series of terrible
> assumptions about the location of PHP's assets on the server, which
> Andreas' changes appear to compensate for.

Ooh, we should get him a commit bit.

> Anyhow, everything starts to go south when creating the makefile,
> with this line:
>
> Note (probably harmless): No library found for -lphp5
>
> Maybe it is harmless, but I suspect not.

No, it's not. It's not finding the php5 library. Clearly that won't
work. You'll need to tell Makefile.PL where to find it, using
something like:

perl Makefile.PL LDFLAGS=-L/path/to/php5/lib/directory

HTH,

David


rolfm at denison

Oct 29, 2008, 12:32 PM

Post #3 of 9 (6042 views)
Permalink
Re: PHP::Interpreter Installation Difficulties [In reply to]

On Oct 29, 2008, at 2:48 PM, David E. Wheeler wrote:

> On Oct 29, 2008, at 11:32, Waldo Jaquith wrote:
>
>> Folks,
>>
>> The PHP::Interpreter installation process is deeply bad. It's a
>> hurdle that I'm running out of ideas of how to get over (or
>> around), and I'm hoping that somebody here can help me deal with it.
>>
>> The badness of PHP::Interpreter's installation has been well-
>> documented on PerlMonks <http://www.perlmonks.org/?node_id=685156>,
>> and PerlMonks contributor "Andreas" has made a valiant attempt to
>> improve Makefile.PL, but unfortunately it doesn't work any better
>> for me (though it does return more useful status and error
>> messages). The provided Makefile.PL makes a series of terrible
>> assumptions about the location of PHP's assets on the server, which
>> Andreas' changes appear to compensate for.
>
> Ooh, we should get him a commit bit.

Mmm, yes. Will you contact him?

-Matt


david at kineticode

Oct 29, 2008, 2:31 PM

Post #4 of 9 (6051 views)
Permalink
Re: PHP::Interpreter Installation Difficulties [In reply to]

On Oct 29, 2008, at 12:32, Matt Rolf wrote:

>> Ooh, we should get him a commit bit.
>
> Mmm, yes. Will you contact him?

I left a comment on PerlMonks.

David


rolfm at denison

Oct 29, 2008, 3:33 PM

Post #5 of 9 (6054 views)
Permalink
Re: PHP::Interpreter Installation Difficulties [In reply to]

On Oct 29, 2008, at 5:31 PM, David E. Wheeler wrote:

> On Oct 29, 2008, at 12:32, Matt Rolf wrote:
>
>>> Ooh, we should get him a commit bit.
>>
>> Mmm, yes. Will you contact him?
>
> I left a comment on PerlMonks.

Sweet.


andreas at faafeng

Nov 10, 2008, 2:10 AM

Post #6 of 9 (6009 views)
Permalink
Re: PHP::Interpreter Installation Difficulties [In reply to]

[waldo at vqronline, Oct 29, 2008, 11:32 AM]

> Interpreter.so: undefined symbol: zend_ce_traversable

I get errors like above when tryng to install PHP::Interpreter using the
stock php that comes with say Centos or Ubuntu. The solution for me has
been to download the php 5.1.6 sources
(http://museum.php.net/php5/php-5.1.6.tar.bz2) and compile as described
in the PHP-Sandwich README:

http://svn.perl.org/modules/PHP-Sandwich/trunk/README

Assuming you are on a Unix-like operating system, and that php installs
itself under /usr/local, try the below command and see if the "No
library found for -lphp5" disappears.

$ perl Makefile.PL /usr/local

(Note: This is likely to change to "$ PHP_PREFIX=/usr/local perl
Makefile.PL" or equivalent anytime soon).

--
Andreas


david at kineticode

Nov 10, 2008, 9:48 AM

Post #7 of 9 (6002 views)
Permalink
Re: PHP::Interpreter Installation Difficulties [In reply to]

On Nov 10, 2008, at 2:10 AM, Andreas Faafeng wrote:

> [waldo at vqronline, Oct 29, 2008, 11:32 AM]
>
> > Interpreter.so: undefined symbol: zend_ce_traversable
>
> I get errors like above when tryng to install PHP::Interpreter using
> the stock php that comes with say Centos or Ubuntu. The solution
> for me has been to download the php 5.1.6 sources (http://museum.php.net/php5/php-5.1.6.tar.bz2
> ) and compile as described in the PHP-Sandwich README:
>
> http://svn.perl.org/modules/PHP-Sandwich/trunk/README

Oh. So does 5.2.6 not work?

Thanks,

David


andreas at faafeng

Nov 11, 2008, 12:34 AM

Post #8 of 9 (5983 views)
Permalink
Re: PHP::Interpreter Installation Difficulties [In reply to]

David E. Wheeler wrote:
> On Nov 10, 2008, at 2:10 AM, Andreas Faafeng wrote:
>
>> The solution for me has been to download the php 5.1.6 sources
>
> Oh. So does 5.2.6 not work?

I just confirmed it does [1]. I wrongly assumed it did not since the
README says:

"PHP::Interpreter supports both PHP 5.0 and PHP 5.1."

Sorry for the confusion.

[1] Exception: The inheritance test in t/test_perl_classes.t fails:

$ PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e"
"test_harness(0, 'blib/lib', 'blib/arch')" t/test_perl_classes.t
t/test_perl_classes....ok 12/15# 1
t/test_perl_classes....NOK 13
# Failed test 'The object created by new() should obey inheritance'
# at t/test_perl_classes.t line 94.
t/test_perl_classes....ok 15/15# Looks like you failed 1 test of 15.

--
Andreas


david at kineticode

Nov 11, 2008, 9:25 AM

Post #9 of 9 (5985 views)
Permalink
Re: PHP::Interpreter Installation Difficulties [In reply to]

On Nov 11, 2008, at 12:34 AM, Andreas Faafeng wrote:

> David E. Wheeler wrote:
>> On Nov 10, 2008, at 2:10 AM, Andreas Faafeng wrote:
>>> The solution for me has been to download the php 5.1.6 sources
>> Oh. So does 5.2.6 not work?
>
> I just confirmed it does [1]. I wrongly assumed it did not since
> the README says:
>
> "PHP::Interpreter supports both PHP 5.0 and PHP 5.1."

So it should probably be updated. Thanks for confirming!

> Sorry for the confusion.
>
> [1] Exception: The inheritance test in t/test_perl_classes.t fails:
>
> $ PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e"
> "test_harness(0, 'blib/lib', 'blib/arch')" t/test_perl_classes.t
> t/test_perl_classes....ok 12/15# 1
> t/test_perl_classes....NOK 13
> # Failed test 'The object created by new() should obey inheritance'
> # at t/test_perl_classes.t line 94.
> t/test_perl_classes....ok 15/15# Looks like you failed 1 test of 15.

Sounds like something that should be fixed…

Best,

David

Bricolage users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.