cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Carl Yeksigian (JIRA)" <>
Subject [jira] [Commented] (CASSANDRA-11049) Conflicting definitions of VERSION string when compiling cassandra_constants
Date Wed, 20 Jan 2016 22:27:39 GMT


Carl Yeksigian commented on CASSANDRA-11049:

Cassandra only uses the {{VERSION}} constant to return to the client in case the version is
used in the client library; if it isn't used, it isn't needed.

It looks like this library has been written against a different version of Thrift; the wire
protocol is stable between versions, but the APIs do change around a bit, so if the compiler
version doesn't match the library version, there will be some differences. If you are using
the same library and compiler, it's probably a Thrift bug and should be addressed on their

Another alternative would be to use one of the [native protocol drivers|],
especially if you are only using CQL. Support for Thrift was officially deprecated in 3.x
and will be removed in 4.x.

> Conflicting definitions of VERSION string when compiling cassandra_constants
> ----------------------------------------------------------------------------
>                 Key: CASSANDRA-11049
>                 URL:
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Configuration
>            Reporter: Peter Butler
> When compiling c++ code, as generated via thrift (latest version of thrift from git repository
as of January 19 2016), there are conflicting versions of the VERSION constant in cassandra_constant.*
  The specific error is:
> cassandra_constants.h:18:15: error: expected unqualified-id before string constant
> cassandra_constants.cpp: In constructor ‘org::apache::cassandra::cassandraConstants::cassandraConstants()’:
> cassandra_constants.cpp:14:17: error: assignment of read-only location ‘"1.0.0-dev"’
> cassandra_constants.cpp:14:17: error: incompatible types in assignment of ‘const char
[8]’ to ‘const char [10]’
> The location of the original definition is in the thrift include files in config.h:
> /* Version number of package */
> #define VERSION "1.0.0-dev"
> and the 2nd definition is in cassandra_constants.cpp
> cassandraConstants::cassandraConstants() {
>   VERSION = "19.36.0";
> Note that while the thrift version is up-to-date, the cassandra version we are using
is older.

This message was sent by Atlassian JIRA

View raw message