Below is the script that I use to "configure" the Bacula build. It automatically includes lzo if it is installed on your system: ===== begin script #!/bin/sh # This is Kern's configure script for Bacula PREFIX=/opt/bacula CFLAGS="-g -O2 -Wall" \ ./configure \ --sbindir=${PREFIX}/bin \ --sysconfdir=${PREFIX}/etc \ --docdir=${PREFIX}/html \ --htmldir=${PREFIX}/html \ --with-working-dir=${PREFIX}/working \ --with-pid-dir=${PREFIX}/working \ --with-scriptdir=${PREFIX}/scripts \ --with-plugindir=${PREFIX}/plugins \ --libdir=${PREFIX}/lib \ --enable-smartalloc \ --disable-conio \ --enable-readline \ --enable-bat \ --with-postgresql \ --with-dump-email=n...@email.com \ --with-job-email=n...@email.com \ --with-smtp-host=mail.email.com \ --with-baseport=9101
exit 0 === end script === It produces the following output on Ubuntu 14.04: Configuration on Sun May 3 15:47:18 CEST 2015: Host: x86_64-unknown-linux-gnu -- ubuntu 14.04 Bacula version: Bacula 8.3.0 (11 April 2015) Source code location: . Install binaries: /opt/bacula/bin Install libraries: /opt/bacula/lib Install config files: /opt/bacula/etc Scripts directory: /opt/bacula/scripts Archive directory: /tmp Working directory: /opt/bacula/working PID directory: /opt/bacula/working Subsys directory: /var/run/subsys Man directory: ${datarootdir}/man Data directory: /usr/share Plugin directory: /opt/bacula/plugins C Compiler: gcc 4.8.2-19ubuntu1) C++ Compiler: /usr/bin/g++ 4.8.2-19ubuntu1) Compiler flags: -g -O2 -Wall -fno-strict-aliasing -fno-exceptions -fno-rtti Linker flags: Libraries: -lpthread -ldl -ldl Statically Linked Tools: no Statically Linked FD: no Statically Linked SD: no Statically Linked DIR: no Statically Linked CONS: no Database backends: PostgreSQL Database port: Database name: bacula Database user: bacula Job Output Email: k...@sibbald.com Traceback Email: k...@sibbald.com SMTP Host Address: mail.sibbald.com Director Port: 9101 File daemon Port: 9102 Storage daemon Port: 9103 Director User: Director Group: Storage Daemon User: Storage DaemonGroup: File Daemon User: File Daemon Group: Large file support: yes Bacula conio support: no -lreadline -ltinfo readline support: yes TCP Wrappers support: no TLS support: yes Encryption support: yes ZLIB support: yes LZO support: yes enable-smartalloc: yes enable-lockmgr: no bat support: yes client-only: no build-dird: yes build-stored: yes Plugin support: yes AFS support: no ACL support: yes XATTR support: yes systemd support: no Batch insert enabled: PostgreSQL On 11.05.2015 13:20, ladolf wrote: > I would like to compile bacula 7.0.5 with LZO compression support on Ubuntu > Server 14.04.2 LTS, but I am unable to do so. > > I have successfully compiled LZO 2.0.9 > (http://www.oberhumer.com/opensource/lzo/download/lzo-2.09.tar.gz) using: > ./configure --prefix=/usr/local > (I have tried with and without --with-gnu-ld) > > /usr/local/lib/ cointaines theese files: > liblzo2.a liblzo2.la liblzo2.so liblzo2.so.2 liblzo2.so.2.0.0 > > I am trying to compile bacula ussing command: > > CPPFLAGS=-I/usr/local/include LDFLAGS=-L/usr/local/lib ./configure > --sysconfdir=/etc/bacula --with-scriptdir=/etc/bacula/scripts > --with-working-dir=/var/bacula/working --with-pid-dir=/var/bacula/pid > --with-readline=/usr/include/readline --enable-lockmgr --enable-smartalloc > --with-included-gettext --with-openssl --with-db-name=bacula > --with-db-user=bacula --with-postgresql --with-lzo > > Without --with-lzo it compiles ok, but with --with-lzo it always returns > error when running "make": > ... > Compiling status.c > Compiling verify.c > Compiling verify_vol.c > Compiling xattr.c > Linking bacula-fd ... > /home/lado/Build/bacula-7.0.5/libtool --silent --tag=CXX --mode=link > /usr/bin/g++ -L/usr/local/lib -L../lib -L../findlib -o bacula-fd filed.o > authenticate.o acl.o backup.o estimate.o fd_plugins.o accurate.o filed_conf.o > heartbeat.o job.o restore.o status.o verify.o verify_vol.o xattr.o \ > -lz -lbacfind -lbaccfg -lbac -lm -lpthread -ldl -ldl \ > -lssl -lcrypto -lzo2 > /usr/bin/ld: cannot find -lzo2 > collect2: error: ld returned 1 exit status > make[1]: *** [bacula-fd] Error 1 > make[1]: Leaving directory `/home/lado/Build/bacula-7.0.5/src/filed' > > > ====== Error in /home/lado/Build/bacula-7.0.5/src/filed ====== > > I have also tried options with -LLIBDIR but with nosuccess. I have tried > adding --with-lzo=/usr/local/include/lzo. I have tried with compiled LZO and > with using package liblzo2-dev from repository. I have no more ideas how to > compile bacula with LZO support. > Please help. How can I compile bacula with LZO support? > > +---------------------------------------------------------------------- > |This was sent by lado.lan...@gmail.com via Backup Central. > |Forward SPAM to ab...@backupcentral.com. > +---------------------------------------------------------------------- > > > > ------------------------------------------------------------------------------ > One dashboard for servers and applications across Physical-Virtual-Cloud > Widest out-of-the-box monitoring support with 50+ applications > Performance metrics, stats and reports that give you Actionable Insights > Deep dive visibility with transaction tracing using APM Insight. > http://ad.doubleclick.net/ddm/clk/290420510;117567292;y > _______________________________________________ > Bacula-users mailing list > Bacula-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/bacula-users > ------------------------------------------------------------------------------ One dashboard for servers and applications across Physical-Virtual-Cloud Widest out-of-the-box monitoring support with 50+ applications Performance metrics, stats and reports that give you Actionable Insights Deep dive visibility with transaction tracing using APM Insight. http://ad.doubleclick.net/ddm/clk/290420510;117567292;y _______________________________________________ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users