You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@thrift.apache.org by Paul Pankhurst <pa...@crocodile-rcs.com> on 2011/09/12 18:07:07 UTC

Compilation errors with thrift and hypertables using c_glib

Hi

I am trying to use hypertables via the thrift interface, on Centos 5.

I can build thrift without any problems, and it generates the code (using –gen c_glib) for the Client.thrift and Hql.thrift definitions for hypertables with no problems.
However when I try to compile the c source files that are generated I get a heap load of errors:

client_service.c: In function 'client_service_client_recv_next_cells_as_arrays':
client_service.c:4451: warning: passing argument 1 of 'g_ptr_array_add' from incompatible pointer type
client_service.c: In function 'client_service_client_recv_next_cells_serialized':
client_service.c:4656: warning: assignment from incompatible pointer type
client_service.c:4657: warning: passing argument 1 of 'g_byte_array_append' from incompatible pointer type
client_service.c: In function 'client_service_client_recv_next_row_as_arrays':
client_service.c:5067: warning: passing argument 1 of 'g_ptr_array_add' from incompatible pointer type
client_service.c: In function 'client_service_client_recv_next_row_serialized':
client_service.c:5272: warning: assignment from incompatible pointer type
client_service.c:5273: warning: passing argument 1 of 'g_byte_array_append' from incompatible pointer type
client_service.c: In function 'client_service_client_recv_get_row_as_arrays':
client_service.c:5733: warning: passing argument 1 of 'g_ptr_array_add' from incompatible pointer type
client_service.c: In function 'client_service_client_recv_get_row_serialized':
client_service.c:5954: warning: assignment from incompatible pointer type
client_service.c:5955: warning: passing argument 1 of 'g_byte_array_append' from incompatible pointer type
client_service.c: In function 'client_service_client_recv_get_cell':
client_service.c:6172: warning: assignment from incompatible pointer type
client_service.c:6173: warning: passing argument 1 of 'g_byte_array_append' from incompatible pointer type
client_service.c: In function 'client_service_client_recv_get_cells_as_arrays':
client_service.c:6637: warning: passing argument 1 of 'g_ptr_array_add' from incompatible pointer type
client_service.c: In function 'client_service_client_recv_get_cells_serialized':
client_service.c:6860: warning: assignment from incompatible pointer type
client_service.c:6861: warning: passing argument 1 of 'g_byte_array_append' from incompatible pointer type
client_service.c: In function 'client_service_client_send_offer_cells_as_arrays':
client_service.c:7391: warning: dereferencing 'void *' pointer
client_service.c:7391: error: request for member 'len' in something not a structure or union
client_service.c:7395: warning: dereferencing 'void *' pointer
client_service.c:7395: error: request for member 'len' in something not a structure or union
client_service.c: In function 'client_service_client_send_offer_cell_as_array':
client_service.c:7820: error: request for member 'len' in something not a structure or union
client_service.c:7824: error: request for member 'len' in something not a structure or union
client_service.c: In function 'client_service_client_send_set_cell_as_array':
client_service.c:9004: error: request for member 'len' in something not a structure or union
client_service.c:9008: error: request for member 'len' in something not a structure or union
client_service.c: In function 'client_service_client_send_set_cells_as_arrays':
client_service.c:9411: warning: dereferencing 'void *' pointer
client_service.c:9411: error: request for member 'len' in something not a structure or union
client_service.c:9415: warning: dereferencing 'void *' pointer
client_service.c:9415: error: request for member 'len' in something not a structure or union
client_service.c: In function 'client_service_client_send_set_cell_as_array_async':
client_service.c:10178: error: request for member 'len' in something not a structure or union
client_service.c:10182: error: request for member 'len' in something not a structure or union
client_service.c: In function 'client_service_client_send_set_cells_as_arrays_async':
client_service.c:10585: warning: dereferencing 'void *' pointer
client_service.c:10585: error: request for member 'len' in something not a structure or union
client_service.c:10589: warning: dereferencing 'void *' pointer
client_service.c:10589: error: request for member 'len' in something not a structure or union

Does anyone have any idea what the problem is here?
I have tried with both the 0.7.0 and 0.8.0-dev versions of thrift and the result is the same.
Incidentally I am using the prebuilt hypertables rpm 0.9.5.0.

Many Thanks

Paul