Analytics fails to build: 'Metadata' in namespace 'RdKafka' does not name a type
Affects | Status | Importance | Assigned to | Milestone | ||
---|---|---|---|---|---|---|
Juniper Openstack | Status tracked in Trunk | |||||
R3.0 |
Fix Committed
|
Undecided
|
Anish Mehta | |||
Trunk |
Fix Committed
|
Undecided
|
Anish Mehta | |||
OpenContrail |
New
|
Undecided
|
Unassigned |
Bug Description
We are facing following issue during build of contrail-analytics from R3.0 branch on Ubuntu trusty. Using librdkafka-dev 0.8.6. Is this issue with older librdkafka? If so, there should be version requirement in Build-Depends.
g++ -o build/productio
controller/
controller/
controller/
controller/
controller/
controller/
scons: *** [build/
Changed in juniperopenstack: | |
assignee: | nobody → Raj Reddy (rajreddy) |
tags: | added: analytics |
Changed in juniperopenstack: | |
importance: | Undecided → High |
Changed in juniperopenstack: | |
assignee: | Raj Reddy (rajreddy) → Anish Mehta (amehta00) |
Can you pick 0.9.0-0contrail0 from /launchpad. net/~opencontra il/+archive/ ubuntu/ ppa
https:/
regards,
Raj
> On Jun 9, 2016, at 6:43 AM, Filip Pytloun <email address hidden> wrote: n/analytics/ OpServerProxy. o -c -g -O3 -Wall -Werror -Wsign-compare -Wno-unused- local-typedefs -DLINUX -DUSE_CASSANDRA_CQL -Icontroller/src -Ibuild/include -Icontroller/lib -I/usr/ include/ python2. 7 -I/usr/ include/ librdkafka -Ibuild/ production/ tools/sandesh/ library/ common -Itools/ sandesh/ library/ common -Ibuild/ production/ io -Icontroller/src/io -Ibuild/ production/ database -Icontroller/ src/database -Ibuild/ production/ database/ cassandra/ cql -Icontroller/ src/database/ cassandra/ cql -Ibuild/production -Ibuild/ production/ http/client -Icontroller/ src/http/ client -Ibuild/ production/ discovery/ client -Icontroller/ src/discovery/ client -Ibuild/ production/ analytics -Icontroller/ src/analytics -Ibuild/production -Ibuild/ production/ base/sandesh -Icontroller/ src/base/ sandesh controller/ src/analytics/ OpServerProxy. cc src/analytics/ OpServerProxy. cc: In member function 'bool OpServerProxy: :OpServerImpl: :KafkaTimer( )': src/analytics/ OpServerProxy. cc:498: 36: error: 'Metadata' in namespace 'RdKafka' does not name a type src/analytics/ OpServerProxy. cc:498: 54: error: invalid type in declaration before ';' token src/analytics/ OpServerProxy. cc:500: 57: error: 'class RdKafka::Producer' has no member named 'metadata' ->metadata( true, NULL, src/analytics/ OpServerProxy. cc:506: 267: error: request for member 'orig_broker_id' in '* metadata', which is of non-class type 'int' >orig_broker_ id() << src/analytics/ OpServerProxy. cc:506: 304: error: request for member 'orig_broker_name' in '* metadata', which is of non-class type 'int' >orig_broker_ id() << production/ analytics/ OpServerProxy. o] Error 1
>
> Public bug reported:
>
> We are facing following issue during build of contrail-analytics from
> R3.0 branch on Ubuntu trusty. Using librdkafka-dev 0.8.6. Is this issue
> with older librdkafka? If so, there should be version requirement in
> Build-Depends.
>
> g++ -o build/productio
> controller/
> controller/
> class RdKafka::Metadata *metadata;
> ^
> controller/
> class RdKafka::Metadata *metadata;
> ^
> controller/
> RdKafka::ErrorCode err = producer_
> ^
> controller/
> LOG(ERROR, "Metadata for " << metadata-
> ^
> controller/
> LOG(ERROR, "Metadata for " << metadata-
> ^
> scons: *** [build/
>
> ** Affects: ope...