Edit report at https://bugs.php.net/bug.php?id=66103&edit=1
ID: 66103
Comment by: bos at je-eigen-domein dot nl
Reported by: rmarku at gmail dot com
Summary: Cross-compiling not supported
Status: Open
Type: Bug
Package: opcache
Operating System: Linux
PHP Version: 5.5.6
Block user comment: N
Private report: N
New Comment:
Same problem.
In ZendAccelerator.h it looks for the presence of other defines such as __linux__ first to determine
flock order, in favor of the results of the test (HAVE_FLOCK_LINUX)
So why is not being able to run the test fatal?
==
# if defined(__FreeBSD__) || defined(__FreeBSD_kernel__) || (defined(__APPLE__) &&
defined(__MACH__)/* Darwin */) || defined(__OpenBSD__) || defined(__NetBSD__)
# define FLOCK_STRUCTURE(name, type, whence, start, len) \
struct flock name = {start, len, -1, type, whence}
# elif defined(__svr4__)
# define FLOCK_STRUCTURE(name, type, whence, start, len) \
struct flock name = {type, whence, start, len}
# elif defined(__linux__) || defined(__hpux) || defined(__GNU__)
# define FLOCK_STRUCTURE(name, type, whence, start, len) \
struct flock name = {type, whence, start, len, 0}
# elif defined(_AIX)
# if defined(_LARGE_FILES) || defined(__64BIT__)
# define FLOCK_STRUCTURE(name, type, whence, start, len) \
struct flock name = {type, whence, 0, 0, 0, start, len }
# else
# define FLOCK_STRUCTURE(name, type, whence, start, len) \
struct flock name = {type, whence, start, len}
# endif
# elif defined(HAVE_FLOCK_BSD)
# define FLOCK_STRUCTURE(name, type, whence, start, len) \
struct flock name = {start, len, -1, type, whence}
# elif defined(HAVE_FLOCK_LINUX)
# define FLOCK_STRUCTURE(name, type, whence, start, len) \
struct flock name = {type, whence, start, len}
# else
# error "Don't know how to define struct flock"
# endif
#endif
==
Previous Comments:
------------------------------------------------------------------------
[2013-12-09 15:38:31] hdboeve at boevewebdevelopment dot nl
Same error, on OS X Mavericks:
checking for sysvipc shared memory support... no
checking for mmap() using MAP_ANON shared memory support... no
checking for mmap() using /dev/zero shared memory support... no
checking for mmap() using shm_open() shared memory support... no
checking for mmap() using regular file shared memory support... no
checking "whether flock struct is linux ordered"... "no"
checking "whether flock struct is BSD ordered"... "no"
configure: error: Don't know how to define struct flock on this system, set --enable-opcache=no
------------------------------------------------------------------------
[2013-11-15 20:13:32] rmarku at gmail dot com
Description:
------------
Cross-compiling not supported
I'm trying to cross-compile PHP 5.5.6 with OpenWRT buildroot. If I disable OPcache, everything
goes well.
with OPcache enabled, configure hangs with this error.
...
checking for mcrypt_module_open in -lmcrypt... yes
checking for MSSQL support via FreeTDS... no
checking for MySQL support... yes, shared
checking for specified location of the MySQL UNIX socket... no
checking for mysql_close in -lmysqlclient... yes
checking for MySQL UNIX socket location... no
checking for MySQLi support... yes, shared
checking whether to enable embedded MySQLi support... no
checking for mysql_set_server_option in -lmysqlclient... yes
checking for mysql_set_character_set in -lmysqlclient... yes
checking for mysql_stmt_next_result in -lmysqlclient... no
checking for Oracle Database OCI8 support... no
checking whether to enable Zend OPcache support... yes
checking for mprotect... yes
checking for sysvipc shared memory support... no
checking for mmap() using MAP_ANON shared memory support... no
checking for mmap() using /dev/zero shared memory support... no
checking for mmap() using shm_open() shared memory support... no
checking for mmap() using regular file shared memory support... no
checking "whether flock struct is linux ordered"... configure: error: in
`/openwrt/trunk/build_dir/target-mips_34kc_uClibc-0.9.33.2/php-5.5.6':
configure: error: cannot run test program while cross compiling
See `config.log' for more details
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=66103&edit=1