On 16.12.18 19:06, Kern Sibbald wrote: > The main new feature is the addition support for using Amazon S3 (and > other *identical* S3 providers). Note: Azur, Oracle S3,and Goggle S3 > are not compatible with Amazon S3.
I've been trying to get the cloud-driver with S3 enabled for Debian, but I hit some roadblocks. The first one is "configure" never checking for libs3 because the varible "support_s3" is never set and the checks are just skipped then, leaving HAVE_LIBS3 unset. After fixing this (see attached patch), I hit the following error during compile: /usr/bin/g++ -c -Wdate-time -D_FORTIFY_SOURCE=2 -x c++ -fno-strict-aliasing -fno-exceptions -fno-rtti -I. -I.. -g -O2 -fdebug-prefix-map=/build/bacula-9.4.0=. -fstack-protector-strong -Wformat -Werror=format-security -x c++ -fno-strict-aliasing -fno-exceptions -fno-rtti authenticate.c s3_driver.c: In member function 'virtual bool s3_driver::init(JCR*, cloud_dev*, DEVRES*)': s3_driver.c:561:10: error: 'S3BucketContext' {aka 'struct S3BucketContext'} has no member named 'authRegion' s3ctx.authRegion = cloud->region; ^~~~~~~~~~ (Should the formatting break, the full build log is here https://salsa.debian.org/bacula-team/bacula/-/jobs/95111/raw Is libs3 in Debian too old or the wrong libs3 to begin with? Grüße, Sven.
Description: Add code to check and enable S3 support Author: Sven Hartge <s...@svenhartge.de> Last-Update: 2018-12-19 --- a/autoconf/configure.in +++ b/autoconf/configure.in @@ -385,6 +385,7 @@ support_smartalloc=yes support_readline=yes support_lzo=yes +support_s3=yes support_conio=yes support_bat=no support_tls=no @@ -1896,6 +1897,20 @@ AC_CHECK_FUNC(accept4, [AC_DEFINE(HAVE_ACCEPT4, 1, [Define to 1 if you have the 'accept4' function.])]) +dnl --------------------------------------------------- +dnl Check for S3 support/directory (default on) +dnl --------------------------------------------------- +dnl this allows you to turn it completely off + +AC_ARG_ENABLE(s3, + AC_HELP_STRING([--disable-s3], [disable S3 support @<:@default=yes@:>@]), + [ + if test x$enableval = xno; then + support_s3=no + fi + ] +) + S3_INC= S3_LIBS= S3_LDFLAGS= @@ -3641,6 +3656,7 @@ Encryption support: ${support_crypto} ZLIB support: ${have_zlib} LZO support: ${have_lzo} + S3 support: ${have_libs3} enable-smartalloc: ${support_smartalloc} enable-lockmgr: ${support_lockmgr} bat support: ${support_bat}
signature.asc
Description: OpenPGP digital signature
_______________________________________________ Bacula-devel mailing list Bacula-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-devel