Answer the question
In order to leave comments, you need to log in
`
How to fix "AC_REQUIRE: `AC_HEADER_STDC' was expanded before it was required" in docker?
dockerfile:
FROM php:7.1-apache
ARG DEBIAN_FRONTEND=noninteractive
RUN apt-get -y update && apt-get install -y --no-install-recommends \
libxml2-dev \
&& docker-php-ext-install xmlrpc
Setting up libxml2-dev:amd64 (2.9.4+dfsg1-2.2+deb9u2) ...
Configuring for:
PHP Api Version: 20160303
Zend Module Api No: 20160303
Zend Extension Api No: 320160303
config.m4:82: warning: AC_REQUIRE: `AC_HEADER_STDC' was expanded before it was required
config.m4:82: http://www.gnu.org/software/autoconf/manual/autoconf.html#Expanded-Before-Required
../../lib/autoconf/headers.m4:297: _AC_INCLUDES_DEFAULT_REQUIREMENTS is expanded from...
../../lib/autoconf/headers.m4:353: AC_INCLUDES_DEFAULT is expanded from...
../../lib/autoconf/headers.m4:129: _AC_CHECK_HEADER_MONGREL is expanded from...
../../lib/autoconf/headers.m4:67: AC_CHECK_HEADER is expanded from...
../../lib/m4sugar/m4sh.m4:607: AS_FOR is expanded from...
../../lib/autoconf/headers.m4:249: AC_CHECK_HEADERS is expanded from...
libxmlrpc/acinclude.m4:13: XMLRPC_HEADER_CHECKS is expanded from...
libxmlrpc/xmlrpc.m4:1: XMLRPC_CHECKS is expanded from...
config.m4:82: the top level
config.m4:82: warning: AC_REQUIRE: `AC_HEADER_STDC' was expanded before it was required
config.m4:82: http://www.gnu.org/software/autoconf/manual/autoconf.html#Expanded-Before-Required
../../lib/autoconf/headers.m4:297: _AC_INCLUDES_DEFAULT_REQUIREMENTS is expanded from...
../../lib/autoconf/headers.m4:353: AC_INCLUDES_DEFAULT is expanded from...
../../lib/autoconf/headers.m4:129: _AC_CHECK_HEADER_MONGREL is expanded from...
../../lib/autoconf/headers.m4:67: AC_CHECK_HEADER is expanded from...
../../lib/m4sugar/m4sh.m4:607: AS_FOR is expanded from...
../../lib/autoconf/headers.m4:249: AC_CHECK_HEADERS is expanded from...
libxmlrpc/acinclude.m4:13: XMLRPC_HEADER_CHECKS is expanded from...
libxmlrpc/xmlrpc.m4:1: XMLRPC_CHECKS is expanded from...
config.m4:82: the top level
Answer the question
In order to leave comments, you need to log in
well, most likely the error is not the docker, but the very process of installing what you put in the image, but the specific libxml2-dev.
Not a docker error. check your setup. most likely something is missing. For debugging, you can run the container from the php:7.1-apache image, connect to it, and perform all the same actions as described in the dockerfile.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question