php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #57018 Doesn't build
Submitted: 2006-05-17 04:22 UTC Modified: 2017-04-01 20:08 UTC
Votes:1
Avg. Score:1.0 ± 0.0
Reproduced:0 of 0 (0.0%)
From: jan at horde dot org Assigned:
Status: Wont fix Package: ffi (PECL)
PHP Version: 5_1 CVS-2006-05-17 OS: Linux
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2006-05-17 04:22 UTC] jan at horde dot org
Description:
------------
The extension is not being build at the moment.

Reproduce code:
---------------
pecl install ffi-alpha

Actual result:
--------------
downloading ffi-0.3.tgz ...
Starting to download ffi-0.3.tgz (107,303 bytes)
.........................done: 107,303 bytes
62 source files, building
running: phpize
Configuring for:
PHP Api Version:         20041225
Zend Module Api No:      20050922
Zend Extension Api No:   220051025
building in /var/tmp/pear-build-root/ffi-0.3
running: /tmp/tmpUZ8W5z/ffi-0.3/configure
checking for egrep... grep -E
checking for a sed that does not truncate output... /usr/bin/sed
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking whether gcc and cc understand -c and -o together... yes
checking if compiler supports -R... no
checking if compiler supports -Wl,-rpath,... yes
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking for PHP prefix... /usr/local/apache/php
checking for PHP includes... -I/usr/local/apache/php/include/php -I/usr/local/apache/php/include/php/main -I/usr/local/apache/php/include/php/TSRM -I/usr/local/apache/php/include/php/Zend -I/usr/local/apache/php/include/php/ext
checking for PHP extension directory... /usr/local/apache/php/lib/php/extensions/debug-non-zts-20050922
checking for PHP installed headers prefix... /usr/local/apache/php/include/php
checking for re2c... no
configure: WARNING: You will need re2c 0.9.11 or later if you want to regenerate PHP parsers.
checking for gawk... gawk
checking for ffi support... yes, shared
checking how to run the C preprocessor... gcc -E
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 for short... yes
checking size of short... 2
checking for int... yes
checking size of int... 4
checking for long... yes
checking size of long... 4
checking for long long... yes
checking size of long long... 8
checking for float... yes
checking size of float... 4
checking for double... yes
checking size of double... 8
checking for long double... yes
checking size of long double... 12
checking for void *... yes
checking size of void *... 4
checking for ld used by gcc... /usr/i586-suse-linux/bin/ld
checking if the linker (/usr/i586-suse-linux/bin/ld) is GNU ld... yes
checking for /usr/i586-suse-linux/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 recognise dependent libraries... pass_all
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking how to run the C++ preprocessor... g++ -E
checking the maximum length of command line arguments... 32768
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for objdir... .libs
checking for ar... ar
checking for ranlib... ranlib
checking for strip... strip
checking if gcc static flag  works... yes
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC
checking if gcc PIC flag -fPIC works... yes
checking if gcc supports -c -o file.o... yes
checking whether the gcc linker (/usr/i586-suse-linux/bin/ld) 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
checking for ld used by g++... /usr/i586-suse-linux/bin/ld
checking if the linker (/usr/i586-suse-linux/bin/ld) is GNU ld... yes
checking whether the g++ linker (/usr/i586-suse-linux/bin/ld) supports shared libraries... yes
checking for g++ option to produce PIC... -fPIC
checking if g++ PIC flag -fPIC works... yes
checking if g++ supports -c -o file.o... yes
checking whether the g++ linker (/usr/i586-suse-linux/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
configure: creating ./config.status
config.status: creating config.h
running: make
/bin/sh /var/tmp/pear-build-root/ffi-0.3/libtool --mode=compile gcc -I/tmp/tmpUZ8W5z/ffi-0.3/libffi/include -I. -I/tmp/tmpUZ8W5z/ffi-0.3 -DPHP_ATOM_INC -I/var/tmp/pear-build-root/ffi-0.3/include -I/var/tmp/pear-build-root/ffi-0.3/main -I/tmp/tmpUZ8W5z/ffi-0.3 -I/usr/local/apache/php/include/php -I/usr/local/apache/php/include/php/main -I/usr/local/apache/php/include/php/TSRM -I/usr/local/apache/php/include/php/Zend -I/usr/local/apache/php/include/php/ext  -DHAVE_CONFIG_H  -g -O2   -c /tmp/tmpUZ8W5z/ffi-0.3/php_ffi.c -o php_ffi.lo
mkdir .libs
 gcc -I/tmp/tmpUZ8W5z/ffi-0.3/libffi/include -I. -I/tmp/tmpUZ8W5z/ffi-0.3 -DPHP_ATOM_INC -I/var/tmp/pear-build-root/ffi-0.3/include -I/var/tmp/pear-build-root/ffi-0.3/main -I/tmp/tmpUZ8W5z/ffi-0.3 -I/usr/local/apache/php/include/php -I/usr/local/apache/php/include/php/main -I/usr/local/apache/php/include/php/TSRM -I/usr/local/apache/php/include/php/Zend -I/usr/local/apache/php/include/php/ext -DHAVE_CONFIG_H -g -O2 -c /tmp/tmpUZ8W5z/ffi-0.3/php_ffi.c  -fPIC -DPIC -o .libs/php_ffi.o
/bin/sh /var/tmp/pear-build-root/ffi-0.3/libtool --mode=compile gcc -I/tmp/tmpUZ8W5z/ffi-0.3/libffi/include -I. -I/tmp/tmpUZ8W5z/ffi-0.3 -DPHP_ATOM_INC -I/var/tmp/pear-build-root/ffi-0.3/include -I/var/tmp/pear-build-root/ffi-0.3/main -I/tmp/tmpUZ8W5z/ffi-0.3 -I/usr/local/apache/php/include/php -I/usr/local/apache/php/include/php/main -I/usr/local/apache/php/include/php/TSRM -I/usr/local/apache/php/include/php/Zend -I/usr/local/apache/php/include/php/ext  -DHAVE_CONFIG_H  -g -O2   -c /tmp/tmpUZ8W5z/ffi-0.3/ffi_struct.c -o ffi_struct.lo
 gcc -I/tmp/tmpUZ8W5z/ffi-0.3/libffi/include -I. -I/tmp/tmpUZ8W5z/ffi-0.3 -DPHP_ATOM_INC -I/var/tmp/pear-build-root/ffi-0.3/include -I/var/tmp/pear-build-root/ffi-0.3/main -I/tmp/tmpUZ8W5z/ffi-0.3 -I/usr/local/apache/php/include/php -I/usr/local/apache/php/include/php/main -I/usr/local/apache/php/include/php/TSRM -I/usr/local/apache/php/include/php/Zend -I/usr/local/apache/php/include/php/ext -DHAVE_CONFIG_H -g -O2 -c /tmp/tmpUZ8W5z/ffi-0.3/ffi_struct.c  -fPIC -DPIC -o .libs/ffi_struct.o
/tmp/tmpUZ8W5z/ffi-0.3/ffi_struct.c:29:39: error: Zend/zend_default_classes.h: No such file or directory
/tmp/tmpUZ8W5z/ffi-0.3/ffi_struct.c:291: warning: initialization from incompatible pointer type
/tmp/tmpUZ8W5z/ffi-0.3/ffi_struct.c:293: warning: initialization from incompatible pointer type
/tmp/tmpUZ8W5z/ffi-0.3/ffi_struct.c:303: warning: initialization from incompatible pointer type
/tmp/tmpUZ8W5z/ffi-0.3/ffi_struct.c: In function ?php_ffi_struct_object_new?:
/tmp/tmpUZ8W5z/ffi-0.3/ffi_struct.c:347: warning: passing argument 3 of ?zend_objects_store_put? from incompatible pointer type
/tmp/tmpUZ8W5z/ffi-0.3/ffi_struct.c:347: error: too few arguments to function ?zend_objects_store_put?
/tmp/tmpUZ8W5z/ffi-0.3/ffi_struct.c: In function ?php_ffi_native_to_zval?:
/tmp/tmpUZ8W5z/ffi-0.3/ffi_struct.c:492: warning: passing argument 3 of ?zend_objects_store_put? from incompatible pointer type
/tmp/tmpUZ8W5z/ffi-0.3/ffi_struct.c:492: error: too few arguments to function ?zend_objects_store_put?
make: *** [ffi_struct.lo] Error 1
ERROR: `make' failed


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2007-03-28 14:17 UTC] vlal at ideay dot net dot ni
Hi All

I have teh same problem

Hi All,

I have problems installing FFI, I am using PECL on Linux FEdora Core 6 Box, the erros is:

# pecl install http://pecl.php.net/get/ffi-0.3.tgz
downloading ffi-0.3.tgz ...
Starting to download ffi-0.3.tgz (107,303 bytes)
..............done: 107,303 bytes
62 source files, building
running: phpize
Configuring for:
PHP Api Version:         20041225
Zend Module Api No:      20060613
Zend Extension Api No:   220060519
building in /var/tmp/pear-build-root/ffi-0.3
running: /tmp/pear/cache/ffi-0.3/configure
checking for egrep... grep -E
checking for a sed that does not truncate output... /bin/sed
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking whether gcc and cc understand -c and -o together... yes
checking if compiler supports -R... no
checking if compiler supports -Wl,-rpath,... yes
checking build system type... i686-redhat-linux-gnu
checking host system type... i686-redhat-linux-gnu
checking target system type... i686-redhat-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 for re2c... no
configure: WARNING: You will need re2c 0.9.11 or later if you want to regenerate PHP parsers.
checking for gawk... gawk
checking for ffi support... yes, shared
checking how to run the C preprocessor... gcc -E
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 for short... yes
checking size of short... 2
checking for int... yes
checking size of int... 4
checking for long... yes
checking size of long... 4
checking for long long... yes
checking size of long long... 8
checking for float... yes
checking size of float... 4
checking for double... yes
checking size of double... 8
checking for long double... yes
checking size of long double... 12
checking for void *... yes
checking size of void *... 4
checking for ld used by gcc... /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 recognise dependent libraries... pass_all
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking how to run the C++ preprocessor... g++ -E
checking for g77... no
checking for f77... no
checking for xlf... no
checking for frt... no
checking for pgf77... no
checking for fort77... no
checking for fl32... no
checking for af77... no
checking for f90... no
checking for xlf90... no
checking for pgf90... no
checking for epcf90... no
checking for f95... f95
checking whether we are using the GNU Fortran 77 compiler... yes
checking whether f95 accepts -g... yes
checking the maximum length of command line arguments... 32768
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for objdir... .libs
checking for ar... ar
checking for ranlib... ranlib
checking for strip... strip
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC
checking if gcc PIC flag -fPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking whether the gcc linker (/usr/bin/ld) 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
configure: creating libtool
appending configuration tag "CXX" to libtool
checking for ld used by g++... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes
checking for g++ option to produce PIC... -fPIC
checking if g++ PIC flag -fPIC works... yes
checking if g++ static flag -static works... yes
checking if g++ supports -c -o file.o... yes
checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
appending configuration tag "F77" to libtool
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
checking for f95 option to produce PIC... -fPIC
checking if f95 PIC flag -fPIC works... yes
checking if f95 static flag -static works... yes
checking if f95 supports -c -o file.o... yes
checking whether the f95 linker (/usr/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
configure: creating ./config.status
config.status: creating config.h
running: make
/bin/sh /var/tmp/pear-build-root/ffi-0.3/libtool --mode=compile gcc -I/tmp/pear/cache/ffi-0.3/libffi/include -I. -I/tmp/pear/cache/ffi-0.3 -DPHP_ATOM_INC -I/var/tmp/pear-build-root/ffi-0.3/include -I/var/tmp/pear-build-root/ffi-0.3/main -I/tmp/pear/cache/ffi-0.3 -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/cache/ffi-0.3/php_ffi.c -o php_ffi.lo
mkdir .libs
 gcc -I/tmp/pear/cache/ffi-0.3/libffi/include -I. -I/tmp/pear/cache/ffi-0.3 -DPHP_ATOM_INC -I/var/tmp/pear-build-root/ffi-0.3/include -I/var/tmp/pear-build-root/ffi-0.3/main -I/tmp/pear/cache/ffi-0.3 -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/cache/ffi-0.3/php_ffi.c  -fPIC -DPIC -o .libs/php_ffi.o
/bin/sh /var/tmp/pear-build-root/ffi-0.3/libtool --mode=compile gcc -I/tmp/pear/cache/ffi-0.3/libffi/include -I. -I/tmp/pear/cache/ffi-0.3 -DPHP_ATOM_INC -I/var/tmp/pear-build-root/ffi-0.3/include -I/var/tmp/pear-build-root/ffi-0.3/main -I/tmp/pear/cache/ffi-0.3 -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/cache/ffi-0.3/ffi_struct.c -o ffi_struct.lo
 gcc -I/tmp/pear/cache/ffi-0.3/libffi/include -I. -I/tmp/pear/cache/ffi-0.3 -DPHP_ATOM_INC -I/var/tmp/pear-build-root/ffi-0.3/include -I/var/tmp/pear-build-root/ffi-0.3/main -I/tmp/pear/cache/ffi-0.3 -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/cache/ffi-0.3/ffi_struct.c  -fPIC -DPIC -o .libs/ffi_struct.o
/tmp/pear/cache/ffi-0.3/ffi_struct.c:29:39: error: Zend/zend_default_classes.h: No such file or directory
/tmp/pear/cache/ffi-0.3/ffi_struct.c:291: warning: initialization from incompatible pointer type
/tmp/pear/cache/ffi-0.3/ffi_struct.c:293: warning: initialization from incompatible pointer type
/tmp/pear/cache/ffi-0.3/ffi_struct.c:303: warning: initialization from incompatible pointer type
/tmp/pear/cache/ffi-0.3/ffi_struct.c:310: warning: initialization from incompatible pointer type
/tmp/pear/cache/ffi-0.3/ffi_struct.c: In function 'php_ffi_struct_object_new':
/tmp/pear/cache/ffi-0.3/ffi_struct.c:347: warning: passing argument 3 of 'zend_objects_store_put' from incompatible pointer type
/tmp/pear/cache/ffi-0.3/ffi_struct.c:347: error: too few arguments to function 'zend_objects_store_put'
/tmp/pear/cache/ffi-0.3/ffi_struct.c: In function 'php_ffi_native_to_zval':
/tmp/pear/cache/ffi-0.3/ffi_struct.c:492: warning: passing argument 3 of 'zend_objects_store_put' from incompatible pointer type
/tmp/pear/cache/ffi-0.3/ffi_struct.c:492: error: too few arguments to function 'zend_objects_store_put'
make: *** [ffi_struct.lo] Error 1
ERROR: `make' failed

I need help

Thanks in advanced
Regards
 [2008-04-08 07:16 UTC] acidas at gmail dot com
Same at Debian by compiling from sources, with preconfigured ffi:

/php-5.2.5/ext/ffi/ffi_struct.c:29:39: error: Zend/zend_default_classes.h: No such file or directory
/php-5.2.5/ext/ffi/ffi_struct.c:291: warning: initialization from incompatible pointer type
/php-5.2.5/ext/ffi/ffi_struct.c:293: warning: initialization from incompatible pointer type
/php-5.2.5/ext/ffi/ffi_struct.c:303: warning: initialization from incompatible pointer type
/php-5.2.5/ext/ffi/ffi_struct.c:310: warning: initialization from incompatible pointer type
/php-5.2.5/ext/ffi/ffi_struct.c: In function 'php_ffi_struct_object_new':
/php-5.2.5/ext/ffi/ffi_struct.c:347: warning: passing argument 3 of 'zend_objects_store_put' from incompatible pointer type
/php-5.2.5/ext/ffi/ffi_struct.c:347: error: too few arguments to function 'zend_objects_store_put'
/php-5.2.5/ext/ffi/ffi_struct.c: In function 'php_ffi_native_to_zval':
/php-5.2.5/ext/ffi/ffi_struct.c:492: warning: passing argument 3 of 'zend_objects_store_put' from incompatible pointer type
/php-5.2.5/ext/ffi/ffi_struct.c:492: error: too few arguments to function 'zend_objects_store_put'
make: *** [ext/ffi/ffi_struct.lo] Error 1
 [2010-09-06 05:45 UTC] djancelo at libero dot it
Same error. Please fix that!

/root/ffi-0.3/ffi_struct.c:29:39: error: Zend/zend_default_classes.h: No such file or directory
/root/ffi-0.3/ffi_struct.c:291: warning: initialization from incompatible pointer type
/root/ffi-0.3/ffi_struct.c:293: warning: initialization from incompatible pointer type
/root/ffi-0.3/ffi_struct.c:303: warning: initialization from incompatible pointer type
/root/ffi-0.3/ffi_struct.c:310: warning: initialization from incompatible pointer type
/root/ffi-0.3/ffi_struct.c: In function ?php_ffi_struct_object_new?:
/root/ffi-0.3/ffi_struct.c:347: warning: passing argument 3 of ?zend_objects_store_put? from incompatible pointer type
/root/ffi-0.3/ffi_struct.c:347: error: too few arguments to function ?zend_objects_store_put?
/root/ffi-0.3/ffi_struct.c: In function ?php_ffi_native_to_zval?:
/root/ffi-0.3/ffi_struct.c:492: warning: passing argument 3 of ?zend_objects_store_put? from incompatible pointer type
/root/ffi-0.3/ffi_struct.c:492: error: too few arguments to function ?zend_objects_store_put?
make: *** [ffi_struct.lo] Error 1
 [2017-04-01 20:08 UTC] tpunt@php.net
-Status: Open +Status: Wont fix
 [2017-04-01 20:08 UTC] tpunt@php.net
Due to this extension not seeing any activity since 2004, this issue will not be fixed. We are therefore closing this now.
 
PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Mon Jul 06 20:01:04 2020 UTC