okumin created ZOOKEEPER-4055:
---------------------------------

             Summary: Dockerfile can't build Zookeeper C client library
                 Key: ZOOKEEPER-4055
                 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-4055
             Project: ZooKeeper
          Issue Type: Bug
          Components: build
    Affects Versions: 3.6.2, 3.7.0
            Reporter: okumin


`dev/docker/Dockerfile` is based on `maven:3.6.3-jdk-8` and the maven image is 
now based on Debian buster. The libcppunit-dev 1.14.0 shipped with Debian 
buster doesn't have `AM_PATH_CPPUNIT`.

 

And also `PKG_CHECK_MODULES`, the fallback macro, is not linked in the docker 
image.

https://github.com/apache/zookeeper/blob/4e82a8be889d91dde46a11b38c8a20e82f3220f2/zookeeper-client/zookeeper-client-c/acinclude.m4#L314-L327


 As a result, the current Docker image is not capable of building 
`zookeeper-client-c`.
{code:java}
$ docker build -t zookeeper/dev -f dev/docker/Dockerfile dev/docker
$ docker run --rm -it -w /root/zk -v "$PWD:/root/zk" zookeeper/dev mvn clean 
install -Pfull-build -DskipTests
{code}
{code:java}
[INFO] --- exec-maven-plugin:1.6.0:exec (autoreconf) @ zookeeper-client-c ---
acinclude.m4:315: warning: macro 'AM_PATH_CPPUNIT' not found in library
configure.ac:38: error: Missing AM_PATH_CPPUNIT or PKG_CHECK_MODULES m4 macro.
acinclude.m4:317: CHECK_CPPUNIT is expanded from...
configure.ac:38: the top level
autom4te: /usr/bin/m4 failed with exit status: 1
aclocal: error: echo failed with exit status: 1
autoreconf: aclocal failed with exit status: 1
[ERROR] Command execution failed.
org.apache.commons.exec.ExecuteException: Process exited with an error: 1 (Exit 
value: 1)
    at org.apache.commons.exec.DefaultExecutor.executeInternal 
(DefaultExecutor.java:404)
{code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to