>>>>> On Fri, 10 Sep 2010 11:59:00 -0700, Doug Sampson said:
> 
> Today I went ahead to upgrade bacula-client to 5.0.3 from 5.0.2 and the
> build broke down at the point listed below:
> 
> Linking bacula-fd ...
> /usr/bin/c++  -rpath=/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 pythonfd.o restore.o status.o verify.o
> verify_vol.o xattr.o    -lz -lbacfind -lbacpy -lbaccfg -lbac -lm
> -lpthread   -lwrap /usr/local/lib/libintl.so -L/usr/local/lib
> /usr/local/lib/libiconv.so -Wl,-rpath -Wl,/usr/local/lib
> -L/usr/local/lib -lssl -lcrypto  
> /usr/bin/c++  -rpath=/usr/local/lib -static -L../lib -L../findlib -o
> static-bacula-fd filed.o authenticate.o acl.o backup.o estimate.o
> fd_plugins.o accurate.o filed_conf.o heartbeat.o job.o pythonfd.o
> restore.o status.o verify.o verify_vol.o xattr.o    -lz -lbacfind
> -lbacpy -lbaccfg -lbac -lm  -lpthread   -lwrap /usr/local/lib/libintl.so
> -L/usr/local/lib /usr/local/lib/libiconv.so -Wl,-rpath
> -Wl,/usr/local/lib -L/usr/local/lib -lssl -lcrypto  
> strip static-bacula-fd
> ==== Make of filed is good ====
>  
> ==>Entering directory
> /usr/ports/sysutils/bacula-client/work/bacula-5.0.3/src/console
> Compiling console.c
> Compiling console_conf.c
> Compiling authenticate.c
> /usr/bin/c++ -rpath=/usr/local/lib  -L../lib -L../cats -o bconsole
> console.o console_conf.o authenticate.o   -lreadline -lhistory -lncurses
> -lbaccfg -lbac -lm -lpthread /usr/local/lib/libintl.so -L/usr/local/lib
> /usr/local/lib/libiconv.so -Wl,-rpath -Wl,/usr/local/lib
> -L/usr/local/lib -lssl -lcrypto
> ../lib/libbac.a(bsys.o)(.text+0x11a): In function `Zinflate(char*, int,
> char*, int&)':

Are you using the --disable-libtool option to configure?  If so, you'll need
the attached patch to make it work.

__Martin
--- orig/bacula-5.0.3/src/lib/bsys.c    2010-08-05 15:29:51.000000000 +0100
+++ bacula-5.0.3/src/lib/bsys.c 2010-08-09 16:51:20.605909971 +0100
@@ -676,6 +676,7 @@
    return escaped_path;
 }
 
+#if 0
 /*
  * Deflate or compress and input buffer.  You must supply an
  *  output buffer sufficiently long and the length of the
@@ -751,3 +752,4 @@
    return 1;
 #endif
 }
+#endif
--- orig/bacula-5.0.3/src/stored/Makefile.in    2010-08-05 15:29:51.000000000 
+0100
+++ bacula-5.0.3/src/stored/Makefile.in 2010-08-09 17:07:54.712249198 +0100
@@ -72,6 +72,7 @@
 
 CAP_LIBS = @CAP_LIBS@
 fdli...@fdlibs@
+zli...@zlibs@
 
 
 .SUFFIXES:     .c .o
@@ -126,7 +127,7 @@
 
 bextract: Makefile $(BEXTOBJS) ../findlib/libbacfind$(DEFAULT_ARCHIVE_TYPE) 
../lib/libbaccfg$(DEFAULT_ARCHIVE_TYPE) ../lib/libbac$(DEFAULT_ARCHIVE_TYPE)
        @echo "Compiling $<"
-       $(LIBTOOL_LINK) $(CXX) $(TTOOL_LDFLAGS) $(LDFLAGS) -L../lib 
-L../findlib -o $@ $(BEXTOBJS) $(DLIB) $(FDLIBS) \
+       $(LIBTOOL_LINK) $(CXX) $(TTOOL_LDFLAGS) $(LDFLAGS) -L../lib 
-L../findlib -o $@ $(BEXTOBJS) $(DLIB) $(FDLIBS) $(ZLIBS) \
           -lbacfind -lbaccfg -lbac -lm $(LIBS) $(GETTEXT_LIBS) $(OPENSSL_LIBS)
 
 bscan.o: bscan.c
------------------------------------------------------------------------------
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing
http://p.sf.net/sfu/novell-sfdev2dev
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to