You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@mesos.apache.org by sujz <43...@qq.com> on 2015/09/09 15:07:31 UTC

Build mesos failed when trying to dynamically linked against libgflags and libglog.

Hi all:
I am trying to run mesos on host which already installed libgflags and libglog, so I hope libmesos.so can dynamically loads libgflags and libglog.  

If I built mesos with configure && make && make install commands with no additional options, and copy released package on destination host, I found that it complains depends on libgflags.2 but not depends on libglog.2, so I guess libglog is statically linked into libmesos.so, after specifying the pre-installed libgflags path and run mesos-master, it produced an ERROR: something wrong with flag 'logtostderr' in file 'src/logging.cc'. One possibility: file 'src/logging.cc' is being linked both statically and dynamically into this executable.

I also tried configure with LIBS='-lglog' --enable-shared=yes --enable-static=no or LIBS='-lgflags -lglog' --enable-shared=yes --enable-static=no, this time it complains depending on both libgflags and libglog, but with no luck, the same error produced.

So could somebody be kind to tell me how to build mesos that can dynamically linked against libgflags and libglog that already installed on destination host?  thank you very much!