Skip Menu |

This queue is for tickets about the Ceph-Rados CPAN distribution.

Report information
The Basics
Id: 127947
Status: resolved
Priority: 0/
Queue: Ceph-Rados

People
Owner: Nobody in particular
Requestors: SREZIC [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: 0.09
Fixed in: (no value)



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 ...
On 2018-12-06 15:19:27, SREZIC wrote: Show quoted text
> 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 > ...
This compilation error does not happen anymore with newer versions (tested 0.12).