Bug 201244

Summary: archivers/php56-phar fails to build
Product: Ports & Packages Reporter: Peter <peter>
Component: Individual Port(s)Assignee: Alex Dupre <ale>
Status: Closed Not A Bug    
Severity: Affects Only Me Flags: bugzilla: maintainer-feedback? (ale)
Priority: ---    
Version: Latest   
Hardware: amd64   
OS: Any   

Description Peter 2015-07-01 12:00:11 UTC
Strange build error. zts option is off....

===>   php56-phar-5.6.10 depends on file: /usr/local/bin/phpize - found
===>   php56-phar-5.6.10 depends on file: /usr/local/lib/php/20131226-zts/hash.so - not found
===>   Installing existing package /packages/All/php56-hash-5.6.10.txz
[93x64-default-job-01] Installing php56-hash-5.6.10...
[93x64-default-job-01] Extracting php56-hash-5.6.10: .......... done
===>   php56-phar-5.6.10 depends on file: /usr/local/lib/php/20131226-zts/hash.so - not found
*** [build-depends] Error code 1

9.3-AMD64
Comment 1 Peter 2015-07-03 07:51:43 UTC
same thing, but with php56-xmlrpc, p56-xmlreader-5.6.10	and php56-soap-5.6.10.
other php56-modules builds ok.

=======================<phase: build-depends  >============================
===>   php56-xmlrpc-5.6.10 depends on file: /usr/local/include/php/main/php.h - not found
===>   Installing existing package /packages/All/php56-5.6.10.txz
[93x64-default-job-03] Installing php56-5.6.10...
[93x64-default-job-03] `-- Installing libxml2-2.9.2_3...
[93x64-default-job-03] |   `-- Installing libiconv-1.14_8...
[93x64-default-job-03] |   `-- Extracting libiconv-1.14_8: .......... done
[93x64-default-job-03] `-- Extracting libxml2-2.9.2_3: .......... done
[93x64-default-job-03] `-- Installing pcre-8.37_1...
[93x64-default-job-03] `-- Extracting pcre-8.37_1: .......... done
[93x64-default-job-03] Extracting php56-5.6.10: .......... done
===>   php56-xmlrpc-5.6.10 depends on file: /usr/local/include/php/main/php.h - found
===>   Returning to build of php56-xmlrpc-5.6.10
===>   php56-xmlrpc-5.6.10 depends on file: /usr/local/bin/phpize - found
===>   php56-xmlrpc-5.6.10 depends on file: /usr/local/lib/php/20131226-zts/xml.so - not found
===>   Installing existing package /packages/All/php56-xml-5.6.10.txz
[93x64-default-job-03] Installing php56-xml-5.6.10...
[93x64-default-job-03] Extracting php56-xml-5.6.10: ....... done
===>   php56-xmlrpc-5.6.10 depends on file: /usr/local/lib/php/20131226-zts/xml.so - not found
*** [build-depends] Error code 1
Comment 2 Peter 2015-07-03 08:00:46 UTC
php56 modules:

--PLIST_SUB--
PHP_EXT_DIR=20131226-zts
OSREL=9.3
PREFIX=%D
LOCALBASE=/usr/local
RESETPREFIX=/usr/local
PORTDOCS="@comment
"
lang/php56: libs resides in /usr/local/lib/php/20131226/
Comment 3 Peter 2015-07-06 07:55:26 UTC
For some reason the options WITH_MPM=worker was defined in make.conf. Removed it and build ok now.

bsd.php.mk
...
.elif defined(APACHE_PORT) && (${APACHE_PORT:M*worker*} != "" || ${APACHE_PORT:M*event*} != "")
PHP_EXT_DIR:=	${PHP_EXT_DIR}-zts
.elif defined(WITH_MPM) && (${WITH_MPM} == "worker" || ${WITH_MPM} == "event")
PHP_EXT_DIR:=	${PHP_EXT_DIR}-zts
....