php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #72443 Installing shared extensions: cp: cannot stat 'modules/*': No such file or dire
Submitted: 2016-06-17 15:24 UTC Modified: -
Votes:4
Avg. Score:4.5 ± 0.9
Reproduced:4 of 4 (100.0%)
Same Version:0 (0.0%)
Same OS:2 (50.0%)
From: eugenekurilov at gmail dot com Assigned:
Status: Closed Package: Compile Failure
PHP Version: 7.0.7 OS: centos
Private report: No CVE-ID: None
 [2016-06-17 15:24 UTC] eugenekurilov at gmail dot com
Description:
------------
I created a new extension by "ext_skel".
[root@localhost ext]# ./ext_skel --extname=eugene
Creating directory eugene
Creating basic files: config.m4 config.w32 .gitignore eugene.c php_eugene.h CREDITS EXPERIMENTAL tests/001.phpt eugene.php [done].

To use your new extension, you will have to execute the following steps:

1.  $ cd ..
2.  $ vi ext/eugene/config.m4
3.  $ ./buildconf
4.  $ ./configure --[with|enable]-eugene
5.  $ make
6.  $ ./sapi/cli/php -f ext/eugene/eugene.php
7.  $ vi ext/eugene/eugene.c
8.  $ make

In this case I can't use /buildconf. 


Test script:
---------------
I used phpize instead buildconf

[root@localhost eugene]# phpize
Configuring for:
PHP Api Version:         20151012
Zend Module Api No:      20151012
Zend Extension Api No:   320151012

[root@localhost eugene]# ./configure
.....
creating libtool
appending configuration tag "CXX" to libtool
configure: creating ./config.status
config.status: creating config.h


[root@localhost eugene]# make

Build complete.
Don't forget to run 'make test'.


[root@localhost eugene]# make test

Build complete.
Don't forget to run 'make test'.


=====================================================================
PHP         : /usr/local/bin/php
PHP_SAPI    : cli
PHP_VERSION : 7.0.7
ZEND_VERSION: 3.0.0
PHP_OS      : Linux - Linux localhost.localdomain 3.10.0-327.el7.x86_64 #1 SMP Thu Nov 19 22:10:57 UTC 2015 x86_64
INI actual  : /root/php-7.0.7/ext/eugene/tmp-php.ini
More .INIs  :
CWD         : /root/php-7.0.7/ext/eugene
Extra dirs  :
VALGRIND    : Not used
=====================================================================
TIME START 2016-06-15 20:05:35
=====================================================================
SKIP Check for eugene presence [tests/001.phpt]
=====================================================================
TIME END 2016-06-15 20:05:35

=====================================================================
TEST RESULT SUMMARY
---------------------------------------------------------------------
Exts skipped    :    0
Exts tested     :   32
---------------------------------------------------------------------

Number of tests :    1                 0
Tests skipped   :    1 (100.0%) --------
Tests warned    :    0 (  0.0%) (  0.0%)
Tests failed    :    0 (  0.0%) (  0.0%)
Expected fail   :    0 (  0.0%) (  0.0%)
Tests passed    :    0 (  0.0%) (  0.0%)
---------------------------------------------------------------------
Time taken      :    0 seconds
=====================================================================

This report can be automatically sent to the PHP QA team at
http://qa.php.net/reports and http://news.php.net/php.qa.reports
This gives us a better understanding of PHP's behavior.
If you don't want to send the report immediately you can choose
option "s" to save it.  You can then email it to qa-reports@lists.php.net later.
Do you want to send this report now? [Yns]: n


[root@localhost eugene]# make install
Installing shared extensions:     /usr/local/lib/php/extensions/no-debug-non-zts-20151012/
cp: cannot stat 'modules/*': No such file or directory
make: *** [install-modules] Error 1



Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2016-07-04 13:36 UTC] swen dot zanon at geoglis dot de
I have the same issue with php version 7.0.8
 [2018-08-05 23:45 UTC] petk@php.net
Automatic comment on behalf of peterkokot@gmail.com
Revision: http://git.php.net/?p=php-src.git;a=commit;h=45a3c0e5969b482ffdcf5674039784b3a2c24e33
Log: Fix bug #72443: Generate enabled extension
 [2018-08-05 23:45 UTC] petk@php.net
-Status: Open +Status: Closed
 [2018-08-05 23:52 UTC] petk@php.net
Hello, thank your for reporting this issue. This has been now fixed for the PHP-7.1 and PHP-7.2 branches. Case is that for compiling and installing extension there needs to be enabled argument Autoconf macro in the config.m4 file. The upcoming PHP-7.3 already generates enabled extension via new extension generator script.
 
PHP Copyright © 2001-2018 The PHP Group
All rights reserved.
Last updated: Wed Sep 26 10:01:25 2018 UTC