Re: [Bacula-users] Compilation Errors of Bacula 9.6.3 S3 module on Debian10.
On 31.05.20 02:00, r0...@nxlplyx.com wrote: > I am trying to compile the S3 module for Bacula 9.6.3 on a new install of > Debian 10. > > That would be the source file: 'libs3-20181010.tar.gz' > > I unzip it, it extracts to its own directory. I cd to the directory, and > follow the instructions which say to type: 'make deb'. That version will not compile on any system with curl>7.62. You need the following patch to fix that problem: https://salsa.debian.org/hartge/libs3/-/raw/master/debian/patches/support-newer-curl.patch Grüße, Sven. signature.asc Description: OpenPGP digital signature ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] Compilation Errors of Bacula 9.6.3 S3 module on Debian10.
Hello, I haven’t had any major issue compiling libs3 on both Debian 10 and Ubuntu 20.04. There’s some curl and OpenSSL dev packages dependency you need installed in order to build libs3. It should be documented somewhere, I’ll make sure that’s the case. Best, Davide On Sun, 31 May 2020 at 04:41, r0...@nxlplyx.com wrote: > Hi Sven, > > I am trying to compile the S3 module for Bacula 9.6.3 on a new install of > Debian 10. > > That would be the source file: 'libs3-20181010.tar.gz' > > I unzip it, it extracts to its own directory. I cd to the directory, and > follow the instructions which say to type: 'make deb'. > > Is that what you wanted to know? > > Al > > > > > --- > $ make deb > build/obj/request.do: Compiling dynamic object > src/request.c: In function ‘request_curl_code_to_status’: > src/request.c:1709:5: error: duplicate case value > case CURLE_SSL_CACERT: > ^~~~ > src/request.c:1705:5: note: previously used here > case CURLE_PEER_FAILED_VERIFICATION: > ^~~~ > src/request.c: In function ‘sort_and_urlencode_query_string’: > src/request.c:865:9: error: ‘strncat’ specified bound 1 equals source > length [-Werror=stringop-overflow=] > strncat(result, "&", 1); > ^~~ > cc1: all warnings being treated as errors > make: *** [GNUmakefile:223: build/obj/request.do] Error 1 > --- > > If you could describe in a more complete manner what exactly you do, we > might be able to better follow and help. > > For example it is totally unclear to me what sources you are trying to > compile and what you did in what environment when you where doing it. > > Grüße, > Sven. > (Please don't Cc: me on mails.) > > ___ > Bacula-users mailing list > Bacula-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/bacula-users > ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] Compilation Errors of Bacula 9.6.3 S3 module on Debian10.
HI Sven, Thank you. The duplicate case statement problem was eliminated with that patch. Unfortunately there are now four(4) new errors, all appearing to be related to the strncat function. I don't suppose there is a patch for this? - $ make deb build/obj/request.do: Compiling dynamic object src/request.c: In function ‘sort_and_urlencode_query_string’: src/request.c:865:9: error: ‘strncat’ specified bound 1 equals source length [-Werror=stringop-overflow=] strncat(result, "&", 1); ^~~ In function ‘sort_and_urlencode_query_string.constprop’, inlined from ‘canonicalize_query_string’ at src/request.c:884:9, inlined from ‘setup_request.part.2’ at src/request.c:1519:5, inlined from ‘setup_request’ at src/request.c:1477:17: src/request.c:822:5: error: ‘strncpy’ specified bound depends on the length of the source argument [-Werror=stringop-overflow=] strncpy(tokenized, queryString, strlen(queryString) + 1); ^~~~ src/request.c: In function ‘setup_request’: src/request.c:822:37: note: length computed here strncpy(tokenized, queryString, strlen(queryString) + 1); ^~~ In function ‘sort_and_urlencode_query_string.constprop’, inlined from ‘canonicalize_query_string’ at src/request.c:884:9, inlined from ‘setup_request.part.2’ at src/request.c:1519:5, inlined from ‘setup_request’ at src/request.c:1477:17: src/request.c:863:13: error: ‘strncat’ output truncated before terminating nul copying as many bytes from a string as its length [-Werror=stringop-truncation] strncat(result, appendage, strlen(appendage)); ^ cc1: all warnings being treated as errors make: *** [GNUmakefile:223: build/obj/request.do] Error 1 - Regards, Al On 5/31/20 4:04 AM, Sven Hartge wrote: > On 31.05.20 02:00, r0...@nxlplyx.com wrote: > >> I am trying to compile the S3 module for Bacula 9.6.3 on a new install of >> Debian 10. >> >> That would be the source file: 'libs3-20181010.tar.gz' >> >> I unzip it, it extracts to its own directory. I cd to the directory, and >> follow the instructions which say to type: 'make deb'. > That version will not compile on any system with curl>7.62. > > You need the following patch to fix that problem: > > https://salsa.debian.org/hartge/libs3/-/raw/master/debian/patches/support-newer-curl.patch > > > Grüße, > Sven. > > ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] Compilation Errors of Bacula 9.6.3 S3 module on Debian10.
On 31.05.20 14:06, r0...@nxlplyx.com wrote: > Unfortunately there are now four(4) new errors, all appearing to be > related to the strncat function. > > I don't suppose there is a patch for this? > > - > > $ make deb > build/obj/request.do: Compiling dynamic object > src/request.c: In function ‘sort_and_urlencode_query_string’: > src/request.c:865:9: error: ‘strncat’ specified bound 1 equals source > length [-Werror=stringop-overflow=] > strncat(result, "&", 1); > ^~~ > In function ‘sort_and_urlencode_query_string.constprop’, > inlined from ‘canonicalize_query_string’ at src/request.c:884:9, > inlined from ‘setup_request.part.2’ at src/request.c:1519:5, > inlined from ‘setup_request’ at src/request.c:1477:17: > src/request.c:822:5: error: ‘strncpy’ specified bound depends on the > length of the source argument [-Werror=stringop-overflow=] > strncpy(tokenized, queryString, strlen(queryString) + 1); > ^~~~ > src/request.c: In function ‘setup_request’: > src/request.c:822:37: note: length computed here > strncpy(tokenized, queryString, strlen(queryString) + 1); > ^~~ > In function ‘sort_and_urlencode_query_string.constprop’, > inlined from ‘canonicalize_query_string’ at src/request.c:884:9, > inlined from ‘setup_request.part.2’ at src/request.c:1519:5, > inlined from ‘setup_request’ at src/request.c:1477:17: > src/request.c:863:13: error: ‘strncat’ output truncated before > terminating nul copying as many bytes from a string as its length > [-Werror=stringop-truncation] > strncat(result, appendage, strlen(appendage)); > ^ > cc1: all warnings being treated as errors > make: *** [GNUmakefile:223: build/obj/request.do] Error 1 Problem with that is the very very poor code quality of libs3 (which I have lameted quite often) and newer compilers now warn or error out when encountering those problems. I hava another patch at https://salsa.debian.org/hartge/libs3/-/raw/master/debian/patches/fix-buffer-sizes.patch, please try if this fixes or at least works around those problems. Note: no guarantee is made by me that this creates a working or even safe and secure library. Grüße, Sven. signature.asc Description: OpenPGP digital signature ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] Recommendation for NAS Appliance that Supports Bacula Community
Hi. I use Synology, 10TB mount with iscsi (open-iscsi), and for emulated Tape-Library, i used mhvtl. https://www.mhvtl.com/ I have also configured NAS servers using iscsi. You only need: tgt and know lvm well. (aptitude install tgt and lvm) Regards. On Wed, May 27, 2020 at 2:38 AM Andrea Venturoli wrote: > On 2020-05-26 19:10, J W wrote: > > > I want to run Bacula Director on the NAS rather than mounting the NAS > > storage on the server and running Director on the server so that if > > something goes wrong and overwrites everything on the server then it > > does not overwrite the NAS as well. > > > > Any suggestions? I have been looking at FREENAS, Synology, Qnap , and > > ReadyNAS so far. > > Not exactly what you are asking, but... > I've never run the Director on a NAS; I've been running the Storage > Daemon on Zyxels and QNAPs. > The latter are overall better (which is normal, given they cost more). > I've never had many troubles, anyway. > > Just my 2c. > > bye > av. > > > ___ > Bacula-users mailing list > Bacula-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/bacula-users > -- # # Sistema Operativo: Debian # #Caracas, Venezuela # # ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users