You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When running python setup.py install the compiling fails.
Please help as I am very desperate to work with HBase.
I am using pychbase version 0.1.8 with gcc 4.9.2.
python setup.py install
WARNING: $PYCHBASE_LIBJVM_DIR not set, trying $JAVA_HOME...
WARNING: Located /usr/lib/jvm/java-8-oracle/jre/lib/amd64/server
WARNING: $PYCHBASE_IS_MAPR not set, defaulting to True. This will not work on Non-MapR environments.
Please export $PYCHBASE_IS_MAPR=FALSE if this is on Cloudera/etc
WARNING: $PYCHBASE_INCLUDE_DIR not set. I am defaulting to '/opt/mapr/include'
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
pychbase.cc:1405:46: warning: extra tokens at end of #ifdef directive
#ifdef PYCHBASE_MAPR == 1
^
pychbase.cc:1514:30: warning: extra tokens at end of #ifdef directive
#ifdef PYCHBASE_MAPR == 1
^
pychbase.cc:2439:30: warning: extra tokens at end of #ifdef directive
#ifdef PYCHBASE_MAPR == 1
^
pychbase.cc:2450:30: warning: extra tokens at end of #ifdef directive
#ifdef PYCHBASE_MAPR == 1
^
pychbase.cc: In function ‘int Foo_init(Foo*, PyObject*, PyObject*)’:
pychbase.cc:190:18: warning: deprecated conversion from string constant to ‘char’ [-Wwrite-strings]
self->secret = "secret lol";
^
pychbase.cc: At global scope:
pychbase.cc:207:1: warning: deprecated conversion from string constant to ‘char’ [-Wwrite-strings]
};
^
pychbase.cc:207:1: warning: deprecated conversion from string constant to ‘char’ [-Wwrite-strings]
pychbase.cc:261:1: warning: deprecated conversion from string constant to ‘char’ [-Wwrite-strings]
};
^
pychbase.cc:261:1: warning: deprecated conversion from string constant to ‘char’ [-Wwrite-strings]
pychbase.cc:261:1: warning: deprecated conversion from string constant to ‘char’ [-Wwrite-strings]
pychbase.cc:261:1: warning: deprecated conversion from string constant to ‘char’ [-Wwrite-strings]
pychbase.cc: In function ‘int split(char, char*, char*)’:
pychbase.cc:424:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (i = 0; i < strlen(fq) && fq[i] != '\0'; i++) {
^
pychbase.cc:441:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (i=i + 1; i < strlen(fq) && fq[i] != '\0'; i++) {
^
pychbase.cc: In function ‘int split_columns(char*, char*, char*)’:
pychbase.cc:465:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (i = 0; i < strlen(fq) && fq[i] != '\0'; i++) {
^
pychbase.cc:483:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (i=i + 1; i < strlen(fq) && fq[i] != '\0'; i++) {
^
pychbase.cc: In constructor ‘CallBackBuffer::CallBackBuffer(RowBuffer*, BatchCallBackBuffer*)’:
pychbase.cc:547:15: warning: extended initializer lists only available with -std=c++11 or -std=gnu++11
mutex = PTHREAD_MUTEX_INITIALIZER;
^
pychbase.cc:553:20: warning: converting to non-pointer type ‘int’ from NULL [-Wconversion-null]
scan_limit = NULL;
^
pychbase.cc: In constructor ‘BatchCallBackBuffer::BatchCallBackBuffer(int)’:
pychbase.cc:589:15: warning: extended initializer lists only available with -std=c++11 or -std=gnu++11
mutex = PTHREAD_MUTEX_INITIALIZER;
^
pychbase.cc: At global scope:
pychbase.cc:708:1: warning: deprecated conversion from string constant to ‘char’ [-Wwrite-strings]
};
^
pychbase.cc:708:1: warning: deprecated conversion from string constant to ‘char’ [-Wwrite-strings]
pychbase.cc: In function ‘PyObject* Connection_create_table(Connection*, PyObject*)’:
pychbase.cc:925:1: warning: jump to label ‘error’ [-fpermissive]
error:
^
pychbase.cc:56:18: warning: from here [-fpermissive]
goto error;
^
pychbase.cc:839:5: note: in expansion of macro ‘CHECK_SET_EXC’
CHECK_SET_EXC(number_of_families >= 1, PyExc_ValueError, "Need at least one column family\n");
^
pychbase.cc:841:19: error: crosses initialization of ‘void* families [number_of_families]’
hb_columndesc families[number_of_families];
^
pychbase.cc:925:1: warning: jump to label ‘error’ [-fpermissive]
error:
^
pychbase.cc:48:18: warning: from here [-fpermissive]
goto error;
^
pychbase.cc:836:5: note: in expansion of macro ‘CHECK_FORMAT_EXC’
CHECK_FORMAT_EXC(err != 0, PyExc_ValueError, "Table '%s' already exists\n", table_name);
^
pychbase.cc:841:19: error: crosses initialization of ‘void* families [number_of_families]’
hb_columndesc families[number_of_families];
^
pychbase.cc:925:1: warning: jump to label ‘error’ [-fpermissive]
error:
^
pychbase.cc:56:18: warning: from here [-fpermissive]
goto error;
^
pychbase.cc:833:5: note: in expansion of macro ‘CHECK_SET_EXC’
CHECK_SET_EXC(table_name_length <= 1000, PyExc_ValueError, "Table name is too long\n");
^
pychbase.cc:841:19: error: crosses initialization of ‘void* families [number_of_families]’
hb_columndesc families[number_of_families];
^
pychbase.cc: At global scope:
pychbase.cc:1154:1: warning: deprecated conversion from string constant to ‘char’ [-Wwrite-strings]
};
^
pychbase.cc:1154:1: warning: deprecated conversion from string constant to ‘char’ [-Wwrite-strings]
pychbase.cc: In function ‘int row_add_columns(PyObject*, void*, RowBuffer*, add_columns_type, int64_t)’:
pychbase.cc:1406:148: error: ‘hb_scanner_add_column’ was not declared in this scope
err = hb_scanner_add_column(((hb_scanner_t ) get), (byte_t ) family, strlen(family), (byte_t ) qualifier, qualifier_len);
^
pychbase.cc: In function ‘PyObject Table_row(Table, PyObject)’:
pychbase.cc:1462:30: warning: converting to non-pointer type ‘uint64_t {aka long unsigned int}’ from NULL [-Wconversion-null]
uint64_t timestamp_int = NULL;
^
pychbase.cc:1515:64: warning: passing NULL to non-pointer argument 2 of ‘int32_t hb_get_set_timerange(hb_get_t, int64_t, int64_t)’ [-Wconversion-null]
err = hb_get_set_timerange(get, NULL, timestamp_int + 1);
^
pychbase.cc:1530:76: warning: passing NULL to non-pointer argument 5 of ‘int row_add_columns(PyObject, void*, RowBuffer*, add_columns_type, int64_t)’ [-Wconversion-null]
err = row_add_columns(columns, &get, row_buff, add_columns_to_get, NULL);
^
pychbase.cc: In function ‘PyObject* Table_put(Table*, PyObject*)’:
pychbase.cc:1830:30: warning: converting to non-pointer type ‘uint64_t {aka long unsigned int}’ from NULL [-Wconversion-null]
uint64_t timestamp_int = NULL;
^
pychbase.cc: In function ‘PyObject* Table_scan(Table*, PyObject*, PyObject*)’:
pychbase.cc:2270:19: warning: deprecated conversion from string constant to ‘char’ [-Wwrite-strings]
char start = "";
^
pychbase.cc:2271:18: warning: deprecated conversion from string constant to ‘char’ [-Wwrite-strings]
char stop = "";
^
pychbase.cc:2278:30: warning: converting to non-pointer type ‘uint64_t {aka long unsigned int}’ from NULL [-Wconversion-null]
uint64_t timestamp_int = NULL;
^
pychbase.cc:2291:21: warning: converting to non-pointer type ‘int’ from NULL [-Wconversion-null]
int limit_int = NULL;
^
pychbase.cc:2306:157: warning: deprecated conversion from string constant to ‘char’ [-Wwrite-strings]
static char kwlist[] = {"start", "stop", "columns", "filter", "timestamp", "include_timestamp", "only_rowkeys", "batch_size", "is_count", "limit", NULL};
^
pychbase.cc:2306:157: warning: deprecated conversion from string constant to ‘char’ [-Wwrite-strings]
pychbase.cc:2306:157: warning: deprecated conversion from string constant to ‘char’ [-Wwrite-strings]
pychbase.cc:2306:157: warning: deprecated conversion from string constant to ‘char’ [-Wwrite-strings]
pychbase.cc:2306:157: warning: deprecated conversion from string constant to ‘char’ [-Wwrite-strings]
pychbase.cc:2306:157: warning: deprecated conversion from string constant to ‘char’ [-Wwrite-strings]
pychbase.cc:2306:157: warning: deprecated conversion from string constant to ‘char’ [-Wwrite-strings]
pychbase.cc:2306:157: warning: deprecated conversion from string constant to ‘char’ [-Wwrite-strings]
pychbase.cc:2306:157: warning: deprecated conversion from string constant to ‘char’ [-Wwrite-strings]
pychbase.cc:2306:157: warning: deprecated conversion from string constant to ‘char’ [-Wwrite-strings]
pychbase.cc:47:55: warning: format ‘%i’ expects argument of type ‘int’, but argument 3 has type ‘uint64_t {aka long unsigned int}’ [-Wformat=]
PyErr_Format(exc_type, format, VA_ARGS);
^
pychbase.cc:2328:13: note: in expansion of macro ‘CHECK_FORMAT_EXC’
CHECK_FORMAT_EXC(timestamp_int >= 0, PyExc_ValueError, "timestamp must be >= 0, not %i\n", timestamp_int);
^
pychbase.cc:2377:33: warning: deprecated conversion from string constant to ‘char’ [-Wwrite-strings]
char minimize_filter = "FirstKeyOnlyFilter() AND KeyOnlyFilter()";
^
pychbase.cc:2440:69: error: ‘hb_scanner_set_timerange’ was not declared in this scope
err = hb_scanner_set_timerange(scan, NULL, timestamp_int + 1);
^
pychbase.cc:47:55: warning: format ‘%i’ expects argument of type ‘int’, but argument 3 has type ‘uint64_t {aka long unsigned int}’ [-Wformat=]
PyErr_Format(exc_type, format, VA_ARGS);
^
pychbase.cc:2441:9: note: in expansion of macro ‘CHECK_FORMAT_EXC’
CHECK_FORMAT_EXC(err == 0, PyExc_ValueError, "Could not set timestamp '%i' on scan: %i\n", timestamp_int, err);
^
pychbase.cc:2451:85: warning: invalid conversion from ‘byte_t {aka unsigned char*}’ to ‘const char’ [-fpermissive]
err = hb_scanner_set_filter(scan, (byte_t )filter_char, strlen(filter_char));
^
pychbase.cc:2451:85: error: too many arguments to function ‘int32_t hb_scanner_set_filter(hb_scanner_t, const char)’
In file included from /usr/local/include/hbase/hbase.h:33:0,
from pychbase.cc:5:
/usr/local/include/hbase/scanner.h:122:1: note: declared here
hb_scanner_set_filter(
^
pychbase.cc:2472:77: warning: passing NULL to non-pointer argument 5 of ‘int row_add_columns(PyObject, void*, RowBuffer*, add_columns_type, int64_t)’ [-Wconversion-null]
err = row_add_columns(columns, &scan, row_buf, add_columns_to_scan, NULL);
^
pychbase.cc: In function ‘PyObject* Table_delete(Table*, PyObject*)’:
pychbase.cc:2618:30: warning: converting to non-pointer type ‘uint64_t {aka long unsigned int}’ from NULL [-Wconversion-null]
uint64_t timestamp_int = NULL;
^
pychbase.cc: In function ‘PyObject* Table_batch(Table*, PyObject*)’:
pychbase.cc:2842:34: warning: converting to non-pointer type ‘uint64_t {aka long unsigned int}’ from NULL [-Wconversion-null]
uint64_t timestamp_int = NULL;
^
pychbase.cc:3031:28: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
while (local_count < number_of_actions) {
^
pychbase.cc: In function ‘PyObject* Table_delete_prefix(Table*, PyObject*)’:
pychbase.cc:3073:27: warning: deprecated conversion from string constant to ‘char’ [-Wwrite-strings]
char row_key_start = "";
^
pychbase.cc:3086:40: warning: argument to ‘sizeof’ in ‘int snprintf(char, size_t, const char, ...)’ call is the same expression as the destination; did you mean to provide an explicit length? [-Wsizeof-pointer-memaccess]
err = snprintf(row_key_stop, sizeof(row_key_stop), "%s~", row_key_start);
^
pychbase.cc:3075:15: warning: unused variable ‘table_scan_args’ [-Wunused-variable]
PyObject table_scan_args = NULL;
^
pychbase.cc: In function ‘PyObject py_buildvalue_char(PyObject*, PyObject*)’:
pychbase.cc:3219:71: warning: format ‘%i’ expects argument of type ‘int’, but argument 2 has type ‘Py_ssize_t {aka long int}’ [-Wformat=]
printf("row_key_obj ref count is now %i\n", row_key_obj->ob_refcnt);
^
pychbase.cc:3227:50: warning: format ‘%i’ expects argument of type ‘int’, but argument 2 has type ‘Py_ssize_t {aka long int}’ [-Wformat=]
printf("dict ref count %i\n", dict->ob_refcnt);
^
pychbase.cc:3230:51: warning: format ‘%i’ expects argument of type ‘int’, but argument 2 has type ‘Py_ssize_t {aka long int}’ [-Wformat=]
printf("key ref count is %i\n", key->ob_refcnt);
^
pychbase.cc:3234:50: warning: format ‘%i’ expects argument of type ‘int’, but argument 2 has type ‘Py_ssize_t {aka long int}’ [-Wformat=]
printf("dict ref count %i\n", dict->ob_refcnt);
^
pychbase.cc:3235:51: warning: format ‘%i’ expects argument of type ‘int’, but argument 2 has type ‘Py_ssize_t {aka long int}’ [-Wformat=]
printf("key ref count is %i\n", key->ob_refcnt);
^
pychbase.cc:3236:71: warning: format ‘%i’ expects argument of type ‘int’, but argument 2 has type ‘Py_ssize_t {aka long int}’ [-Wformat=]
printf("row_key_obj ref count is now %i\n", row_key_obj->ob_refcnt);
^
pychbase.cc:3240:50: warning: format ‘%i’ expects argument of type ‘int’, but argument 2 has type ‘Py_ssize_t {aka long int}’ [-Wformat=]
printf("dict ref count %i\n", dict->ob_refcnt);
^
pychbase.cc:3241:51: warning: format ‘%i’ expects argument of type ‘int’, but argument 2 has type ‘Py_ssize_t {aka long int}’ [-Wformat=]
printf("key ref count is %i\n", key->ob_refcnt);
^
pychbase.cc:3242:71: warning: format ‘%i’ expects argument of type ‘int’, but argument 2 has type ‘Py_ssize_t {aka long int}’ [-Wformat=]
printf("row_key_obj ref count is now %i\n", row_key_obj->ob_refcnt);
^
pychbase.cc: In function ‘PyObject* keywords(PyObject*, PyObject*, PyObject*)’:
pychbase.cc:3526:65: warning: deprecated conversion from string constant to ‘char’ [-Wwrite-strings]
static char kwlist[] = {"a", "b", "foo", "bar", "baz", NULL};
^
pychbase.cc:3526:65: warning: deprecated conversion from string constant to ‘char’ [-Wwrite-strings]
pychbase.cc:3526:65: warning: deprecated conversion from string constant to ‘char’ [-Wwrite-strings]
pychbase.cc:3526:65: warning: deprecated conversion from string constant to ‘char’ [-Wwrite-strings]
pychbase.cc:3526:65: warning: deprecated conversion from string constant to ‘char’ [-Wwrite-strings]
pychbase.cc: In function ‘void init_pychbase()’:
pychbase.cc:3626:64: warning: deprecated conversion from string constant to ‘char’ [-Wwrite-strings]
SpamError = PyErr_NewException("pychbase.error", NULL, NULL);
^
pychbase.cc:3630:70: warning: deprecated conversion from string constant to ‘char’ [-Wwrite-strings]
HBaseError = PyErr_NewException("pychbase.HBaseError", NULL, NULL);
^
pychbase.cc: At global scope:
pychbase.cc:2242:12: warning: ‘int convert_timestamp(PyObject*, void*)’ defined but not used [-Wunused-function]
static int convert_timestamp(PyObject *python, void c) {
^
pychbase.cc:3263:13: warning: ‘void noob(char)’ defined but not used [-Wunused-function]
static void noob(char *row_key) {
^
error: command 'gcc' failed with exit status 1
The text was updated successfully, but these errors were encountered:
When running python setup.py install the compiling fails.
Please help as I am very desperate to work with HBase.
I am using pychbase version 0.1.8 with gcc 4.9.2.
python setup.py install
WARNING: $PYCHBASE_LIBJVM_DIR not set, trying $JAVA_HOME...
WARNING: Located /usr/lib/jvm/java-8-oracle/jre/lib/amd64/server
WARNING: $PYCHBASE_IS_MAPR not set, defaulting to True. This will not work on Non-MapR environments.
Please export $PYCHBASE_IS_MAPR=FALSE if this is on Cloudera/etc
WARNING: $PYCHBASE_INCLUDE_DIR not set. I am defaulting to '/opt/mapr/include'
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
pychbase.cc:1405:46: warning: extra tokens at end of #ifdef directive
#ifdef PYCHBASE_MAPR == 1
^
pychbase.cc:1514:30: warning: extra tokens at end of #ifdef directive
#ifdef PYCHBASE_MAPR == 1
^
pychbase.cc:2439:30: warning: extra tokens at end of #ifdef directive
#ifdef PYCHBASE_MAPR == 1
^
pychbase.cc:2450:30: warning: extra tokens at end of #ifdef directive
#ifdef PYCHBASE_MAPR == 1
^
pychbase.cc: In function ‘int Foo_init(Foo*, PyObject*, PyObject*)’:
pychbase.cc:190:18: warning: deprecated conversion from string constant to ‘char’ [-Wwrite-strings]
self->secret = "secret lol";
^
pychbase.cc: At global scope:
pychbase.cc:207:1: warning: deprecated conversion from string constant to ‘char’ [-Wwrite-strings]
};
^
pychbase.cc:207:1: warning: deprecated conversion from string constant to ‘char’ [-Wwrite-strings]
pychbase.cc:261:1: warning: deprecated conversion from string constant to ‘char’ [-Wwrite-strings]
};
^
pychbase.cc:261:1: warning: deprecated conversion from string constant to ‘char’ [-Wwrite-strings]
pychbase.cc:261:1: warning: deprecated conversion from string constant to ‘char’ [-Wwrite-strings]
pychbase.cc:261:1: warning: deprecated conversion from string constant to ‘char’ [-Wwrite-strings]
pychbase.cc: In function ‘int split(char, char*, char*)’:
pychbase.cc:424:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (i = 0; i < strlen(fq) && fq[i] != '\0'; i++) {
^
pychbase.cc:441:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (i=i + 1; i < strlen(fq) && fq[i] != '\0'; i++) {
^
pychbase.cc: In function ‘int split_columns(char*, char*, char*)’:
pychbase.cc:465:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (i = 0; i < strlen(fq) && fq[i] != '\0'; i++) {
^
pychbase.cc:483:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (i=i + 1; i < strlen(fq) && fq[i] != '\0'; i++) {
^
pychbase.cc: In constructor ‘CallBackBuffer::CallBackBuffer(RowBuffer*, BatchCallBackBuffer*)’:
pychbase.cc:547:15: warning: extended initializer lists only available with -std=c++11 or -std=gnu++11
mutex = PTHREAD_MUTEX_INITIALIZER;
^
pychbase.cc:553:20: warning: converting to non-pointer type ‘int’ from NULL [-Wconversion-null]
scan_limit = NULL;
^
pychbase.cc: In constructor ‘BatchCallBackBuffer::BatchCallBackBuffer(int)’:
pychbase.cc:589:15: warning: extended initializer lists only available with -std=c++11 or -std=gnu++11
mutex = PTHREAD_MUTEX_INITIALIZER;
^
pychbase.cc: At global scope:
pychbase.cc:708:1: warning: deprecated conversion from string constant to ‘char’ [-Wwrite-strings]
};
^
pychbase.cc:708:1: warning: deprecated conversion from string constant to ‘char’ [-Wwrite-strings]
pychbase.cc: In function ‘PyObject* Connection_create_table(Connection*, PyObject*)’:
pychbase.cc:925:1: warning: jump to label ‘error’ [-fpermissive]
error:
^
pychbase.cc:56:18: warning: from here [-fpermissive]
goto error;
^
pychbase.cc:839:5: note: in expansion of macro ‘CHECK_SET_EXC’
CHECK_SET_EXC(number_of_families >= 1, PyExc_ValueError, "Need at least one column family\n");
^
pychbase.cc:841:19: error: crosses initialization of ‘void* families [number_of_families]’
hb_columndesc families[number_of_families];
^
pychbase.cc:925:1: warning: jump to label ‘error’ [-fpermissive]
error:
^
pychbase.cc:48:18: warning: from here [-fpermissive]
goto error;
^
pychbase.cc:836:5: note: in expansion of macro ‘CHECK_FORMAT_EXC’
CHECK_FORMAT_EXC(err != 0, PyExc_ValueError, "Table '%s' already exists\n", table_name);
^
pychbase.cc:841:19: error: crosses initialization of ‘void* families [number_of_families]’
hb_columndesc families[number_of_families];
^
pychbase.cc:925:1: warning: jump to label ‘error’ [-fpermissive]
error:
^
pychbase.cc:56:18: warning: from here [-fpermissive]
goto error;
^
pychbase.cc:833:5: note: in expansion of macro ‘CHECK_SET_EXC’
CHECK_SET_EXC(table_name_length <= 1000, PyExc_ValueError, "Table name is too long\n");
^
pychbase.cc:841:19: error: crosses initialization of ‘void* families [number_of_families]’
hb_columndesc families[number_of_families];
^
pychbase.cc: At global scope:
pychbase.cc:1154:1: warning: deprecated conversion from string constant to ‘char’ [-Wwrite-strings]
};
^
pychbase.cc:1154:1: warning: deprecated conversion from string constant to ‘char’ [-Wwrite-strings]
pychbase.cc: In function ‘int row_add_columns(PyObject*, void*, RowBuffer*, add_columns_type, int64_t)’:
pychbase.cc:1406:148: error: ‘hb_scanner_add_column’ was not declared in this scope
err = hb_scanner_add_column(((hb_scanner_t ) get), (byte_t ) family, strlen(family), (byte_t ) qualifier, qualifier_len);
^
pychbase.cc: In function ‘PyObject Table_row(Table, PyObject)’:
pychbase.cc:1462:30: warning: converting to non-pointer type ‘uint64_t {aka long unsigned int}’ from NULL [-Wconversion-null]
uint64_t timestamp_int = NULL;
^
pychbase.cc:1515:64: warning: passing NULL to non-pointer argument 2 of ‘int32_t hb_get_set_timerange(hb_get_t, int64_t, int64_t)’ [-Wconversion-null]
err = hb_get_set_timerange(get, NULL, timestamp_int + 1);
^
pychbase.cc:1530:76: warning: passing NULL to non-pointer argument 5 of ‘int row_add_columns(PyObject, void*, RowBuffer*, add_columns_type, int64_t)’ [-Wconversion-null]
err = row_add_columns(columns, &get, row_buff, add_columns_to_get, NULL);
^
pychbase.cc: In function ‘PyObject* Table_put(Table*, PyObject*)’:
pychbase.cc:1830:30: warning: converting to non-pointer type ‘uint64_t {aka long unsigned int}’ from NULL [-Wconversion-null]
uint64_t timestamp_int = NULL;
^
pychbase.cc: In function ‘PyObject* Table_scan(Table*, PyObject*, PyObject*)’:
pychbase.cc:2270:19: warning: deprecated conversion from string constant to ‘char’ [-Wwrite-strings]
char start = "";
^
pychbase.cc:2271:18: warning: deprecated conversion from string constant to ‘char’ [-Wwrite-strings]
char stop = "";
^
pychbase.cc:2278:30: warning: converting to non-pointer type ‘uint64_t {aka long unsigned int}’ from NULL [-Wconversion-null]
uint64_t timestamp_int = NULL;
^
pychbase.cc:2291:21: warning: converting to non-pointer type ‘int’ from NULL [-Wconversion-null]
int limit_int = NULL;
^
pychbase.cc:2306:157: warning: deprecated conversion from string constant to ‘char’ [-Wwrite-strings]
static char kwlist[] = {"start", "stop", "columns", "filter", "timestamp", "include_timestamp", "only_rowkeys", "batch_size", "is_count", "limit", NULL};
^
pychbase.cc:2306:157: warning: deprecated conversion from string constant to ‘char’ [-Wwrite-strings]
pychbase.cc:2306:157: warning: deprecated conversion from string constant to ‘char’ [-Wwrite-strings]
pychbase.cc:2306:157: warning: deprecated conversion from string constant to ‘char’ [-Wwrite-strings]
pychbase.cc:2306:157: warning: deprecated conversion from string constant to ‘char’ [-Wwrite-strings]
pychbase.cc:2306:157: warning: deprecated conversion from string constant to ‘char’ [-Wwrite-strings]
pychbase.cc:2306:157: warning: deprecated conversion from string constant to ‘char’ [-Wwrite-strings]
pychbase.cc:2306:157: warning: deprecated conversion from string constant to ‘char’ [-Wwrite-strings]
pychbase.cc:2306:157: warning: deprecated conversion from string constant to ‘char’ [-Wwrite-strings]
pychbase.cc:2306:157: warning: deprecated conversion from string constant to ‘char’ [-Wwrite-strings]
pychbase.cc:47:55: warning: format ‘%i’ expects argument of type ‘int’, but argument 3 has type ‘uint64_t {aka long unsigned int}’ [-Wformat=]
PyErr_Format(exc_type, format, VA_ARGS);
^
pychbase.cc:2328:13: note: in expansion of macro ‘CHECK_FORMAT_EXC’
CHECK_FORMAT_EXC(timestamp_int >= 0, PyExc_ValueError, "timestamp must be >= 0, not %i\n", timestamp_int);
^
pychbase.cc:2377:33: warning: deprecated conversion from string constant to ‘char’ [-Wwrite-strings]
char minimize_filter = "FirstKeyOnlyFilter() AND KeyOnlyFilter()";
^
pychbase.cc:2440:69: error: ‘hb_scanner_set_timerange’ was not declared in this scope
err = hb_scanner_set_timerange(scan, NULL, timestamp_int + 1);
^
pychbase.cc:47:55: warning: format ‘%i’ expects argument of type ‘int’, but argument 3 has type ‘uint64_t {aka long unsigned int}’ [-Wformat=]
PyErr_Format(exc_type, format, VA_ARGS);
^
pychbase.cc:2441:9: note: in expansion of macro ‘CHECK_FORMAT_EXC’
CHECK_FORMAT_EXC(err == 0, PyExc_ValueError, "Could not set timestamp '%i' on scan: %i\n", timestamp_int, err);
^
pychbase.cc:2451:85: warning: invalid conversion from ‘byte_t {aka unsigned char*}’ to ‘const char’ [-fpermissive]
err = hb_scanner_set_filter(scan, (byte_t )filter_char, strlen(filter_char));
^
pychbase.cc:2451:85: error: too many arguments to function ‘int32_t hb_scanner_set_filter(hb_scanner_t, const char)’
In file included from /usr/local/include/hbase/hbase.h:33:0,
from pychbase.cc:5:
/usr/local/include/hbase/scanner.h:122:1: note: declared here
hb_scanner_set_filter(
^
pychbase.cc:2472:77: warning: passing NULL to non-pointer argument 5 of ‘int row_add_columns(PyObject, void*, RowBuffer*, add_columns_type, int64_t)’ [-Wconversion-null]
err = row_add_columns(columns, &scan, row_buf, add_columns_to_scan, NULL);
^
pychbase.cc: In function ‘PyObject* Table_delete(Table*, PyObject*)’:
pychbase.cc:2618:30: warning: converting to non-pointer type ‘uint64_t {aka long unsigned int}’ from NULL [-Wconversion-null]
uint64_t timestamp_int = NULL;
^
pychbase.cc: In function ‘PyObject* Table_batch(Table*, PyObject*)’:
pychbase.cc:2842:34: warning: converting to non-pointer type ‘uint64_t {aka long unsigned int}’ from NULL [-Wconversion-null]
uint64_t timestamp_int = NULL;
^
pychbase.cc:3031:28: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
while (local_count < number_of_actions) {
^
pychbase.cc: In function ‘PyObject* Table_delete_prefix(Table*, PyObject*)’:
pychbase.cc:3073:27: warning: deprecated conversion from string constant to ‘char’ [-Wwrite-strings]
char row_key_start = "";
^
pychbase.cc:3086:40: warning: argument to ‘sizeof’ in ‘int snprintf(char, size_t, const char, ...)’ call is the same expression as the destination; did you mean to provide an explicit length? [-Wsizeof-pointer-memaccess]
err = snprintf(row_key_stop, sizeof(row_key_stop), "%s~", row_key_start);
^
pychbase.cc:3075:15: warning: unused variable ‘table_scan_args’ [-Wunused-variable]
PyObject table_scan_args = NULL;
^
pychbase.cc: In function ‘PyObject py_buildvalue_char(PyObject*, PyObject*)’:
pychbase.cc:3219:71: warning: format ‘%i’ expects argument of type ‘int’, but argument 2 has type ‘Py_ssize_t {aka long int}’ [-Wformat=]
printf("row_key_obj ref count is now %i\n", row_key_obj->ob_refcnt);
^
pychbase.cc:3227:50: warning: format ‘%i’ expects argument of type ‘int’, but argument 2 has type ‘Py_ssize_t {aka long int}’ [-Wformat=]
printf("dict ref count %i\n", dict->ob_refcnt);
^
pychbase.cc:3230:51: warning: format ‘%i’ expects argument of type ‘int’, but argument 2 has type ‘Py_ssize_t {aka long int}’ [-Wformat=]
printf("key ref count is %i\n", key->ob_refcnt);
^
pychbase.cc:3234:50: warning: format ‘%i’ expects argument of type ‘int’, but argument 2 has type ‘Py_ssize_t {aka long int}’ [-Wformat=]
printf("dict ref count %i\n", dict->ob_refcnt);
^
pychbase.cc:3235:51: warning: format ‘%i’ expects argument of type ‘int’, but argument 2 has type ‘Py_ssize_t {aka long int}’ [-Wformat=]
printf("key ref count is %i\n", key->ob_refcnt);
^
pychbase.cc:3236:71: warning: format ‘%i’ expects argument of type ‘int’, but argument 2 has type ‘Py_ssize_t {aka long int}’ [-Wformat=]
printf("row_key_obj ref count is now %i\n", row_key_obj->ob_refcnt);
^
pychbase.cc:3240:50: warning: format ‘%i’ expects argument of type ‘int’, but argument 2 has type ‘Py_ssize_t {aka long int}’ [-Wformat=]
printf("dict ref count %i\n", dict->ob_refcnt);
^
pychbase.cc:3241:51: warning: format ‘%i’ expects argument of type ‘int’, but argument 2 has type ‘Py_ssize_t {aka long int}’ [-Wformat=]
printf("key ref count is %i\n", key->ob_refcnt);
^
pychbase.cc:3242:71: warning: format ‘%i’ expects argument of type ‘int’, but argument 2 has type ‘Py_ssize_t {aka long int}’ [-Wformat=]
printf("row_key_obj ref count is now %i\n", row_key_obj->ob_refcnt);
^
pychbase.cc: In function ‘PyObject* keywords(PyObject*, PyObject*, PyObject*)’:
pychbase.cc:3526:65: warning: deprecated conversion from string constant to ‘char’ [-Wwrite-strings]
static char kwlist[] = {"a", "b", "foo", "bar", "baz", NULL};
^
pychbase.cc:3526:65: warning: deprecated conversion from string constant to ‘char’ [-Wwrite-strings]
pychbase.cc:3526:65: warning: deprecated conversion from string constant to ‘char’ [-Wwrite-strings]
pychbase.cc:3526:65: warning: deprecated conversion from string constant to ‘char’ [-Wwrite-strings]
pychbase.cc:3526:65: warning: deprecated conversion from string constant to ‘char’ [-Wwrite-strings]
pychbase.cc: In function ‘void init_pychbase()’:
pychbase.cc:3626:64: warning: deprecated conversion from string constant to ‘char’ [-Wwrite-strings]
SpamError = PyErr_NewException("pychbase.error", NULL, NULL);
^
pychbase.cc:3630:70: warning: deprecated conversion from string constant to ‘char’ [-Wwrite-strings]
HBaseError = PyErr_NewException("pychbase.HBaseError", NULL, NULL);
^
pychbase.cc: At global scope:
pychbase.cc:2242:12: warning: ‘int convert_timestamp(PyObject*, void*)’ defined but not used [-Wunused-function]
static int convert_timestamp(PyObject *python, void c) {
^
pychbase.cc:3263:13: warning: ‘void noob(char)’ defined but not used [-Wunused-function]
static void noob(char *row_key) {
^
error: command 'gcc' failed with exit status 1
The text was updated successfully, but these errors were encountered: