php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #70725 Symbol not found: _accel_move_code_to_huge_pages
Submitted: 2015-10-16 08:11 UTC Modified: 2015-10-16 10:45 UTC
From: doub1e dot 31415 at gmail dot com Assigned:
Status: Duplicate Package: opcache
PHP Version: 7.0.0RC5 OS: MacOSX 10.10.5
Private report: No CVE-ID: None
 [2015-10-16 08:11 UTC] doub1e dot 31415 at gmail dot com
Description:
------------
I compiled PHP 7.0.0RC5 through php-build, and it ended successely.
But then, I tried to execute "php -v", it not work and following error messages are displayed.

So I checked source files in github/php-src, I found a file that may contained "include" code with wrong path.
The patch I'll send is one about it.

I searched reports alike before writing this, if it duplicated, I'll apologize for it.

Test script:
---------------
php -v

Expected result:
----------------
PHP 7.0.0RC5 (cli) (built: Oct 15 2015 12:29:04) ( NTS )
Copyright (c) 1997-2015 The PHP Group
Zend Engine v3.0.0-dev, Copyright (c) 1998-2015 Zend Technologies

Actual result:
--------------
dyld: lazy symbol binding failed: Symbol not found: _accel_move_code_to_huge_pages
  Referenced from: /Users/t308/.phpenv/versions/7.0.0RC5/lib/php/extensions/no-debug-non-zts-20151012/opcache.so
  Expected in: flat namespace

dyld: Symbol not found: _accel_move_code_to_huge_pages
  Referenced from: /Users/t308/.phpenv/versions/7.0.0RC5/lib/php/extensions/no-debug-non-zts-20151012/opcache.so
  Expected in: flat namespace

[1]    25542 trace trap

Patches

ext_opcache_ZendAccelerator.patch (last revision 2015-10-16 08:11 UTC) by doub1e dot 31415 at gmail dot com)

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2015-10-16 10:45 UTC] requinix@php.net
-Status: Open +Status: Duplicate
 [2015-10-16 10:45 UTC] requinix@php.net
Actually bug #70724 came in 24 minutes before yours :D
 [2016-02-14 18:25 UTC] volkanaltan+php at gmail dot com
I have used brew to install php 7 and opcache of extensions
My case is;
PHP 7.0.3 on Mac OS X 10.11.3, xcode 7.2.1

Test script:
---------------
<?php
echo 1;

Expected result:
----------------
1

php test-script.php
dyld: lazy symbol binding failed: Symbol not found: _zend_file_cache_script_load
  Referenced from: /usr/local/opt/php70-opcache/opcache.so
  Expected in: flat namespace

dyld: Symbol not found: _zend_file_cache_script_load
  Referenced from: /usr/local/opt/php70-opcache/opcache.so
  Expected in: flat namespace

[1]    74410 trace trap  php test-script.php


opcache.ini ;
opcache.enable = 1
opcache.enable_cli = 1
opcache.file_cache=/var/tmp/php/opcache
opcache.file_cache_only=1
opcache.file_cache_consistency_checks=1

if I set opcache.file_cache_only is 0, it'is working.
 
PHP Copyright © 2001-2017 The PHP Group
All rights reserved.
Last updated: Sun Nov 19 01:31:42 2017 UTC