Bug 220366

Summary: textproc/php56-xmlreader fails to build in Poudriere
Product: Ports & Packages Reporter: sean.smith
Component: Individual Port(s)Assignee: Alex Dupre <ale>
Status: Closed FIXED    
Severity: Affects Only Me CC: w.schwarzenfeld
Priority: --- Flags: bugzilla: maintainer-feedback? (ale)
Version: Latest   
Hardware: Any   
OS: Any   

Description sean.smith 2017-06-29 21:13:03 UTC
Poudriere log is as follows

====>> Building textproc/php56-xmlreader
build started at Thu Jun 29 05:11:44 UTC 2017
port directory: /usr/ports/textproc/php56-xmlreader
building for: FreeBSD 103jail-default-job-05 10.3-RELEASE-p19 FreeBSD 10.3-RELEASE-p19 amd64
maintained by: ale@FreeBSD.org
Makefile ident:      $FreeBSD: head/textproc/php56-xmlreader/Makefile 422652 2016-09-23 08:26:44Z tz $
Poudriere version: 3.1.14
Host OSVERSION: 1003000
Jail OSVERSION: 1003000

---Begin Environment---
SHELL=/bin/csh
UNAME_v=FreeBSD 10.3-RELEASE-p19
UNAME_r=10.3-RELEASE-p19
BLOCKSIZE=K
MAIL=/var/mail/root
STATUS=1
OPSYS=FreeBSD
ARCH=amd64
SAVED_TERM=screen
MASTERMNT=/usr/local/poudriere/data/.m/103jail-default/ref
UID=0
FORCE_PACKAGE=yes
PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/games:/usr/local/sbin:/usr/local/bin:/root/bin
_JAVA_VERSION_LIST_REGEXP=1.6\|1.7\|1.8\|1.6+\|1.7+\|1.8+
POUDRIERE_BUILD_TYPE=bulk
PKGNAME=php56-xmlreader-5.6.30
OSREL=10.3
_OSRELEASE=10.3-RELEASE-p19
PYTHONBASE=/usr/local
OLDPWD=/
_SMP_CPUS=12
PWD=/usr/local/poudriere/data/.m/103jail-default/ref/.p/pool
HAVE_COMPAT_IA32_KERN=YES
MASTERNAME=103jail-default
SCRIPTPREFIX=/usr/local/share/poudriere
_JAVA_VENDOR_LIST_REGEXP=openjdk\|oracle\|sun
USER=root
HOME=/root
POUDRIERE_VERSION=3.1.14
SCRIPTPATH=/usr/local/share/poudriere/bulk.sh
CONFIGURE_MAX_CMD_LEN=262144
LIBEXECPREFIX=/usr/local/libexec/poudriere
LOCALBASE=/usr/local
PACKAGE_BUILDING=yes
_JAVA_OS_LIST_REGEXP=native\|linux
OSVERSION=1003000
---End Environment---

---Begin OPTIONS List---
---End OPTIONS List---

--CONFIGURE_ARGS--
--enable-xmlreader  --with-libxml-dir=/usr/local --with-php-config=/usr/local/bin/php-config --prefix=/usr/local ${_LATE_CONFIGURE_ARGS}
--End CONFIGURE_ARGS--

--CONFIGURE_ENV--
XDG_DATA_HOME=/wrkdirs/usr/ports/textproc/php56-xmlreader/work  XDG_CONFIG_HOME=/wrkdirs/usr/ports/textproc/php56-xmlreader/work  HOME=/wrkdirs/usr/ports/textproc/php56-xmlreader/work TMPDIR="/tmp" SHELL=/bin/sh CONFIG_SHELL=/bin/sh  AUTOCONF=/usr/local/bin/autoconf-2.69  AUTOCONF_DIR=/usr/local/share/autoconf-2.69  AUTOHEADER=/usr/local/bin/autoheader-2.69  AUTOIFNAMES=/usr/local/bin/ifnames-2.69  AUTOM4TE=/usr/local/bin/autom4te-2.69  AUTORECONF=/usr/local/bin/autoreconf-2.69  AUTOSCAN=/usr/local/bin/autoscan-2.69  AUTOUPDATE=/usr/local/bin/autoupdate-2.69  AUTOCONF_VERSION=2.69 CONFIG_SITE=/usr/ports/Templates/config.site lt_cv_sys_max_cmd_len=262144
--End CONFIGURE_ENV--

--MAKE_ENV--
XDG_DATA_HOME=/wrkdirs/usr/ports/textproc/php56-xmlreader/work  XDG_CONFIG_HOME=/wrkdirs/usr/ports/textproc/php56-xmlreader/work  HOME=/wrkdirs/usr/ports/textproc/php56-xmlreader/work TMPDIR="/tmp" NO_PIE=yes WITHOUT_DEBUG_FILES=yes WITHOUT_KERNEL_SYMBOLS=yes SHELL=/bin/sh NO_LINT=YES  AUTOCONF=/usr/local/bin/autoconf-2.69  AUTOCONF_DIR=/usr/local/share/autoconf-2.69  AUTOHEADER=/usr/local/bin/autoheader-2.69  AUTOIFNAMES=/usr/local/bin/ifnames-2.69  AUTOM4TE=/usr/local/bin/autom4te-2.69  AUTORECONF=/usr/local/bin/autoreconf-2.69  AUTOSCAN=/usr/local/bin/autoscan-2.69  AUTOUPDATE=/usr/local/bin/autoupdate-2.69  AUTOCONF_VERSION=2.69 PREFIX=/usr/local  LOCALBASE=/usr/local  LIBDIR="/usr/lib"  CC="cc" CFLAGS="-O2 -pipe  -fstack-protector -fno-strict-aliasing"  CPP="cpp" CPPFLAGS=""  LDFLAGS=" -fstack-protector" LIBS=""  CXX="c++" CXXFLAGS="-O2 -pipe -fstack-protector -fno-strict-aliasing "  MANPREFIX="/usr/local" BSD_INSTALL_PROGRAM="install  -s -m 555"  BSD_INSTALL_LIB="install  -s -m 0644"  BSD_INSTALL_SCRIPT="install  -m 555"  BSD_INSTALL_DATA="install  -m 0644"  BSD_INSTALL_MAN="install  -m 444"
--End MAKE_ENV--

--PLIST_SUB--
PHP_EXT_DIR=20131226
GTK2_VERSION="2.10.0"
GTK3_VERSION="3.0.0"
OSREL=10.3
PREFIX=%D
LOCALBASE=/usr/local
RESETPREFIX=/usr/local
PORTDOCS="@comment
"
PORTEXAMPLES="@comment
"
LIB32DIR=lib
DOCSDIR="share/doc/php56"
EXAMPLESDIR="share/examples/php56"
DATADIR="share/php56"
WWWDIR="www/php56"
ETCDIR="etc/php56"
--End PLIST_SUB--

--SUB_LIST--
PHP_EXT_DIR=20131226
PREFIX=/usr/local
LOCALBASE=/usr/local
DATADIR=/usr/local/share/php56
DOCSDIR=/usr/local/share/doc/php56
EXAMPLESDIR=/usr/local/share/examples/php56
WWWDIR=/usr/local/www/php56
ETCDIR=/usr/local/etc/php56
--End SUB_LIST--

---Begin make.conf---
WITH_CCACHE_BUILD=yes
CCACHE_DIR=/root/.ccache
USE_PACKAGE_DEPENDS=yes
BATCH=yes
WRKDIRPREFIX=/wrkdirs
PORTSDIR=/usr/ports
PACKAGES=/packages
DISTDIR=/distfiles
#### /usr/local/etc/poudriere.d/globalmake.conf ####
# Build ports using openssl from ports (openssl must be installed from the ports collection in order for this to work)
DEFAULT_VERSIONS+=ssl=openssl
# Use the latest version of perl
DEFAULT_VERSIONS+=perl5=5.24
# Disable DOCS,NLS,X11,EXAMPLES on all packages
OPTIONS_UNSET+=DOCS NLS X11 EXAMPLES IPV6

---End make.conf---
=======================<phase: check-sanity   >============================
===>  License PHP301 accepted by the user
===========================================================================
=======================<phase: pkg-depends    >============================
===>   php56-xmlreader-5.6.30 depends on file: /usr/local/sbin/pkg - not found
===>   Installing existing package /packages/All/pkg-1.10.1.txz
[103jail-default-job-05] Installing pkg-1.10.1...
[103jail-default-job-05] Extracting pkg-1.10.1: .......... done
===>   php56-xmlreader-5.6.30 depends on file: /usr/local/sbin/pkg - found
===>   Returning to build of php56-xmlreader-5.6.30
===========================================================================
=======================<phase: fetch-depends  >============================
===========================================================================
=======================<phase: fetch          >============================
===>  License PHP301 accepted by the user
===> Fetching all distfiles required by php56-xmlreader-5.6.30 for building
===========================================================================
=======================<phase: checksum       >============================
===>  License PHP301 accepted by the user
===> Fetching all distfiles required by php56-xmlreader-5.6.30 for building
=> SHA256 Checksum OK for php-5.6.30.tar.xz.
===========================================================================
=======================<phase: extract-depends>============================
===========================================================================
=======================<phase: extract        >============================
===>  License PHP301 accepted by the user
===> Fetching all distfiles required by php56-xmlreader-5.6.30 for building
===>  Extracting for php56-xmlreader-5.6.30
=> SHA256 Checksum OK for php-5.6.30.tar.xz.
===========================================================================
=======================<phase: patch-depends  >============================
===========================================================================
=======================<phase: patch          >============================
===>  Patching for php56-xmlreader-5.6.30
===========================================================================
=======================<phase: build-depends  >============================
===>   php56-xmlreader-5.6.30 depends on file: /usr/local/bin/phpize - not found
===>   Installing existing package /packages/All/php56-5.6.30.txz
[103jail-default-job-05] Installing php56-5.6.30...
[103jail-default-job-05] `-- Installing libxml2-2.9.4...
[103jail-default-job-05] `-- Extracting libxml2-2.9.4: .......... done
[103jail-default-job-05] `-- Installing pcre-8.40_1...
[103jail-default-job-05] `-- Extracting pcre-8.40_1: .......... done
[103jail-default-job-05] Extracting php56-5.6.30: .......... done
===>   php56-xmlreader-5.6.30 depends on file: /usr/local/bin/phpize - found
===>   Returning to build of php56-xmlreader-5.6.30
===>   php56-xmlreader-5.6.30 depends on file: /usr/local/bin/autoconf-2.69 - not found
===>   Installing existing package /packages/All/autoconf-2.69_1.txz
[103jail-default-job-05] Installing autoconf-2.69_1...
[103jail-default-job-05] `-- Installing autoconf-wrapper-20131203...
[103jail-default-job-05] `-- Extracting autoconf-wrapper-20131203: ........ done
[103jail-default-job-05] `-- Installing indexinfo-0.2.6...
[103jail-default-job-05] `-- Extracting indexinfo-0.2.6: .... done
[103jail-default-job-05] `-- Installing m4-1.4.18,1...
[103jail-default-job-05] `-- Extracting m4-1.4.18,1: ...... done
[103jail-default-job-05] `-- Installing perl5-5.24.1_1...
[103jail-default-job-05] `-- Extracting perl5-5.24.1_1: .......... done
[103jail-default-job-05] Extracting autoconf-2.69_1: .......... done
Message from perl5-5.24.1_1:
The /usr/bin/perl symlink has been removed starting with Perl 5.20.
For shebangs, you should either use:

#!/usr/local/bin/perl

or

#!/usr/bin/env perl

The first one will only work if you have a /usr/local/bin/perl,
the second will work as long as perl is in PATH.
===>   php56-xmlreader-5.6.30 depends on file: /usr/local/bin/autoconf-2.69 - found
===>   Returning to build of php56-xmlreader-5.6.30
===>   php56-xmlreader-5.6.30 depends on file: /usr/local/lib/php/20131226/dom.so - not found
===>   Installing existing package /packages/All/php56-dom-5.6.30.txz
[103jail-default-job-05] Installing php56-dom-5.6.30...
[103jail-default-job-05] Extracting php56-dom-5.6.30: .......... done
Message from php56-dom-5.6.30:
****************************************************************************

The following line has been added to your /usr/local/etc/php/ext-20-dom.ini
configuration file to automatically load the installed extension:

extension=dom.so

****************************************************************************
===>   php56-xmlreader-5.6.30 depends on file: /usr/local/lib/php/20131226/dom.so - not found
*** Error code 1

Stop.
make: stopped in /usr/ports/textproc/php56-xmlreader
====>> Cleaning up wrkdir
===>  Cleaning for php56-xmlreader-5.6.30
build of textproc/php56-xmlreader ended at Thu Jun 29 05:13:49 UTC 2017
build time: 00:02:05
!!! build failure encountered !!!
Comment 1 Alex Dupre freebsd_committer freebsd_triage 2017-06-30 08:51:10 UTC
This may happen if your php extensions directory is not the default one, because you enabled DEBUG or ZTS in php. Is this your case? (in what directory is installed the dom.so extension?)
Comment 2 sean.smith 2017-06-30 16:35:44 UTC
When I enter the Poudriere jail manually and look for dom.so, it is located in /usr/local/lib/php/20131226-zts/dom.so 

The /usr/local/lib/php/ directory only contains these two dirs:
20131226-zts    build

The error message looks like it is looking for 20131226 and not 20131226-zts

===>   php56-xmlreader-5.6.30 depends on file: /usr/local/lib/php/20131226/dom.so - not found
*** Error code 1
Comment 3 sean.smith 2017-06-30 17:12:15 UTC
I disabled the ZTS option in lang/php56 and my packages are now building. Can you test building this package with ZTS enabled in php56?
Comment 4 Walter Schwarzenfeld 2018-01-13 23:32:32 UTC
Maintainer feedback?
Comment 5 Walter Schwarzenfeld 2018-02-12 23:58:30 UTC
Test with php56 with ZTS on with poudriere succesful. I assume it is fixed. So, I close here. If it is not so, please re-open.