Skip to content

Commit

Permalink
Fix analytics compilation failure in ubuntu 16.04
Browse files Browse the repository at this point in the history
Change-Id: Ie07529fde0b26938cfcadcad5dc1f84b958744cb
Closes-Bug: #1638636
  • Loading branch information
Sundaresan Rajangam committed Nov 10, 2016
1 parent 44a39c2 commit 7ef887e
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/analytics/SConscript
Expand Up @@ -62,10 +62,8 @@ AnalyticsEnv.Prepend(LIBS=['cpuinfo',
'boost_program_options'])

(PLATFORM, VERSION, EXTRA) = platform.linux_distribution()
if PLATFORM.lower() != 'ubuntu':
AnalyticsEnv.Prepend(LIBS=['ssl',
'crypto',
'sasl2'])
if PLATFORM.lower() != 'ubuntu' or (PLATFORM.lower() == 'ubuntu' and VERSION.find('16.') == 0):
AnalyticsEnv.Prepend(LIBS=['ssl', 'crypto', 'sasl2'])

database_libs = ['cassandra_cql', 'cassandra']

Expand Down
4 changes: 4 additions & 0 deletions src/analytics/syslog_collector.cc
Expand Up @@ -16,7 +16,11 @@
#include <boost/spirit/include/phoenix_core.hpp>
#include <boost/spirit/include/phoenix_operator.hpp>
#include <boost/spirit/include/phoenix_stl.hpp>
#if BOOST_VERSION >= 105600
#include <boost/phoenix/object/construct.hpp>
#else
#include <boost/spirit/home/phoenix/object/construct.hpp>
#endif
#include <boost/uuid/uuid.hpp>
#if __GNUC_PREREQ(4, 6)
#pragma GCC diagnostic push
Expand Down
1 change: 1 addition & 0 deletions src/zookeeper/zookeeper_client.cc
Expand Up @@ -3,6 +3,7 @@
//

#include <cerrno>
#include <cstring>

#include <base/logging.h>

Expand Down

0 comments on commit 7ef887e

Please sign in to comment.