# C client and ubuntu 12.04 + gcc4.8

**URL:** <https://discuss.aerospike.com/t/c-client-and-ubuntu-12-04-gcc4-8/1683>\
**Category:** C Client Library\
**Created:** [August 23, 2015, 6:53am UTC](https://discuss.aerospike.com/t/c-client-and-ubuntu-12-04-gcc4-8/1683 "2015-08-23T06:53:35Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Slader](https://avatars.discourse-cdn.com/v4/letter/s/9de053/32.png) [@Slader](https://discuss.aerospike.com/u/Slader)\
**Post date:** [August 23, 2015, 6:53am UTC](https://discuss.aerospike.com/t/c-client-and-ubuntu-12-04-gcc4-8/1683/1 "2015-08-23T06:53:35Z")

</div>

Please, fix c client package for Ubuntu 12.04. Gcc 4.8 produce error:

> /usr/include/aerospike/aerospike\_batch.h: In function ‘as\_batch\_read\_record\* as\_batch\_read\_reserve(as\_batch\_read\_records\*)’: /usr/include/aerospike/aerospike\_batch.h:193:41: error: invalid conversion from ‘void\*’ to ‘as\_batch\_read\_record\* {aka as\_batch\_read\_record\_s\*}’ [-fpermissive] return as\_vector\_reserve(&records-\>list);

I fix it with replace

```
return as_vector_reserve(&records->list);

```

to

```
return (as_batch_read_record*) as_vector_reserve(&records->list);

```

---

<div class="post-metadata">

**Author:** ![rbotzer](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.aerospike.com/rbotzer/32/2114_2.png) [@rbotzer](https://discuss.aerospike.com/u/rbotzer)\
**Post date:** [August 23, 2015, 3:08pm UTC](https://discuss.aerospike.com/t/c-client-and-ubuntu-12-04-gcc4-8/1683/2 "2015-08-23T15:08:32Z")

</div>

Could you fork [aerospike/aerospike-client-c](https://github.com/aerospike/aerospike-client-c), modify yours and open a pull request?

---

<div class="post-metadata">

**Author:** ![wchu](https://avatars.discourse-cdn.com/v4/letter/w/a5b964/32.png) [@wchu](https://discuss.aerospike.com/u/wchu)\
**Post date:** [August 24, 2015, 4:33pm UTC](https://discuss.aerospike.com/t/c-client-and-ubuntu-12-04-gcc4-8/1683/3 "2015-08-24T16:33:44Z")

</div>

This should be out in the next C client release.

> [@Compilation fails : C++ App with Aerospike C client (3.1.19) integrated \[Bug\]](https://discuss.aerospike.com/t/compilation-fails-c-app-with-aerospike-c-cleint-3-1-19-integrated/1689):
>
> I have download the aerospike C client 3.1.19 and integrated it with my C++ application. When I tried to compile my application, it fails in the aerospike header file with below error: include/aerospike/aerospike\_batch.h: In function ‘as\_batch\_read\_record\* as\_batch\_read\_reserve(as\_batch\_read\_records\*)’: include/aerospike/aerospike\_batch.h:193:41: error: invalid conversion from ‘void\*’ to ‘as\_batch\_read\_record\* {aka as\_batch\_read\_record\_s\*}’ [-fpermissive] Some typecasting issue is there. I jus…

Thanks.
