Subject: | Compilation error on some linux systems |
On Fedora 28 and Ubuntu 18.04 I see the following compilation error:
...
cc -c -I. -fwrapv -fno-strict-aliasing -pipe -fstack-protector-strong -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -DVERSION=\"0.09\" -DXS_VERSION=\"0.09\" -fPIC "-I/opt/perl-5.26.2/lib/5.26.2/x86_64-linux/CORE" Rados.c
In file included from Rados.xs:12:0:
const-c.inc: In function âconstantâ:
const-c.inc:160:35: error: expected expression before â;â token
*iv_return = VOIDPTR_RADOS_T;
^
./XS/List.xs: In function âXS_Ceph__Rados__List_open_ctxâ:
./XS/List.xs:23:5: warning: ârados_objects_list_openâ is deprecated [-Wdeprecated-declarations]
err = rados_objects_list_open(io, &ctx);
^~~
In file included from Rados.xs:10:0:
/usr/include/rados/librados.h:3833:20: note: declared here
CEPH_RADOS_API int rados_objects_list_open(
^~~~~~~~~~~~~~~~~~~~~~~
./XS/List.xs: In function âXS_Ceph__Rados__List_posâ:
./XS/List.xs:34:5: warning: ârados_objects_list_get_pg_hash_positionâ is deprecated [-Wdeprecated-declarations]
RETVAL = rados_objects_list_get_pg_hash_position(ctx);
^~~~~~
In file included from Rados.xs:10:0:
/usr/include/rados/librados.h:3836:25: note: declared here
CEPH_RADOS_API uint32_t rados_objects_list_get_pg_hash_position(
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./XS/List.xs: In function âXS_Ceph__Rados__List_seekâ:
./XS/List.xs:43:5: warning: ârados_objects_list_seekâ is deprecated [-Wdeprecated-declarations]
RETVAL = rados_objects_list_seek(ctx, pos);
^~~~~~
In file included from Rados.xs:10:0:
/usr/include/rados/librados.h:3838:25: note: declared here
CEPH_RADOS_API uint32_t rados_objects_list_seek(
^~~~~~~~~~~~~~~~~~~~~~~
./XS/List.xs: In function âXS_Ceph__Rados__List_nextâ:
./XS/List.xs:55:5: warning: ârados_objects_list_nextâ is deprecated [-Wdeprecated-declarations]
err = rados_objects_list_next(ctx, &entry, &key);
^~~
In file included from Rados.xs:10:0:
/usr/include/rados/librados.h:3841:20: note: declared here
CEPH_RADOS_API int rados_objects_list_next(
^~~~~~~~~~~~~~~~~~~~~~~
./XS/List.xs: In function âXS_Ceph__Rados__List_closeâ:
./XS/List.xs:70:5: warning: ârados_objects_list_closeâ is deprecated [-Wdeprecated-declarations]
rados_objects_list_close(ctx);
^~~~~~~~~~~~~~~~~~~~~~~~
In file included from Rados.xs:10:0:
/usr/include/rados/librados.h:3845:21: note: declared here
CEPH_RADOS_API void rados_objects_list_close(
^~~~~~~~~~~~~~~~~~~~~~~~
./XS/IO.xs: In function âXS_Ceph__Rados__IO__pool_required_alignmentâ:
./XS/IO.xs:110:5: warning: ârados_ioctx_pool_required_alignmentâ is deprecated [-Wdeprecated-declarations]
res = rados_ioctx_pool_required_alignment(io);
^~~
In file included from Rados.xs:10:0:
/usr/include/rados/librados.h:917:25: note: declared here
CEPH_RADOS_API uint64_t rados_ioctx_pool_required_alignment(rados_ioctx_t io)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Makefile:342: recipe for target 'Rados.o' failed
make: *** [Rados.o] Error 1
...