You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@mesos.apache.org by "Charles Allen (JIRA)" <ji...@apache.org> on 2017/10/24 14:31:01 UTC

[jira] [Created] (MESOS-8127) Static build fails

Charles Allen created MESOS-8127:
------------------------------------

             Summary: Static build fails
                 Key: MESOS-8127
                 URL: https://issues.apache.org/jira/browse/MESOS-8127
             Project: Mesos
          Issue Type: Bug
          Components: build
    Affects Versions: 1.4.0
            Reporter: Charles Allen


{code}
/usr/bin/ld: ./.libs/libmesos.a(libry_http_parser_la-http_parser.o): relocation R_X86_64_32S against `.rodata' can not be used when making a shared object; recompile with -fPIC
./.libs/libmesos.a: error adding symbols: Bad value
{code}

Is the error which results when you try to do 

{code}
The command '/bin/sh -c set -ex &&   ./bootstrap &&   mkdir build && cd build &&   ../configure --prefix=/opt/mesos --disable-java --disable-python --enable-optimize --enable-static --disable-shared &&   make &&   make install' returned a non-zero code: 2
{code}


Dockerfile:

{code}
FROM ubuntu:xenial
WORKDIR /usr/src/mesos
COPY . .
RUN set -ex && \
  apt-get update && \
  apt-get install build-essential libapr1-dev libsasl2-dev python-dev libcurl4-nss-dev libsasl2-modules libsvn-dev libz-dev git autoconf libtool -y && \
  ./bootstrap && \
  mkdir build && cd build && \
  ../configure --prefix=/opt/mesos --disable-java --disable-python --enable-optimize --enable-static --disable-shared && \
  make && \
  make install
{code}




--
This message was sent by Atlassian JIRA
(v6.4.14#64029)