On 19.12.18 22:56, Sven Hartge wrote:
> On 19.12.18 22:05, Sven Hartge wrote:
>> On 19.12.18 21:55, Sven Hartge wrote:
>>
>>> Is libs3 in Debian too old or the wrong libs3 to begin with?
>>
>> To answer my own question: Yes, libs3 in Debian is too old.
> 
> Using the current libs3-HEAD from https://github.com/bji/libs3 results
> in different errors, see attached build log for the s3_driver.o using
> gcc-8.2.0.

Sorry, foiled again by STDERR. Here is the complete build log with all
errors this time.

Grüße,
Sven.
Compiling s3_driver.c
/usr/bin/g++   -c  -x c++ -fno-strict-aliasing -fno-exceptions -fno-rtti  -I. 
-I..  -g -O2 -Wall -x c++ -fno-strict-aliasing -fno-exceptions -fno-rtti  
s3_driver.c
s3_driver.c: In member function ‘S3Status s3_driver::put_object(transfer*, 
const char*, const char*)’:
s3_driver.c:349:16: error: invalid conversion from ‘S3PutObjectHandler*’ to 
‘int’ [-fpermissive]
                &putObjectHandler, &ctx);
                ^~~~~~~~~~~~~~~~~
s3_driver.c:349:35: error: cannot convert ‘bacula_ctx*’ to ‘const 
S3PutObjectHandler*’
                &putObjectHandler, &ctx);
                                   ^~~~
In file included from s3_driver.h:32,
                 from s3_driver.c:28:
/usr/include/libs3.h:2050:46: note:   initializing argument 7 of ‘void 
S3_put_object(const S3BucketContext*, const char*, u_int64_t, const 
S3PutProperties*, S3RequestContext*, int, const S3PutObjectHandler*, void*)’
                    const S3PutObjectHandler *handler, void *callbackData);
                    ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~
s3_driver.c: In member function ‘bool s3_driver::get_cloud_object(transfer*, 
const char*, const char*)’:
s3_driver.c:445:32: error: invalid conversion from ‘S3GetObjectHandler*’ to 
‘int’ [-fpermissive]
                  byteCount, 0, &getObjectHandler, &ctx);
                                ^~~~~~~~~~~~~~~~~
s3_driver.c:445:51: error: cannot convert ‘bacula_ctx*’ to ‘const 
S3GetObjectHandler*’
                  byteCount, 0, &getObjectHandler, &ctx);
                                                   ^~~~
In file included from s3_driver.h:32,
                 from s3_driver.c:28:
/usr/include/libs3.h:2178:46: note:   initializing argument 8 of ‘void 
S3_get_object(const S3BucketContext*, const char*, const S3GetConditions*, 
u_int64_t, u_int64_t, S3RequestContext*, int, const S3GetObjectHandler*, void*)’
                    const S3GetObjectHandler *handler, void *callbackData);
                    ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~
s3_driver.c: In member function ‘virtual bool 
s3_driver::truncate_cloud_volume(DCR*, const char*, ilist*, POOLMEM*&)’:
s3_driver.c:481:48: error: invalid conversion from ‘S3ResponseHandler*’ to 
‘int’ [-fpermissive]
       S3_delete_object(&s3ctx, cloud_fname, 0, &responseHandler, &ctx);
                                                ^~~~~~~~~~~~~~~~
s3_driver.c:481:66: error: cannot convert ‘bacula_ctx*’ to ‘const 
S3ResponseHandler*’
       S3_delete_object(&s3ctx, cloud_fname, 0, &responseHandler, &ctx);
                                                                  ^~~~
In file included from s3_driver.h:32,
                 from s3_driver.c:28:
/usr/include/libs3.h:2219:48: note:   initializing argument 5 of ‘void 
S3_delete_object(const S3BucketContext*, const char*, S3RequestContext*, int, 
const S3ResponseHandler*, void*)’
                       const S3ResponseHandler *handler, void *callbackData);
                       ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~
s3_driver.c: In member function ‘virtual bool 
s3_driver::get_cloud_volume_parts_list(DCR*, const char*, ilist*, POOLMEM*&)’:
s3_driver.c:669:22: error: invalid conversion from ‘S3ListBucketHandler*’ to 
‘int’ [-fpermissive]
                      &partslistBucketHandler, &ctx);
                      ^~~~~~~~~~~~~~~~~~~~~~~
s3_driver.c:669:47: error: cannot convert ‘bacula_ctx*’ to ‘const 
S3ListBucketHandler*’
                      &partslistBucketHandler, &ctx);
                                               ^~~~
In file included from s3_driver.h:32,
                 from s3_driver.c:28:
/usr/include/libs3.h:2017:48: note:   initializing argument 8 of ‘void 
S3_list_bucket(const S3BucketContext*, const char*, const char*, const char*, 
int, S3RequestContext*, int, const S3ListBucketHandler*, void*)’
                     const S3ListBucketHandler *handler, void *callbackData);
                     ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~
s3_driver.c: In member function ‘virtual bool 
s3_driver::get_cloud_volumes_list(DCR*, alist*, POOLMEM*&)’:
s3_driver.c:742:22: error: invalid conversion from ‘S3ListBucketHandler*’ to 
‘int’ [-fpermissive]
                      &volumeslistBucketHandler, &ctx);
                      ^~~~~~~~~~~~~~~~~~~~~~~~~
s3_driver.c:742:49: error: cannot convert ‘bacula_ctx*’ to ‘const 
S3ListBucketHandler*’
                      &volumeslistBucketHandler, &ctx);
                                                 ^~~~
In file included from s3_driver.h:32,
                 from s3_driver.c:28:
/usr/include/libs3.h:2017:48: note:   initializing argument 8 of ‘void 
S3_list_bucket(const S3BucketContext*, const char*, const char*, const char*, 
int, S3RequestContext*, int, const S3ListBucketHandler*, void*)’
                     const S3ListBucketHandler *handler, void *callbackData);
                     ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~
make: *** [Makefile:208: s3_driver.o] Error 1

Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
Bacula-devel mailing list
Bacula-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-devel

Reply via email to