Hello James, On 5/3/24 22:57, James Israel via Bacula-users wrote:
I am trying to configure bacula-15.0.2 (from the bacula-15.0.2.tar.gz file found at https://www.bacula.org/source-download-center, the “Download Bacula Community” link), and after many installs of software that was needed for the configure to work, the make script is stalling out at:make[1]: Entering directory '/tmp/bacula-15.0.2/src/filed' Compiling restore.c restore.c: In function ‘bool decompress_data(JCR*, int32_t, char**, u_int32_t*)’: restore.c:1387:13: error: ‘compress_len’ was not declared in this scope; did you mean ‘comp_len’? 1387 | compress_len = jcr->compress_buf_size; | ^~~~~~~~~~~~ | comp_len restore.c:1388:13: error: ‘cbuf’ was not declared in this scope 1388 | cbuf = (const unsigned char*)*data + sizeof(comp_stream_header); | ^~~~ restore.c:1389:13: error: ‘real_compress_len’ was not declared in this scope 1389 | real_compress_len = *length - sizeof(comp_stream_header); | ^~~~~~~~~~~~~~~~~ make[1]: *** [Makefile:189: restore.o] Error 1 Something about the function isn’t working, but I can’t figure out how to fix it. It is saying some things were “not declared in this scope”, how to declare them? (compress_len, cbuf, real_compress_len)
This is a problem that I'm going to fix, but I believe that something like gzip is not installed. I would recommend to install them in order to use the compression feature.
Is something more needed in the configure operation? I configured with a script that included:
Look the output of the configure, you might see if gzip is detected properly. Best Regards, Eric
CFLAGS="-g -Wall" \ ./configure \ --sbindir=/opt/bacula/bin \ --sysconfdir=/etc/bacula \ --enable-smartalloc \ --enable-conio \ --enable-bat \ --with-postgresql \ --with-working-dir=/opt/bacula/working \ --with-scriptdir=/etc/bacula/scripts \ --with-plugindir=/etc/bacula/plugins \ --with-pid-dir=/var/run \ --with-subsys-dir=/var/run \ [email protected] \ [email protected] \ --with-smtp-host=mail.humortimes.com \ --with-aws \ --with-baseport=9101 James Israel _______________________________________________ Bacula-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/bacula-users
_______________________________________________ Bacula-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/bacula-users
