Bacula-users

Re: [Bacula-users] How to compile bacula with LZO

2015-05-11 07:35:18
Subject: Re: [Bacula-users] How to compile bacula with LZO
From: Francisco Javier Funes Nieto <esencia AT gmail DOT com>
To: bacula-users <bacula-users AT lists.sourceforge DOT net>
Date: Mon, 11 May 2015 13:30:09 +0200
Do you have the liblzo2-dev library installed? 

J.

2015-05-11 13:20 GMT+02:00 ladolf <bacula-forum AT backupcentral DOT com>:
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.langof AT gmail DOT com via Backup Central.
|Forward SPAM to abuse AT backupcentral DOT 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 AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users



--
_____________________________________________

Francisco Javier Funes Nieto [esencia AT gmail DOT com]
CANONIGOS
Servicios Informáticos para PYMES.
Cl. Cruz 2, 1º Oficina 7
Tlf: 958.536759 / 661134556
Fax: 958.521354
GRANADA - 18002
------------------------------------------------------------------------------
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 AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users
<Prev in Thread] Current Thread [Next in Thread>