I was trying to install mesos latest version(1.9.0) on the ubuntu 20.04 using Dockefile.
FROM ubuntu:20.04
ENV MESOS_VERSION 1.9.0
ENV MESOS_ARTIFACT_FILENAME mesos-${MESOS_VERSION}.tar.gz
# Install Mesos dependencies
# Compile and install Mesos (compilation phase uses 6 threads for speed up this process)
# Uninstall Mesos build dependencies
RUN apt-get update && apt-get install -y \
openjdk-8-jdk \
python-dev \
libcurl4-nss-dev \
libsasl2-dev \
libsasl2-modules \
maven \
libapr1-dev \
libsvn-dev \
zlib1g-dev
RUN wget http://archive.apache.org/dist/mesos/${MESOS_VERSION}/${MESOS_ARTIFACT_FILENAME} \
&& tar -xf ${MESOS_ARTIFACT_FILENAME}
RUN cd mesos-${MESOS_VERSION} \
&& mkdir build \
&& cd build \
&& ../configure \
&& make -j 6 \
&& cp src/.libs/libmesos-${MESOS_VERSION}.so /usr/local/lib/libmesos-${MESOS_VERSION}.so \
&& cd ../.. \
&& rm -rf mesos-${MESOS_VERSION} ${MESOS_ARTIFACT_FILENAME} \
&& apt-get purge -y \
openjdk-8-jdk \
python-dev \
libsasl2-dev \
libsasl2-modules \
maven \
zlib1g-dev \
&& apt-get clean \
&& apt-get autoremove -y \
&& rm -rf /var/lib/apt/lists/*
RUN ln -s /usr/local/lib/libmesos-${MESOS_VERSION}.so /usr/lib/libmesos.so
It is working till configure command
../configure \
&& make -j 6 \
After configuring, the make commad is throwing out different errors. One of them is:
ar: 'u' modifier ignored since 'D' is the default (see 'U')
rc/core/lib/gpr/log_linux.cc:42:13: error: ambiguating new declaration of 'long int gettid()'
42 | static long gettid(void) { return syscall(__NR_gettid); }
| ^~~~~~
In file included from /usr/include/unistd.h:1170,
from src/core/lib/gpr/log_linux.cc:40:
/usr/include/x86_64-linux-gnu/bits/unistd_ext.h:34:16: note: old declaration '__pid_t gettid()'
34 | extern _pid_t gettid (void) _THROW;
| ^~~~~~
src/core/lib/gpr/log_linux.cc:42:13: warning: 'long int gettid()' defined but not used [-Wunused-function]
42 | static long gettid(void) { return syscall(__NR_gettid); }
| ^~~~~~
make[4]: *** [Makefile:2650: /mesos-1.9.0/build/3rdparty/grpc-1.10.0/objs/opt/src/core/lib/gpr/log_linux.o] Error 1
What I am doing wrong here in building mesos-spark-docker image for seahorse?? Please help me.