php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #61341 Errors when compiling for PHP 5.4
Submitted: 2012-03-10 12:58 UTC Modified: 2013-01-14 09:56 UTC
Votes:40
Avg. Score:4.6 ± 0.7
Reproduced:34 of 34 (100.0%)
Same Version:26 (76.5%)
Same OS:14 (41.2%)
From: pp3345 at gmail dot com Assigned:
Status: Duplicate Package: bcompiler (PECL)
PHP Version: 5.4.0 OS: Debian Squeeze
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
50 - 31 = ?
Subscribe to this entry?

 
 [2012-03-10 12:58 UTC] pp3345 at gmail dot com
Description:
------------
When trying to compile this extension under PHP 5.4 (Zend API-Version 20100525 - PHP API-Version 20100412) I get the following errors:

/bin/bash /home/pp3345/bcompiler-1.0.2/libtool --mode=compile cc  -I. -I/home/pp3345/bcompiler-1.0.2 -DPHP_ATOM_INC -I/home/pp3345/bcompiler-1.0.2/include -I/home/pp3345/bcompiler-1.0.2/main -I/home/pp3345/bcompiler-1.0.2 -I/usr/include/php5 -I/usr/include/php5/main -I/usr/include/php5/TSRM -I/usr/include/php5/Zend -I/usr/include/php5/ext -I/usr/include/php5/ext/date/lib  -DHAVE_CONFIG_H  -g -O2   -c /home/pp3345/bcompiler-1.0.2/php_bcompiler.c -o php_bcompiler.lo
libtool: compile:  cc -I. -I/home/pp3345/bcompiler-1.0.2 -DPHP_ATOM_INC -I/home/pp3345/bcompiler-1.0.2/include -I/home/pp3345/bcompiler-1.0.2/main -I/home/pp3345/bcompiler-1.0.2 -I/usr/include/php5 -I/usr/include/php5/main -I/usr/include/php5/TSRM -I/usr/include/php5/Zend -I/usr/include/php5/ext -I/usr/include/php5/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /home/pp3345/bcompiler-1.0.2/php_bcompiler.c  -fPIC -DPIC -o .libs/php_bcompiler.o
/home/pp3345/bcompiler-1.0.2/php_bcompiler.c: In function '_bcompiler_write_functions_from_file':
/home/pp3345/bcompiler-1.0.2/php_bcompiler.c:468: warning: passing argument 1 of 'apc_serialize_zstring' discards qualifiers from pointer target type
/home/pp3345/bcompiler-1.0.2/php_bcompiler.h:298: note: expected 'char *' but argument is of type 'const char *'
/home/pp3345/bcompiler-1.0.2/php_bcompiler.c: In function 'zif_bcompiler_write_file':
/home/pp3345/bcompiler-1.0.2/php_bcompiler.c:574: error: 'zend_class_entry' has no member named 'filename'
/home/pp3345/bcompiler-1.0.2/php_bcompiler.c:574: error: 'zend_class_entry' has no member named 'filename'
/home/pp3345/bcompiler-1.0.2/php_bcompiler.c:574: error: 'zend_class_entry' has no member named 'filename'
/home/pp3345/bcompiler-1.0.2/php_bcompiler.c:574: error: 'zend_class_entry' has no member named 'filename'
/home/pp3345/bcompiler-1.0.2/php_bcompiler.c:574: error: 'zend_class_entry' has no member named 'filename'
/home/pp3345/bcompiler-1.0.2/php_bcompiler.c:574: error: 'zend_class_entry' has no member named 'filename'
/home/pp3345/bcompiler-1.0.2/php_bcompiler.c:574: error: 'zend_class_entry' has no member named 'filename'
/home/pp3345/bcompiler-1.0.2/php_bcompiler.c:574: error: 'zend_class_entry' has no member named 'filename'
/home/pp3345/bcompiler-1.0.2/php_bcompiler.c:574: error: 'zend_class_entry' has no member named 'filename'
/home/pp3345/bcompiler-1.0.2/php_bcompiler.c:574: error: 'zend_class_entry' has no member named 'filename'
/home/pp3345/bcompiler-1.0.2/php_bcompiler.c:574: error: 'zend_class_entry' has no member named 'filename'
/home/pp3345/bcompiler-1.0.2/php_bcompiler.c:574: error: 'zend_class_entry' has no member named 'filename'
/home/pp3345/bcompiler-1.0.2/php_bcompiler.c:574: error: 'zend_class_entry' has no member named 'filename'
/home/pp3345/bcompiler-1.0.2/php_bcompiler.c:574: error: 'zend_class_entry' has no member named 'filename'
/home/pp3345/bcompiler-1.0.2/php_bcompiler.c:574: error: 'zend_class_entry' has no member named 'filename'
/home/pp3345/bcompiler-1.0.2/php_bcompiler.c:574: error: 'zend_class_entry' has no member named 'filename'
/home/pp3345/bcompiler-1.0.2/php_bcompiler.c:574: error: 'zend_class_entry' has no member named 'filename'
/home/pp3345/bcompiler-1.0.2/php_bcompiler.c:574: error: 'zend_class_entry' has no member named 'filename'
/home/pp3345/bcompiler-1.0.2/php_bcompiler.c:574: error: 'zend_class_entry' has no member named 'filename'
/home/pp3345/bcompiler-1.0.2/php_bcompiler.c:574: error: 'zend_class_entry' has no member named 'filename'
/home/pp3345/bcompiler-1.0.2/php_bcompiler.c:574: error: 'zend_class_entry' has no member named 'filename'
/home/pp3345/bcompiler-1.0.2/php_bcompiler.c:581: warning: passing argument 4 of 'apc_serialize_zend_class_entry' discards qualifiers from pointer target type
/home/pp3345/bcompiler-1.0.2/php_bcompiler.h:305: note: expected 'char *' but argument is of type 'const char *'
/home/pp3345/bcompiler-1.0.2/php_bcompiler.c:635: error: 'zend_class_entry' has no member named 'filename'
/home/pp3345/bcompiler-1.0.2/php_bcompiler.c:635: error: 'zend_class_entry' has no member named 'filename'
/home/pp3345/bcompiler-1.0.2/php_bcompiler.c:635: error: 'zend_class_entry' has no member named 'filename'
/home/pp3345/bcompiler-1.0.2/php_bcompiler.c:635: error: 'zend_class_entry' has no member named 'filename'
/home/pp3345/bcompiler-1.0.2/php_bcompiler.c:635: error: 'zend_class_entry' has no member named 'filename'
/home/pp3345/bcompiler-1.0.2/php_bcompiler.c:635: error: 'zend_class_entry' has no member named 'filename'
/home/pp3345/bcompiler-1.0.2/php_bcompiler.c:635: error: 'zend_class_entry' has no member named 'filename'
/home/pp3345/bcompiler-1.0.2/php_bcompiler.c:635: error: 'zend_class_entry' has no member named 'filename'
/home/pp3345/bcompiler-1.0.2/php_bcompiler.c:635: error: 'zend_class_entry' has no member named 'filename'
/home/pp3345/bcompiler-1.0.2/php_bcompiler.c:635: error: 'zend_class_entry' has no member named 'filename'
/home/pp3345/bcompiler-1.0.2/php_bcompiler.c:635: error: 'zend_class_entry' has no member named 'filename'
/home/pp3345/bcompiler-1.0.2/php_bcompiler.c:635: error: 'zend_class_entry' has no member named 'filename'
/home/pp3345/bcompiler-1.0.2/php_bcompiler.c:635: error: 'zend_class_entry' has no member named 'filename'
/home/pp3345/bcompiler-1.0.2/php_bcompiler.c:635: error: 'zend_class_entry' has no member named 'filename'
/home/pp3345/bcompiler-1.0.2/php_bcompiler.c:635: error: 'zend_class_entry' has no member named 'filename'
/home/pp3345/bcompiler-1.0.2/php_bcompiler.c:635: error: 'zend_class_entry' has no member named 'filename'
/home/pp3345/bcompiler-1.0.2/php_bcompiler.c:635: error: 'zend_class_entry' has no member named 'filename'
/home/pp3345/bcompiler-1.0.2/php_bcompiler.c:635: error: 'zend_class_entry' has no member named 'filename'
/home/pp3345/bcompiler-1.0.2/php_bcompiler.c:635: error: 'zend_class_entry' has no member named 'filename'
/home/pp3345/bcompiler-1.0.2/php_bcompiler.c:635: error: 'zend_class_entry' has no member named 'filename'
/home/pp3345/bcompiler-1.0.2/php_bcompiler.c:635: error: 'zend_class_entry' has no member named 'filename'
make: *** [php_bcompiler.lo] Error 1

Under PHP 5.3 it worked fine.


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2012-07-13 17:40 UTC] post at davidsteinsland dot net
I am having the exact same problem, running PHP 5.4.4. on CentOS 6 (64 bit).

Reproduce:
cd /php_bcompiler
phpize
./configure
make
 [2012-08-01 19:01 UTC] roberto at spadim dot com dot br
this happen for php 5.4.5, installing via pecl too


[root@DELL apache]# pecl install bcompiler
downloading bcompiler-1.0.2.tgz ...
Starting to download bcompiler-1.0.2.tgz (57,347 bytes)
..............done: 57,347 bytes
11 source files, building
running: phpize
Configuring for:
PHP Api Version:         20100412
Zend Module Api No:      20100525
Zend Extension Api No:   220100525
building in /tmp/pear/temp/pear-build-rootcALBQB/bcompiler-1.0.2
running: /tmp/pear/temp/bcompiler/configure
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for a sed that does not truncate output... /bin/sed
checking for cc... cc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether cc accepts -g... yes
checking for cc option to accept ISO C89... none needed
checking how to run the C preprocessor... cc -E
checking for icc... no
checking for suncc... no
checking whether cc understands -c and -o together... yes
checking for system library directory... lib
checking if compiler supports -R... no
checking if compiler supports -Wl,-rpath,... yes
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-linux-gnu
checking for PHP prefix... /usr
checking for PHP includes... -I/usr/include/php -I/usr/include/php/main -
I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -
I/usr/include/php/ext/date/lib
checking for PHP extension directory... /usr/lib/php/modules
checking for PHP installed headers prefix... /usr/include/php
checking if debug is enabled... no
checking if zts is enabled... no
checking for re2c... no
configure: WARNING: You will need re2c 0.13.4 or later if you want to regenerate 
PHP parsers.
checking for gawk... gawk
checking whether to enable bcompiler support... yes, shared
checking whether to include debug code in bcompiler (default: no)... no
checking for ld used by cc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for /usr/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/bin/nm -B
checking whether ln -s works... yes
checking how to recognize dependent libraries... pass_all
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking the maximum length of command line arguments... 1572864
checking command to parse /usr/bin/nm -B output from cc object... ok
checking for objdir... .libs
checking for ar... ar
checking for ranlib... ranlib
checking for strip... strip
checking if cc supports -fno-rtti -fno-exceptions... no
checking for cc option to produce PIC... -fPIC
checking if cc PIC flag -fPIC works... yes
checking if cc static flag -static works... yes
checking if cc supports -c -o file.o... yes
checking whether the cc linker (/usr/bin/ld -m elf_x86_64) supports shared 
libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no

creating libtool
appending configuration tag "CXX" to libtool
configure: creating ./config.status
config.status: creating config.h
running: make
/bin/sh /tmp/pear/temp/pear-build-rootcALBQB/bcompiler-1.0.2/libtool --
mode=compile cc  -I. -I/tmp/pear/temp/bcompiler -DPHP_ATOM_INC -
I/tmp/pear/temp/pear-build-rootcALBQB/bcompiler-1.0.2/include -
I/tmp/pear/temp/pear-build-rootcALBQB/bcompiler-1.0.2/main -
I/tmp/pear/temp/bcompiler -I/usr/include/php -I/usr/include/php/main -
I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -
I/usr/include/php/ext/date/lib  -DHAVE_CONFIG_H  -g -O2   -c 
/tmp/pear/temp/bcompiler/php_bcompiler.c -o php_bcompiler.lo
mkdir .libs
 cc -I. -I/tmp/pear/temp/bcompiler -DPHP_ATOM_INC -I/tmp/pear/temp/pear-build-
rootcALBQB/bcompiler-1.0.2/include -I/tmp/pear/temp/pear-build-
rootcALBQB/bcompiler-1.0.2/main -I/tmp/pear/temp/bcompiler -I/usr/include/php -
I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -
I/usr/include/php/ext -I/usr/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c 
/tmp/pear/temp/bcompiler/php_bcompiler.c  -fPIC -DPIC -o .libs/php_bcompiler.o
/tmp/pear/temp/bcompiler/php_bcompiler.c: In function 
'_bcompiler_write_functions_from_file':
/tmp/pear/temp/bcompiler/php_bcompiler.c:468:6: warning: passing argument 1 of 
'apc_serialize_zstring' discards 'const' qualifier from pointer target type 
[enabled by default]
In file included from /tmp/pear/temp/bcompiler/php_bcompiler.c:22:0:
/tmp/pear/temp/bcompiler/php_bcompiler.h:298:6: note: expected 'char *' but 
argument is of type 'const char *'
/tmp/pear/temp/bcompiler/php_bcompiler.c: In function 
'zif_bcompiler_write_file':
/tmp/pear/temp/bcompiler/php_bcompiler.c:574:10: error: 'zend_class_entry' has 
no member named 'filename'
/tmp/pear/temp/bcompiler/php_bcompiler.c:574:24: error: 'zend_class_entry' has 
no member named 'filename'
/tmp/pear/temp/bcompiler/php_bcompiler.c:574:24: error: 'zend_class_entry' has 
no member named 'filename'
/tmp/pear/temp/bcompiler/php_bcompiler.c:574:24: error: 'zend_class_entry' has 
no member named 'filename'
/tmp/pear/temp/bcompiler/php_bcompiler.c:574:24: error: 'zend_class_entry' has 
no member named 'filename'
/tmp/pear/temp/bcompiler/php_bcompiler.c:574:24: error: 'zend_class_entry' has 
no member named 'filename'
/tmp/pear/temp/bcompiler/php_bcompiler.c:574:24: error: 'zend_class_entry' has 
no member named 'filename'
/tmp/pear/temp/bcompiler/php_bcompiler.c:574:24: error: 'zend_class_entry' has 
no member named 'filename'
/tmp/pear/temp/bcompiler/php_bcompiler.c:574:24: error: 'zend_class_entry' has 
no member named 'filename'
/tmp/pear/temp/bcompiler/php_bcompiler.c:574:24: error: 'zend_class_entry' has 
no member named 'filename'
/tmp/pear/temp/bcompiler/php_bcompiler.c:574:24: error: 'zend_class_entry' has 
no member named 'filename'
/tmp/pear/temp/bcompiler/php_bcompiler.c:574:24: error: 'zend_class_entry' has 
no member named 'filename'
/tmp/pear/temp/bcompiler/php_bcompiler.c:574:24: error: 'zend_class_entry' has 
no member named 'filename'
/tmp/pear/temp/bcompiler/php_bcompiler.c:574:24: error: 'zend_class_entry' has 
no member named 'filename'
/tmp/pear/temp/bcompiler/php_bcompiler.c:574:24: error: 'zend_class_entry' has 
no member named 'filename'
/tmp/pear/temp/bcompiler/php_bcompiler.c:574:24: error: 'zend_class_entry' has 
no member named 'filename'
/tmp/pear/temp/bcompiler/php_bcompiler.c:574:24: error: 'zend_class_entry' has 
no member named 'filename'
/tmp/pear/temp/bcompiler/php_bcompiler.c:574:24: error: 'zend_class_entry' has 
no member named 'filename'
/tmp/pear/temp/bcompiler/php_bcompiler.c:574:24: error: 'zend_class_entry' has 
no member named 'filename'
/tmp/pear/temp/bcompiler/php_bcompiler.c:574:24: error: 'zend_class_entry' has 
no member named 'filename'
/tmp/pear/temp/bcompiler/php_bcompiler.c:574:24: error: 'zend_class_entry' has 
no member named 'filename'
/tmp/pear/temp/bcompiler/php_bcompiler.c:581:5: warning: passing argument 4 of 
'apc_serialize_zend_class_entry' discards 'const' qualifier from pointer target 
type [enabled by default]
In file included from /tmp/pear/temp/bcompiler/php_bcompiler.c:22:0:
/tmp/pear/temp/bcompiler/php_bcompiler.h:305:6: note: expected 'char *' but 
argument is of type 'const char *'
/tmp/pear/temp/bcompiler/php_bcompiler.c:635:10: error: 'zend_class_entry' has 
no member named 'filename'
/tmp/pear/temp/bcompiler/php_bcompiler.c:635:24: error: 'zend_class_entry' has 
no member named 'filename'
/tmp/pear/temp/bcompiler/php_bcompiler.c:635:24: error: 'zend_class_entry' has 
no member named 'filename'
/tmp/pear/temp/bcompiler/php_bcompiler.c:635:24: error: 'zend_class_entry' has 
no member named 'filename'
/tmp/pear/temp/bcompiler/php_bcompiler.c:635:24: error: 'zend_class_entry' has 
no member named 'filename'
/tmp/pear/temp/bcompiler/php_bcompiler.c:635:24: error: 'zend_class_entry' has 
no member named 'filename'
/tmp/pear/temp/bcompiler/php_bcompiler.c:635:24: error: 'zend_class_entry' has 
no member named 'filename'
/tmp/pear/temp/bcompiler/php_bcompiler.c:635:24: error: 'zend_class_entry' has 
no member named 'filename'
/tmp/pear/temp/bcompiler/php_bcompiler.c:635:24: error: 'zend_class_entry' has 
no member named 'filename'
/tmp/pear/temp/bcompiler/php_bcompiler.c:635:24: error: 'zend_class_entry' has 
no member named 'filename'
/tmp/pear/temp/bcompiler/php_bcompiler.c:635:24: error: 'zend_class_entry' has 
no member named 'filename'
/tmp/pear/temp/bcompiler/php_bcompiler.c:635:24: error: 'zend_class_entry' has 
no member named 'filename'
/tmp/pear/temp/bcompiler/php_bcompiler.c:635:24: error: 'zend_class_entry' has 
no member named 'filename'
/tmp/pear/temp/bcompiler/php_bcompiler.c:635:24: error: 'zend_class_entry' has 
no member named 'filename'
/tmp/pear/temp/bcompiler/php_bcompiler.c:635:24: error: 'zend_class_entry' has 
no member named 'filename'
/tmp/pear/temp/bcompiler/php_bcompiler.c:635:24: error: 'zend_class_entry' has 
no member named 'filename'
/tmp/pear/temp/bcompiler/php_bcompiler.c:635:24: error: 'zend_class_entry' has 
no member named 'filename'
/tmp/pear/temp/bcompiler/php_bcompiler.c:635:24: error: 'zend_class_entry' has 
no member named 'filename'
/tmp/pear/temp/bcompiler/php_bcompiler.c:635:24: error: 'zend_class_entry' has 
no member named 'filename'
/tmp/pear/temp/bcompiler/php_bcompiler.c:635:24: error: 'zend_class_entry' has 
no member named 'filename'
/tmp/pear/temp/bcompiler/php_bcompiler.c:635:24: error: 'zend_class_entry' has 
no member named 'filename'
make: *** [php_bcompiler.lo] Error 1
ERROR: `make' failed
 [2012-12-14 12:03 UTC] roussel dot nico at gmail dot com
I have the same problem on Raspbmc distribution, do you have any solution ?

.....
running: make
/bin/bash /tmp/pear/temp/pear-build-rootnlvAPa/bcompiler-1.0.2/libtool --mode=compile cc  -I. -I/tmp/pear/temp/bcompiler -DPHP_ATOM_INC -I/tmp/pear/temp/pear-build-rootnlvAPa/bcompiler-1.0.2/include -I/tmp/pear/temp/pear-build-rootnlvAPa/bcompiler-1.0.2/main -I/tmp/pear/temp/bcompiler -I/usr/include/php5 -I/usr/include/php5/main -I/usr/include/php5/TSRM -I/usr/include/php5/Zend -I/usr/include/php5/ext -I/usr/include/php5/ext/date/lib -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64  -DHAVE_CONFIG_H  -g -O2   -c /tmp/pear/temp/bcompiler/php_bcompiler.c -o php_bcompiler.lo
libtool: compile:  cc -I. -I/tmp/pear/temp/bcompiler -DPHP_ATOM_INC -I/tmp/pear/temp/pear-build-rootnlvAPa/bcompiler-1.0.2/include -I/tmp/pear/temp/pear-build-rootnlvAPa/bcompiler-1.0.2/main -I/tmp/pear/temp/bcompiler -I/usr/include/php5 -I/usr/include/php5/main -I/usr/include/php5/TSRM -I/usr/include/php5/Zend -I/usr/include/php5/ext -I/usr/include/php5/ext/date/lib -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DHAVE_CONFIG_H -g -O2 -c /tmp/pear/temp/bcompiler/php_bcompiler.c  -fPIC -DPIC -o .libs/php_bcompiler.o
/tmp/pear/temp/bcompiler/php_bcompiler.c: In function '_bcompiler_write_functions_from_file':
/tmp/pear/temp/bcompiler/php_bcompiler.c:468:6: warning: passing argument 1 of 'apc_serialize_zstring' discards 'const' qualifier from pointer target type [enabled by default]
/tmp/pear/temp/bcompiler/php_bcompiler.h:298:6: note: expected 'char *' but argument is of type 'const char *'
/tmp/pear/temp/bcompiler/php_bcompiler.c: In function 'zif_bcompiler_write_file':
/tmp/pear/temp/bcompiler/php_bcompiler.c:574:10: error: 'zend_class_entry' has no member named 'filename'
/tmp/pear/temp/bcompiler/php_bcompiler.c:574:24: error: 'zend_class_entry' has no member named 'filename'
/tmp/pear/temp/bcompiler/php_bcompiler.c:574:24: error: 'zend_class_entry' has no member named 'filename'
/tmp/pear/temp/bcompiler/php_bcompiler.c:574:24: error: 'zend_class_entry' has no member named 'filename'
/tmp/pear/temp/bcompiler/php_bcompiler.c:574:24: error: 'zend_class_entry' has no member named 'filename'
/tmp/pear/temp/bcompiler/php_bcompiler.c:574:24: error: 'zend_class_entry' has no member named 'filename'
/tmp/pear/temp/bcompiler/php_bcompiler.c:574:24: error: 'zend_class_entry' has no member named 'filename'
/tmp/pear/temp/bcompiler/php_bcompiler.c:574:24: error: 'zend_class_entry' has no member named 'filename'
/tmp/pear/temp/bcompiler/php_bcompiler.c:574:24: error: 'zend_class_entry' has no member named 'filename'
/tmp/pear/temp/bcompiler/php_bcompiler.c:574:24: error: 'zend_class_entry' has no member named 'filename'
/tmp/pear/temp/bcompiler/php_bcompiler.c:574:24: error: 'zend_class_entry' has no member named 'filename'
/tmp/pear/temp/bcompiler/php_bcompiler.c:574:24: error: 'zend_class_entry' has no member named 'filename'
/tmp/pear/temp/bcompiler/php_bcompiler.c:574:24: error: 'zend_class_entry' has no member named 'filename'
/tmp/pear/temp/bcompiler/php_bcompiler.c:574:24: error: 'zend_class_entry' has no member named 'filename'
/tmp/pear/temp/bcompiler/php_bcompiler.c:574:24: error: 'zend_class_entry' has no member named 'filename'
/tmp/pear/temp/bcompiler/php_bcompiler.c:574:24: error: 'zend_class_entry' has no member named 'filename'
/tmp/pear/temp/bcompiler/php_bcompiler.c:574:24: error: 'zend_class_entry' has no member named 'filename'
/tmp/pear/temp/bcompiler/php_bcompiler.c:574:24: error: 'zend_class_entry' has no member named 'filename'
/tmp/pear/temp/bcompiler/php_bcompiler.c:574:24: error: 'zend_class_entry' has no member named 'filename'
/tmp/pear/temp/bcompiler/php_bcompiler.c:574:24: error: 'zend_class_entry' has no member named 'filename'
/tmp/pear/temp/bcompiler/php_bcompiler.c:574:24: error: 'zend_class_entry' has no member named 'filename'
/tmp/pear/temp/bcompiler/php_bcompiler.c:581:5: warning: passing argument 4 of 'apc_serialize_zend_class_entry' discards 'const' qualifier from pointer target type [enabled by default]
/tmp/pear/temp/bcompiler/php_bcompiler.h:305:6: note: expected 'char *' but argument is of type 'const char *'
/tmp/pear/temp/bcompiler/php_bcompiler.c:635:10: error: 'zend_class_entry' has no member named 'filename'
/tmp/pear/temp/bcompiler/php_bcompiler.c:635:24: error: 'zend_class_entry' has no member named 'filename'
/tmp/pear/temp/bcompiler/php_bcompiler.c:635:24: error: 'zend_class_entry' has no member named 'filename'
/tmp/pear/temp/bcompiler/php_bcompiler.c:635:24: error: 'zend_class_entry' has no member named 'filename'
/tmp/pear/temp/bcompiler/php_bcompiler.c:635:24: error: 'zend_class_entry' has no member named 'filename'
/tmp/pear/temp/bcompiler/php_bcompiler.c:635:24: error: 'zend_class_entry' has no member named 'filename'
/tmp/pear/temp/bcompiler/php_bcompiler.c:635:24: error: 'zend_class_entry' has no member named 'filename'
/tmp/pear/temp/bcompiler/php_bcompiler.c:635:24: error: 'zend_class_entry' has no member named 'filename'
/tmp/pear/temp/bcompiler/php_bcompiler.c:635:24: error: 'zend_class_entry' has no member named 'filename'
/tmp/pear/temp/bcompiler/php_bcompiler.c:635:24: error: 'zend_class_entry' has no member named 'filename'
/tmp/pear/temp/bcompiler/php_bcompiler.c:635:24: error: 'zend_class_entry' has no member named 'filename'
/tmp/pear/temp/bcompiler/php_bcompiler.c:635:24: error: 'zend_class_entry' has no member named 'filename'
/tmp/pear/temp/bcompiler/php_bcompiler.c:635:24: error: 'zend_class_entry' has no member named 'filename'
/tmp/pear/temp/bcompiler/php_bcompiler.c:635:24: error: 'zend_class_entry' has no member named 'filename'
/tmp/pear/temp/bcompiler/php_bcompiler.c:635:24: error: 'zend_class_entry' has no member named 'filename'
/tmp/pear/temp/bcompiler/php_bcompiler.c:635:24: error: 'zend_class_entry' has no member named 'filename'
/tmp/pear/temp/bcompiler/php_bcompiler.c:635:24: error: 'zend_class_entry' has no member named 'filename'
/tmp/pear/temp/bcompiler/php_bcompiler.c:635:24: error: 'zend_class_entry' has no member named 'filename'
/tmp/pear/temp/bcompiler/php_bcompiler.c:635:24: error: 'zend_class_entry' has no member named 'filename'
/tmp/pear/temp/bcompiler/php_bcompiler.c:635:24: error: 'zend_class_entry' has no member named 'filename'
/tmp/pear/temp/bcompiler/php_bcompiler.c:635:24: error: 'zend_class_entry' has no member named 'filename'
make: *** [php_bcompiler.lo] Error 1
ERROR: `make' failed
root@raspbmc:~# cd /tmp/pear/temp/bcompiler/
-bash: cd: /tmp/pear/temp/bcompiler/: No such file or directory
root@raspbmc:~# phpize
Cannot find config.m4.
Make sure that you run '/usr/bin/phpize' in the top level source directory of the module

root@raspbmc:~# cd /usr/bin/phpize
-bash: cd: /usr/bin/phpize: Not a directory
 [2013-01-14 09:22 UTC] jandanson at soloeurope dot com
Please, can someone fix this and mark as duplicate of issue #60618
 [2013-01-14 09:56 UTC] alan_k@php.net
-Status: Open +Status: Duplicate
 [2013-01-14 09:56 UTC] alan_k@php.net
dupe of  #60618
 [2013-05-24 19:38 UTC] wiixajax at gmail dot com
phpize ok
./configure ok

but make   ...like
↓↓↓↓↓

c:574:10: error: 'zend_class_entry' has no member named 'filename'
 [2013-06-18 16:30 UTC] vahidhwp at gmail dot com
Hi,
Try to compile PHP 5.3 from http://php.net/downloads.php . The bcompiler package didn't work with PHP 5.4 package.

and here is the complete solution:

Install php 5.3.26

Intall BCompiler1.0.9 from source code on ubuntu 12.10:
1-download latest version from http://pecl.php.net/package/bcompiler
2- extract archive: # tar xzvf bcompiler-1.0.2.tgz
3- # cd bcompiler-1.0.2
4- # type php : php is hashed (/usr/local/bin/php)
5- # export PHP_PREFIX=/usr/local/bin/php
6- # phpize
7- #  ./configure --enable-bcompiler
8- # make
9- # make test
10-# make install
11-# sudo gedit /etc/php5/apache2/php.ini
12- add last to line and close: extension=bcompiler.so
13-# service apache2 restart
14- make a test.php containing: <?php phpinfo();?> and check bcompiler extension

Best Regards
Vahid Moslemi
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed Apr 24 06:01:29 2024 UTC