php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #75123 libtool fails to compile PHP when echo is not exported
Submitted: 2017-08-26 16:41 UTC Modified: -
Votes:1
Avg. Score:3.0 ± 0.0
Reproduced:0 of 1 (0.0%)
From: mqudsi at neosmart dot net Assigned:
Status: Open Package: *General Issues
PHP Version: 7.1.8 OS: FreeBSD 11
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: mqudsi at neosmart dot net
New email:
PHP Version: OS:

 

 [2017-08-26 16:41 UTC] mqudsi at neosmart dot net
Description:
------------
I'm not sure if it's "on FreeBSD 11 in general" or "with my specific FreeBSD configuration", but I had a hell of a time trying to get PHP 7.1.8 to compile from git due to some issues with the build script.

For confirmation:

git clone ...; cd php-src;
./buildconf
./configure '--with-layout=GNU' '--localstatedir=/var' '--with-config-file-scan-dir=/usr/local/etc/php' '--disable-all' '--enable-libxml' '--enable-mysqlnd' '--with-libxml-dir=/usr/local' '--with-pcre-regex=/usr/local' '--program-prefix=' '--enable-fpm' '--with-fpm-user=www' '--with-fpm-group=www' '--enable-dtrace' '--prefix=/usr/local' '--mandir=/usr/local/man' '--infodir=/usr/local/info/' '--build=amd64-portbld-freebsd11.0' 'build_alias=amd64-portbld-freebsd11.0' 'CFLAGS=-O2 -pipe -fstack-protector -fno-strict-aliasing -g -march=native' 'CPPFLAGS=' 'CPP=cpp'
make -jN

This would fail on libtool invocation with seemingly nonsensical errors, some of which are reproduced below, starting with the initial failure:

--- ext/date/lib/tm2unixtime.lo ---
/usr/home/mqudsi/php-src/libtool: X--mode=compile: not found
--- ext/spl/spl_directory.lo ---
/usr/home/mqudsi/php-src/libtool: X--mode=compile: not found
--- ext/spl/spl_functions.lo ---
/usr/home/mqudsi/php-src/libtool: X--mode=compile: not found
--- ext/date/lib/dow.lo ---
/usr/home/mqudsi/php-src/libtool: X--mode=compile: not found
--- ext/date/lib/tm2unixtime.lo ---
/usr/home/mqudsi/php-src/libtool: *** Warning: inferring the mode of operation is deprecated.: not found
--- ext/date/lib/parse_iso_intervals.lo ---

this goes on for a while for each invocation of libtool. As you can see, it's a seemingly incomplete error message `: not found` without specifying _what_ wasn't found.

Then we get errors for all the CFLAGS that were passed in to ./configure:


/usr/home/mqudsi/php-src/libtool: X-DZEND_ENABLE_STATIC_TSRMLS_CACHE=1: not found
--- ext/date/lib/parse_iso_intervals.lo ---

/usr/home/mqudsi/php-src/libtool: Xcc: not found
--- ext/date/lib/parse_tz.lo ---
/usr/home/mqudsi/php-src/libtool: *** Future versions of Libtool will require --mode=MODE be specified.: not found
--- ext/standard/crypt_sha512.lo ---
/usr/home/mqudsi/php-src/libtool: *** Warning: inferring the mode of operation is deprecated.: not found
--- ext/spl/spl_array.lo ---
/usr/home/mqudsi/php-src/libtool: X-DZEND_ENABLE_STATIC_TSRMLS_CACHE=1: not found
--- ext/spl/spl_functions.lo ---
/usr/home/mqudsi/php-src/libtool: X-Iext/spl/: not found
--- ext/spl/spl_dllist.lo ---
/usr/home/mqudsi/php-src/libtool: *** Warning: inferring the mode of operation is deprecated.: not found
--- ext/spl/spl_observer.lo ---
/usr/home/mqudsi/php-src/libtool: X-DZEND_ENABLE_STATIC_TSRMLS_CACHE=1: not found
--- ext/spl/spl_heap.lo ---
/usr/home/mqudsi/php-src/libtool: *** Future versions of Libtool will require --mode=MODE be specified.: not found
--- ext/standard/crypt_sha512.lo ---
/usr/home/mqudsi/php-src/libtool: *** Future versions of Libtool will require --mode=MODE be specified.: not found
--- ext/date/lib/tm2unixtime.lo ---
/usr/home/mqudsi/php-src/libtool: X-DHAVE_TIMELIB_CONFIG_H=1: not found
--- ext/date/lib/parse_date.lo ---
/usr/home/mqudsi/php-src/libtool: *** Future versions of Libtool will require --mode=MODE be specified.: not found
--- ext/spl/spl_directory.lo ---
/usr/home/mqudsi/php-src/libtool: X-Iext/spl/: not found
--- ext/standard/browscap.lo ---
/usr/home/mqudsi/php-src/libtool: Xcc: not found
--- ext/standard/crypt_sha256.lo ---
/usr/home/mqudsi/php-src/libtool: Xcc: not found
--- ext/date/lib/parse_iso_intervals.lo ---
/usr/home/mqudsi/php-src/libtool: X-Iext/date/lib: not found
--- ext/spl/php_spl.lo ---
/usr/home/mqudsi/php-src/libtool: *** Future versions of Libtool will require --mode=MODE be specified.: not found
--- ext/libxml/libxml.lo ---
/usr/home/mqudsi/php-src/libtool: X-DZEND_ENABLE_STATIC_TSRMLS_CACHE=1: not found
--- ext/standard/base64.lo ---
/usr/home/mqudsi/php-src/libtool: *** Warning: inferring the mode of operation is deprecated.: not found
--- ext/date/lib/unixtime2tm.lo ---
/usr/home/mqudsi/php-src/libtool: X-Iext/date/lib: not found
--- ext/standard/php_crypt_r.lo ---
/usr/home/mqudsi/php-src/libtool: X-Iext/standard/: not found
--- ext/spl/spl_functions.lo ---
/usr/home/mqudsi/php-src/libtool: X-I/usr/home/mqudsi/php-src/ext/spl/: not found
--- ext/spl/spl_exceptions.lo ---
/usr/home/mqudsi/php-src/libtool: *** Future versions of Libtool will require --mode=MODE be specified.: not found
--- ext/standard/array.lo ---
/usr/home/mqudsi/php-src/libtool: *** Warning: inferring the mode of operation is deprecated.: not found
--- ext/spl/spl_iterators.lo ---
/usr/home/mqudsi/php-src/libtool: X-DZEND_ENABLE_STATIC_TSRMLS_CACHE=1: not found
--- ext/standard/crypt_freesec.lo ---
/usr/home/mqudsi/php-src/libtool: *** Warning: inferring the mode of operation is deprecated.: not found
--- ext/spl/spl_engine.lo ---
/usr/home/mqudsi/php-src/libtool: X-DZEND_ENABLE_STATIC_TSRMLS_CACHE=1: not found
--- ext/date/php_date.lo ---
/usr/home/mqudsi/php-src/libtool: X-Iext/date/lib: not found
--- ext/pcre/php_pcre.lo ---
/usr/home/mqudsi/php-src/libtool: X-DZEND_ENABLE_STATIC_TSRMLS_CACHE=1: not found
--- ext/standard/crypt_sha512.lo ---
/usr/home/mqudsi/php-src/libtool: Xcc: not found
--- ext/spl/spl_dllist.lo ---
/usr/home/mqudsi/php-src/libtool: *** Future versions of Libtool will require --mode=MODE be specified.: not found
--- ext/date/lib/interval.lo ---
/usr/home/mqudsi/php-src/libtool: X-Iext/date/lib: not found
--- ext/date/lib/timelib.lo ---
/usr/home/mqudsi/php-src/libtool: X-Iext/date/lib: not found
--- ext/standard/crypt_blowfish.lo ---
/usr/home/mqudsi/php-src/libtool: X-Iext/standard/: not found
--- ext/date/lib/astro.lo ---
/usr/home/mqudsi/php-src/libtool: X-Iext/date/lib: not found
--- ext/date/lib/parse_date.lo ---
/usr/home/mqudsi/php-src/libtool: Xcc: not found
--- ext/spl/spl_fixedarray.lo ---
/usr/home/mqudsi/php-src/libtool: X-DZEND_ENABLE_STATIC_TSRMLS_CACHE=1: not found
--- ext/spl/spl_observer.lo ---
/usr/home/mqudsi/php-src/libtool: X-Iext/spl/: not found
--- ext/date/lib/parse_tz.lo ---
/usr/home/mqudsi/php-src/libtool: Xcc: not found
--- ext/date/lib/tm2unixtime.lo ---
/usr/home/mqudsi/php-src/libtool: X-Iext/date/: not found
--- ext/date/lib/dow.lo ---
/usr/home/mqudsi/php-src/libtool: X-DZEND_ENABLE_STATIC_TSRMLS_CACHE=1: not found
--- ext/spl/spl_heap.lo ---
/usr/home/mqudsi/php-src/libtool: Xcc: not found
--- ext/standard/crypt_freesec.lo ---
/usr/home/mqudsi/php-src/libtool: *** Future versions of Libtool will require --mode=MODE be specified.: not found
--- ext/reflection/php_reflection.lo ---
/usr/home/mqudsi/php-src/libtool: X-DZEND_ENABLE_STATIC_TSRMLS_CACHE=1: not found
--- ext/spl/spl_array.lo ---
/usr/home/mqudsi/php-src/libtool: X-Iext/spl/: not found
--- ext/standard/array.lo ---
/usr/home/mqudsi/php-src/libtool: *** Future versions of Libtool will require --mode=MODE be specified.: not found
--- ext/standard/crypt_blowfish.lo ---
/usr/home/mqudsi/php-src/libtool: X-I/usr/home/mqudsi/php-src/ext/standard/: not found
--- ext/standard/php_crypt_r.lo ---
/usr/home/mqudsi/php-src/libtool: X-I/usr/home/mqudsi/php-src/ext/standard/: not found
--- ext/standard/base64.lo ---
/usr/home/mqudsi/php-src/libtool: *** Future versions of Libtool will require --mode=MODE be specified.: not found
--- ext/pcre/php_pcre.lo ---
/usr/home/mqudsi/php-src/libtool: X-Iext/pcre/: not found
--- ext/standard/array.lo ---
/usr/home/mqudsi/php-src/libtool: Xcc: not found
--- ext/spl/php_spl.lo ---
/usr/home/mqudsi/php-src/libtool: Xcc: not found
--- ext/date/php_date.lo ---
/usr/home/mqudsi/php-src/libtool: X-DZEND_ENABLE_STATIC_TSRMLS_CACHE=1: not found
--- ext/spl/spl_engine.lo ---
/usr/home/mqudsi/php-src/libtool: X-Iext/spl/: not found
--- ext/standard/crypt_freesec.lo ---
/usr/home/mqudsi/php-src/libtool: Xcc: not found
--- ext/libxml/libxml.lo ---
/usr/home/mqudsi/php-src/libtool: X-Iext/libxml/: not found
--- ext/standard/browscap.lo ---
/usr/home/mqudsi/php-src/libtool: X-DZEND_ENABLE_STATIC_TSRMLS_CACHE=1: not found
--- ext/date/lib/interval.lo ---
/usr/home/mqudsi/php-src/libtool: X-DZEND_ENABLE_STATIC_TSRMLS_CACHE=1: not found
--- ext/spl/spl_observer.lo ---
/usr/home/mqudsi/php-src/libtool: X-I/usr/home/mqudsi/php-src/ext/spl/: not found
--- ext/standard/crypt_sha256.lo ---
/usr/home/mqudsi/php-src/libtool: X-Iext/standard/: not found
--- ext/spl/spl_iterators.lo ---
/usr/home/mqudsi/php-src/libtool: X-Iext/spl/: not found
--- ext/date/lib/parse_iso_intervals.lo ---
/usr/home/mqudsi/php-src/libtool: X-DZEND_ENABLE_STATIC_TSRMLS_CACHE=1: not found
--- ext/spl/spl_dllist.lo ---
/usr/home/mqudsi/php-src/libtool: Xcc: not found
--- ext/date/lib/dow.lo ---
/usr/home/mqudsi/php-src/libtool: X-DHAVE_TIMELIB_CONFIG_H=1: not found


and so on and so forth.


This happens with both `make` and `gmake` under FreeBSD 11.1. The solution was to first 

export echo=echo


and then attempt the configure and build once more.


If it matters (since echo is normally a shell builtin), I'm using fish as my shell.


Patches

Pull Requests

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Dec 21 14:01:32 2024 UTC