php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #81709 just trying to get memcache loading with php/wordpress
Submitted: 2022-02-05 22:23 UTC Modified: 2022-02-06 16:48 UTC
From: paul at scom dot ca Assigned:
Status: Not a bug Package: Compile Failure
PHP Version: 7.4.27 OS: freebsd 12.0
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: paul at scom dot ca
New email:
PHP Version: OS:

 

 [2022-02-05 22:23 UTC] paul at scom dot ca
Description:
------------
[17:17:39] www.scom.ca [root:0] /usr/local/src/net/php-extentions/memcache-4.0.5.2
# phpize
Configuring for:
PHP Api Version:         20190902
Zend Module Api No:      20190902
Zend Extension Api No:   320190902

[17:17:46] www.scom.ca [root:0] /usr/local/src/net/php-extentions/memcache-4.0.5.2
# ./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... /usr/local/bin/gsed
checking for pkg-config... /usr/local/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
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 for system library directory... lib
checking if compiler supports -R... no
checking if compiler supports -Wl,-rpath,... yes
checking build system type... amd64-unknown-freebsd12.1
checking host system type... amd64-unknown-freebsd12.1
checking target system type... amd64-unknown-freebsd12.1
checking for PHP prefix... /usr/local
checking for PHP includes... -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib
checking for PHP extension directory... /usr/local/lib/php/20190902-zts
checking for PHP installed headers prefix... /usr/local/include/php
checking if debug is enabled... no
checking if zts is enabled... yes
checking for gawk... no
checking for nawk... nawk
checking if nawk is broken... no
checking whether to enable memcache support... yes, shared
checking whether to enable memcache session handler support... yes
checking for the location of ZLIB... no
checking for the location of zlib... /usr
checking PHP version... PHP 7.x
checking for session includes... /usr/local/include/php
checking for memcache session support... enabled
checking for a sed that does not truncate output... /usr/local/bin/gsed
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/local/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... 196608
checking command to parse /usr/local/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... yes
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) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... freebsd12.1 ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... no
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: patching config.h.in
configure: creating ./config.status
config.status: creating config.h
config.status: config.h is unchanged

[17:17:53] www.scom.ca [root:0] /usr/local/src/net/php-extentions/memcache-4.0.5.2
# gmake
/bin/sh /usr/local/src/net/php-extentions/memcache-4.0.5.2/libtool --mode=compile cc -I/usr/local/include/php -I. -I/usr/local/src/net/php-extentions/memcache-4.0.5.2 -DPHP_ATOM_INC -I/usr/local/src/net/php-extentions/memcache-4.0.5.2/include -I/usr/local/src/net/php-extentions/memcache-4.0.5.2/main -I/usr/local/src/net/php-extentions/memcache-4.0.5.2 -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib  -DHAVE_CONFIG_H  -g -O2   -c /usr/local/src/net/php-extentions/memcache-4.0.5.2/php7/memcache.c -o php7/memcache.lo 
mkdir php7/.libs
 cc -I/usr/local/include/php -I. -I/usr/local/src/net/php-extentions/memcache-4.0.5.2 -DPHP_ATOM_INC -I/usr/local/src/net/php-extentions/memcache-4.0.5.2/include -I/usr/local/src/net/php-extentions/memcache-4.0.5.2/main -I/usr/local/src/net/php-extentions/memcache-4.0.5.2 -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /usr/local/src/net/php-extentions/memcache-4.0.5.2/php7/memcache.c  -fPIC -DPIC -o php7/.libs/memcache.o
In file included from /usr/local/src/net/php-extentions/memcache-4.0.5.2/php7/memcache.c:26:
In file included from /usr/local/include/php/main/php.h:33:
In file included from /usr/local/include/php/Zend/zend.h:27:
In file included from /usr/local/include/php/Zend/zend_types.h:25:
In file included from /usr/local/include/php/Zend/zend_portability.h:43:
In file included from /usr/local/include/php/Zend/zend_config.h:1:
/usr/local/include/php/main/../main/php_config.h:2372:10: fatal error: 'ext/php_config.h' file not found
#include <ext/php_config.h>
         ^~~~~~~~~~~~~~~~~~
1 error generated.
gmake: *** [Makefile:192: php7/memcache.lo] Error 1

[17:17:57] www.scom.ca [root:0] /usr/local/src/net/php-extentions/memcache-4.0.5.2


www-1       02-05 16:44:01 {php-logging}    [72508] (809989044) [05-Feb-2022 21:44:01 UTC] PHP Warning:  PHP
                                                    Startup: Unable to load dynamic library 'memcache'
                                                    (tried: /usr/local/lib/php/20190902/memcache (Cannot
                                                    open "/usr/local/lib/php/20190902/memcache"),
                                                    /usr/local/lib/php/20190902/memcache.so
                                                    (/usr/local/lib/php/20190902/memcache.so: Undefined
                                                    symbol "executor_globals_offset")) in Unknown on line 0

www-1       02-05 16:31:15 {php-logging}    [53604] (809980041) [05-Feb-2022 21:31:14 UTC] PHP Warning:  PHP
                                                    Startup: Unable to load dynamic library 'memcache'
                                                    (tried: /usr/local/lib/php/20190902/memcache (Cannot
                                                    open "/usr/local/lib/php/20190902/memcache"),
                                                    /usr/local/lib/php/20190902/memcache.so
                                                    (/usr/local/lib/php/20190902/memcache.so: Undefined
                                                    symbol "executor_globals_offset")) in Unknown on line 0
www-1       02-05 16:31:15 {php-logging}    [53607] (809980042) [05-Feb-2022 21:31:14 UTC] PHP Warning:  PHP
                                                    Startup: Unable to load dynamic library 'memcached'
                                                    (tried: /usr/local/lib/php/20190902/memcached (Cannot
                                                    open "/usr/local/lib/php/20190902/memcached"),
                                                    /usr/local/lib/php/20190902/memcached.so
                                                    (/usr/local/lib/php/20190902/memcached.so: Undefined
                                                    symbol "compiler_globals_offset")) in Unknown on line 0



Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2022-02-05 23:42 UTC] stas@php.net
-Status: Open +Status: Not a bug -Type: Security +Type: Bug
 [2022-02-05 23:42 UTC] stas@php.net
Sorry, but your problem does not imply a bug in PHP itself.  For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system is not the
appropriate forum for asking support questions.  Due to the volume
of reports we can not explain in detail here why your report is not
a bug.  The support channels will be able to provide an explanation
for you.

Thank you for your interest in PHP.


 [2022-02-06 16:48 UTC] paul at scom dot ca
ok this is a compiler bug

when i compile php7.4 on freebsd

it recreates the php_config.h file that points to ext/php_config.h which

NO LONGER EXISTS

example occurs on ALL modules trying to compile and install

the main directory is being deleted and remade upon php install

under /usr/local/include/php

the main/ext directory IS being deleted and all the external modules ARE trying to reference this as php has said that the file is there when it is not

when i create a blank ext/php_config.h OR i rem it out the module being installed comes back with an undefiend symbol "executor_globals_offset"


www-1       02-06 11:38:49 {php-logging}    [48497] (811198626) [06-Feb-2022 16:38:49 UTC] PHP Warning:  PHP
                                                    Startup: Unable to load dynamic library 'memcached'
                                                    (tried: /usr/local/lib/php/20190902-zts/memcached
                                                    (Cannot open
                                                    "/usr/local/lib/php/20190902-zts/memcached"),
                                                    /usr/local/lib/php/20190902-zts/memcached.so
                                                    (/usr/local/lib/php/20190902-zts/memcached.so: Undefined
                                                    symbol "executor_globals_offset")) in Unknown on line 0 

memcache is just the example here

/usr/local/include/php/main/../main/php_config.h:2372:10: fatal error: 'ext/php_config.h' file not found
#include <ext/php_config.h>
         ^~~~~~~~~~~~~~~~~~
1 error generated.
gmake: *** [Makefile:192: php7/memcache.lo] Error 1
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Dec 21 17:01:58 2024 UTC