Repository navigation
Description
Some background I'm installing everything via
I'm on ubuntu 14.04
Relevant part of configure
checking folly/String.h usability... yes
checking folly/String.h presence... no
configure: WARNING: folly/String.h: accepted by the compiler, rejected by the preprocessor!
configure: WARNING: folly/String.h: proceeding with the compiler's result
checking for folly/String.h... yes
After configuring for fbthrift I run
$ makeThe output I get is
make all-recursive
make[1]: Entering directory /tmp/fblualib-build.uzwQS9/fbthrift/thrift' Making all in compiler make[2]: Entering directory/tmp/fblualib-build.uzwQS9/fbthrift/thrift/compiler'
make all-recursive
make[3]: Entering directory /tmp/fblualib-build.uzwQS9/fbthrift/thrift/compiler' Making all in . make[4]: Entering directory/tmp/fblualib-build.uzwQS9/fbthrift/thrift/compiler'
make[4]: Nothing to be done for all-am'. make[4]: Leaving directory/tmp/fblualib-build.uzwQS9/fbthrift/thrift/compiler'
Making all in py
make[4]: Entering directory /tmp/fblualib-build.uzwQS9/fbthrift/thrift/compiler/py' /usr/bin/python setup.py build running build running build_py copying ./frontend.so -> build/lib.linux-x86_64-2.7/thrift_compiler mkdir -p ../../.python-local/lib/python PYTHONPATH=../../.python-local/lib/python /usr/bin/python setup.py install --home=../../.python-local running install running build running build_py running install_lib copying build/lib.linux-x86_64-2.7/thrift_compiler/frontend.so -> ../../.python-local/lib/python/thrift_compiler running install_egg_info Removing ../../.python-local/lib/python/thrift_py-0.9.0.egg-info Writing ../../.python-local/lib/python/thrift_py-0.9.0.egg-info make[4]: Leaving directory/tmp/fblualib-build.uzwQS9/fbthrift/thrift/compiler/py'
make[3]: Leaving directory /tmp/fblualib-build.uzwQS9/fbthrift/thrift/compiler' make[2]: Leaving directory/tmp/fblualib-build.uzwQS9/fbthrift/thrift/compiler'
Making all in lib
make[2]: Entering directory /tmp/fblualib-build.uzwQS9/fbthrift/thrift/lib' Making all in thrift make[3]: Entering directory/tmp/fblualib-build.uzwQS9/fbthrift/thrift/lib/thrift'
../../compiler/thrift1 --gen cpp:templates,cob_style -r reflection.thrift
../../compiler/thrift1: error while loading shared libraries: libfolly.so.3: cannot open shared object file: No such file or directory
make[3]: *** [gen-cpp/reflection_constants.cpp] Error 127
make[3]: Leaving directory /tmp/fblualib-build.uzwQS9/fbthrift/thrift/lib/thrift' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory/tmp/fblualib-build.uzwQS9/fbthrift/thrift/lib'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/tmp/fblualib-build.uzwQS9/fbthrift/thrift'
make: *** [all] Error 2
I have libfolly.so.3 in /usr/local/lib
After digging through previous issues to try to find something and I think it might be related to CPPFLAGS or something like that in the configuration.
$ cat config.log | grep CPPFLAGSoutputs
ac_cv_env_CPPFLAGS_set=set
ac_cv_env_CPPFLAGS_value=
AM_CPPFLAGS='-I$(top_srcdir)/.. -pthread -I/usr/include'
BOOST_CPPFLAGS='-pthread -I/usr/include'
CPPFLAGS=''
LIBEVENT_CPPFLAGS=''
PYTHON_CPPFLAGS='-I/usr/include/python2.7'
ZLIB_CPPFLAGS=''
I'm not familiar with C++ build tools so I'm not sure how to go about configuring all these things.
I also tried using deps.sh that run into the same issue, although I think it's for ubuntu 12.10 anyway.
Thanks
Activity
djwatson commentedon Sep 17, 2014
It looks like either folly isn't installed, or LDFLAGS doesn't contain the path to libfolly
thrift/lib/cpp2/test/StreamingTest.cpp: fix SIOF bug and heap-use-aft…
Fix TMemoryBuffer::ensureCanWrite
Add e2e regression test for Cpp2Channel::writeError upgrade-teardown UAF