configure: checking for an ANSI C99-conforming __func__... yes /gentoo/prefix64/var/tmp/portage/dev-libs/expat-2.2.1/work/expat-2.2.1/configure: 16992: test: x: unexpected operator configure: creating ./config.status config.status: creating Makefile make: libtool: compile: x86_64-pc-solaris2.11-gcc -I/gentoo/prefix64/var/tmp/portage/dev-libs/expat-2.2.1/work/expat-2.2.1/lib -I. -O2 -pipe -Wall -Wmissing-prototypes -Wstrict-prototypes -fexceptions -fno-strict-aliasing -DHAVE_EXPAT_CONFIG_H -c /gentoo/prefix64/var/tmp/portage/dev-libs/expat-2.2.1/work/expat-2.2.1/lib/xmlrole.c -fPIC -DPIC -o lib/.libs/xmlrole.o /gentoo/prefix64/var/tmp/portage/dev-libs/expat-2.2.1/work/expat-2.2.1/lib/xmlparse.c: In function ‘XML_GetBuffer’: /gentoo/prefix64/var/tmp/portage/dev-libs/expat-2.2.1/work/expat-2.2.1/lib/xmlparse.c:1973:33: error: expected expression before ‘)’ token if (keep > XML_CONTEXT_BYTES) ^ /gentoo/prefix64/var/tmp/portage/dev-libs/expat-2.2.1/work/expat-2.2.1/lib/xmlparse.c:2013:37: error: expected expression before ‘)’ token if (keep > XML_CONTEXT_BYTES) ^ /gentoo/prefix64/var/tmp/portage/dev-libs/expat-2.2.1/work/expat-2.2.1/lib/xmlparse.c: At top level: /gentoo/prefix64/var/tmp/portage/dev-libs/expat-2.2.1/work/expat-2.2.1/lib/xmlparse.c:710:1: warning: ‘writeRandomBytes_getrandom’ defined but not used [-Wunused-function] writeRandomBytes_getrandom(void * target, size_t count) { ^ libtool: compile: x86_64-pc-solaris2.11-gcc -I/gentoo/prefix64/var/tmp/portage/dev-libs/expat-2.2.1/work/expat-2.2.1/lib -I. -O2 -pipe -Wall -Wmissing-prototypes -Wstrict-prototypes -fexceptions -fno-strict-aliasing -DHAVE_EXPAT_CONFIG_H -c /gentoo/prefix64/var/tmp/portage/dev-libs/expat-2.2.1/work/expat-2.2.1/lib/xmltok.c -fPIC -DPIC -o lib/.libs/xmltok.o make: *** [Makefile:208: lib/xmlparse.lo] Error 1 make: *** Waiting for unfinished jobs.... Running emerge with CONFIG_SHELL=`which bash` makes it compile fine. I have this problem on multiple Gentoo Linux machines, using dash as CONFIG_SHELL.
I hope this is it. Else, please re-open. commit 723ffbdf98c2d72dd9a2747c9abe9aa23c46e3ec Author: Sebastian Pipping <sping@g.o> Date: Tue Jun 20 20:17:49 2017 +0200 dev-libs/expat: Fix compilation (bug #622274) https://github.com/libexpat/libexpat/pull/49 https://github.com/libexpat/libexpat/issues/50 Package-Manager: Portage-2.3.6, Repoman-2.3.2 dev-libs/expat/expat-2.2.1.ebuild | 9 +++++++- .../files/expat-2.2.1-getrandom-detection.patch | 24 ++++++++++++++++++++ dev-libs/expat/files/expat-2.2.1-posix-shell.patch | 26 ++++++++++++++++++++++ 3 files changed, 58 insertions(+), 1 deletion(-) https://github.com/gentoo/gentoo/commit/723ffbdf98c2d72dd9a2747c9abe9aa23c46e3ec
Interesting.. It's now fails to compile with dash as /bin/sh bug 622360
hmm, this afternoon CONFIG_SHELL=/path/to/dash worked fine.