[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#727085: Now we don't depend on the weird libevent patch



On Mon, Dec 30, 2013 at 8:36 PM, Paul Tarjan <pt@fb.com> wrote:
>>> https://github.com/hhvm/packaging/tree/master/hhvm/deb
>> Checked wheezy/ which is just wrong. It's a binary debian directory
>>and not a source one, I think 'Essential' is only used if its value is
>>'yes'. Standards-Version is missing, no long package description, ...
>
> I would love a pull request, or if you get really into this I'm happy to
> make you a co-author on the repo.
 I can use Debian servers or an own GitHub repository for packaging,
no problem. Actually I think I'm ~90% ready with HHVM packaging. But
I've one problem with one of its dependency, folly. Steps to
reproduce:
1) Get an up-to-date Sid install.
2) git clone https://github.com/facebook/folly.git folly
3) as root:
apt-get install autoconf automake libtool
apt-get install libgoogle-glog-dev libgtest-dev
libdouble-conversion-dev libboost-thread-dev libboost-system-dev
4) cd folly/folly/
5) autoreconf -i
6) ./configure
[...]
checking for openlog in -lglog... yes
checking for getenv in -lgflags... yes
checking for boostlib >= 1.20.0... yes
checking whether the Boost::Thread library is available... yes
configure: error: Could not find a version of the library!

I can't make it go forward. :( It seems configure has an option
(--with-boost=no) to disable Boost libraries usage, but even then I
have the same output. I wonder if it finds the Boost::Thread library,
then what's version couldn't be found?
config.log does not help more:
[...]
configure:16701: checking whether the Boost::Thread library is available
configure:16733: g++ -c -pthread -std=gnu++0x -g -O2   conftest.cpp >&5
configure:16733: $? = 0
configure:16748: result: yes
configure:16921: error: Could not find a version of the library!

I think the conftest.cpp is this:
-- cut --
#include <boost/thread/thread.hpp>
int
main ()
{
boost::thread_group thrds;
  return 0;
  ;
  return 0;
}
-- cut --
While it has two return statements, it compiles just fine with:
$ g++ -o conftest conftest.cpp -lboost_thread -lboost_system
$ ./conftest
$

As last resort tried it with all Boost libraries installed, ie after:
# apt-get install libboost-all-dev

But it has the same error as a result. Any help is appreciated.
Laszlo/GCS


Reply to: