On 12/29/15 10:42 AM, styxCC wrote: > Hi there! > > I have two issues compiling bareos with --enable-client-only option. > One is a warning, I do not know if I can ignore it, but it seems like: > > ./configure --enable-client-only > [...] > Compiling passphrase.c > passphrase.c: In function 'char* generate_crypto_passphrase(int)': > passphrase.c:145: warning: array subscript has type 'char' > Compiling path_list.c > [...]
Yes that is kind of harmless but I will add a patch to use explicitly uint16_t in those functions. > > And the other problem is fatal: > > [...] > Compiling verify.c > Linking bareos-fd ... > /home/bari/Desktop/bareos-master/libtool --silent --tag=CXX --mode=link > /usr/bin/g++ -L../lib -L../findlib -o bareos-fd accurate.o > accurate_htable.o accurate_lmdb.o authenticate.o backup.o compression.o > crypto.o dir_cmd.o estimate.o fd_plugins.o filed_conf.o filed.o fileset.o > heartbeat.o restore.o sd_cmds.o socket_server.o status.o verify_vol.o > verify.o \ > -lbareosfind -lbareoscfg -lbareos -lm -lpthread -ldl -ldl \ > > dir_cmd.o: In function `clear_compression_flag_in_fileset': > /home/bari/Desktop/bareos-master/src/filed/dir_cmd.c:1597: undefined > reference to `cmprs_algo_to_text(unsigned int)' > collect2: ld returned 1 exit status > make[1]: *** [bareos-fd] Fehler 1 > make[1]: Leaving directory `/home/bari/Desktop/bareos-master/src/filed' > make[1]: Entering directory `/home/bari/Desktop/bareos-master/src/console' > Compiling console.c > [...] > > I tried several options during configuration like --enable-static-fd > --disable-libtool --enable-client-only and so on. > Under SLES 10 SP4 the same options are working (--enable-client-only), under > Ubuntu 14.04.3 LTS too. > Did I do something wrong, is there a workaround or isn´t it my fault? Seems we miss a dummy cmprs_algo_to_text() function when NO compression libs are found. So likely you don't have zlib-devel or so installed on that install and do have that on the others. I would at least make sure that you have some compression stuff available at least libz-devel and maybe even lzo-devel. -- Marco van Wieringen [email protected] Bareos GmbH & Co. KG Phone: +49-221-63069389 http://www.bareos.com Sitz der Gesellschaft: Köln | Amtsgericht Köln: HRA 29646 Komplementär: Bareos Verwaltungs-GmbH Geschäftsführer: Stephan Dühr, M. Außendorf, J. Steffens, P. Storz, M. v. Wieringen -- You received this message because you are subscribed to the Google Groups "bareos-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. For more options, visit https://groups.google.com/d/optout.
