From: Kern Sibbald Date: Sun, 27 May 2007 09:34:40 +0000 (+0000) Subject: kes I reworked the OpenSSL include/lib flags to be handled in X-Git-Tag: Release-7.0.0~6231 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=fe1bc06a944635661856e62feb5d3b97ce7c5b93;p=bacula%2Fbacula kes I reworked the OpenSSL include/lib flags to be handled in the standard Bacula way, which should fix bug #863 concerning non-standard OpenSSL libraries. git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@4914 91ce42f0-d328-0410-95d8-f526ca767f89 --- diff --git a/bacula/autoconf/Make.common.in b/bacula/autoconf/Make.common.in index f8b6daa6c7..60d2f621e2 100644 --- a/bacula/autoconf/Make.common.in +++ b/bacula/autoconf/Make.common.in @@ -52,8 +52,8 @@ INSTALL_SCRIPT = @INSTALL@ -m @SBINPERM@ INSTALL_CONFIG = @INSTALL@ -m 640 # Flags & libs -CFLAGS = @CFLAGS@ -CPPFLAGS = @CPPFLAGS@ +CFLAGS = @CFLAGS@ @OPENSSL_INC@ +CPPFLAGS = @CPPFLAGS@ @OPENSSL_INC@ LDFLAGS = @LDFLAGS@ TTOOL_LDFLAGS = @TTOOL_LDFLAGS@ #DEFS = @DEFS@ @LOCAL_DEFS@ @@ -64,6 +64,7 @@ DLIB = @DLIB@ DB_LIBS = @DB_LIBS@ PYTHON_LIBS = @PYTHON_LIBS@ PYTHON_INC = @PYTHON_INCDIR@ +OPENSSL_LIBS = @OPENSSL_LIBS@ # Windows (cygwin) flags WCFLAGS = @WCFLAGS@ diff --git a/bacula/src/console/Makefile.in b/bacula/src/console/Makefile.in index 0deaf4d1ef..af94657ed3 100644 --- a/bacula/src/console/Makefile.in +++ b/bacula/src/console/Makefile.in @@ -28,9 +28,6 @@ EXTRAOBJS = @OBJLIST@ GETTEXT_LIBS = @LIBINTL@ -OPENSSL_INC = @OPENSSL_INC@ -OPENSSL_LIBS = @OPENSSL_LIBS@ - CONS_INC=@CONS_INC@ CONS_LIBS=@CONS_LIBS@ CONS_LDFLAGS=@CONS_LDFLAGS@ @@ -42,7 +39,7 @@ CONS_LDFLAGS=@CONS_LDFLAGS@ # inference rules .c.o: @echo "Compiling $<" - $(NO_ECHO)$(CXX) $(DEFS) $(DEBUG) -c $(CPPFLAGS) $(CONS_INC) $(OPENSSL_INC) -I$(srcdir) -I$(basedir) $(DINCLUDE) $(CFLAGS) $< + $(NO_ECHO)$(CXX) $(DEFS) $(DEBUG) -c $(CPPFLAGS) $(CONS_INC) -I$(srcdir) -I$(basedir) $(DINCLUDE) $(CFLAGS) $< #------------------------------------------------------------------------- all: Makefile bconsole @STATIC_CONS@ @echo "==== Make of console is good ====" diff --git a/bacula/src/dird/Makefile.in b/bacula/src/dird/Makefile.in index 7e417b07fb..3e44d46227 100644 --- a/bacula/src/dird/Makefile.in +++ b/bacula/src/dird/Makefile.in @@ -20,9 +20,6 @@ DEBUG=@DEBUG@ GETTEXT_LIBS = @LIBINTL@ -OPENSSL_LIBS = @OPENSSL_LIBS@ -OPENSSL_INC = @OPENSSL_INC@ - PYTHON_LIBS = @PYTHON_LIBS@ PYTHON_INC = @PYTHON_INCDIR@ @@ -71,7 +68,7 @@ EXTRAOBJS = @OBJLIST@ # inference rules .c.o: @echo "Compiling $<" - $(NO_ECHO)$(CXX) $(DEFS) $(DEBUG) -c $(WCFLAGS) $(CPPFLAGS) $(PYTHON_INC) $(OPENSSL_INC) -I$(srcdir) -I$(basedir) $(DINCLUDE) $(CFLAGS) $< + $(NO_ECHO)$(CXX) $(DEFS) $(DEBUG) -c $(WCFLAGS) $(CPPFLAGS) $(PYTHON_INC) -I$(srcdir) -I$(basedir) $(DINCLUDE) $(CFLAGS) $< #------------------------------------------------------------------------- all: Makefile bacula-dir @STATIC_DIR@ @echo "==== Make of dird is good ====" @@ -147,7 +144,7 @@ depend: @$(MV) Makefile Makefile.bak @$(SED) "/^# DO NOT DELETE:/,$$ d" Makefile.bak > Makefile @$(ECHO) "# DO NOT DELETE: nice dependency list follows" >> Makefile - @$(CXX) -S -M $(CPPFLAGS) $(XINC) $(PYTHON_INC) $(OPENSSL_INC) -I$(srcdir) -I$(basedir) $(SQL_INC) *.c >> Makefile + @$(CXX) -S -M $(CPPFLAGS) $(XINC) $(PYTHON_INC) -I$(srcdir) -I$(basedir) $(SQL_INC) *.c >> Makefile @if test -f Makefile ; then \ $(RMF) Makefile.bak; \ else \ diff --git a/bacula/src/filed/Makefile.in b/bacula/src/filed/Makefile.in index 2b3b0e2933..89389671af 100644 --- a/bacula/src/filed/Makefile.in +++ b/bacula/src/filed/Makefile.in @@ -21,9 +21,6 @@ DEBUG=@DEBUG@ GETTEXT_LIBS = @LIBINTL@ -OPENSSL_LIBS = @OPENSSL_LIBS@ -OPENSSL_INC = @OPENSSL_INC@ - PYTHON_LIBS = @PYTHON_LIBS@ PYTHON_INC = @PYTHON_INCDIR@ @@ -56,7 +53,7 @@ WIN32LIBS = $(@WIN32@) # inference rules .c.o: @echo "Compiling $<" - $(NO_ECHO)$(CXX) $(DEFS) $(DEBUG) -c $(WCFLAGS) $(CPPFLAGS) $(PYTHON_INC) $(OPENSSL_INC) -I$(srcdir) -I$(basedir) $(DINCLUDE) $(CFLAGS) $< + $(NO_ECHO)$(CXX) $(DEFS) $(DEBUG) -c $(WCFLAGS) $(CPPFLAGS) $(PYTHON_INC) -I$(srcdir) -I$(basedir) $(DINCLUDE) $(CFLAGS) $< #------------------------------------------------------------------------- all: Makefile @WIN32@ bacula-fd @STATIC_FD@ @echo "==== Make of filed is good ====" @@ -153,7 +150,7 @@ depend: @$(MV) Makefile Makefile.bak @$(SED) "/^# DO NOT DELETE:/,$$ d" Makefile.bak > Makefile @$(ECHO) "# DO NOT DELETE: nice dependency list follows" >> Makefile - @$(CXX) -S -M $(CPPFLAGS) $(XINC) $(PYTHON_INC) $(OPENSSL_INC) -I$(srcdir) -I$(basedir) $(SQL_INC) *.c >> Makefile + @$(CXX) -S -M $(CPPFLAGS) $(XINC) $(PYTHON_INC) -I$(srcdir) -I$(basedir) $(SQL_INC) *.c >> Makefile @if test -f Makefile ; then \ $(RMF) Makefile.bak; \ else \ diff --git a/bacula/src/lib/Makefile.in b/bacula/src/lib/Makefile.in index 166fba57d8..b9ca9acaa6 100644 --- a/bacula/src/lib/Makefile.in +++ b/bacula/src/lib/Makefile.in @@ -14,9 +14,6 @@ topdir = ../.. # this dir relative to top dir thisdir = src/lib -OPENSSL_LIBS = @OPENSSL_LIBS@ -OPENSSL_INC = @OPENSSL_INC@ - DEBUG=@DEBUG@ first_rule: all @@ -58,11 +55,11 @@ EXTRAOBJS = @OBJLIST@ # inference rules .c.o: @echo "Compiling $<" - $(NO_ECHO)$(CXX) $(DEFS) $(DEBUG) -c $(WCFLAGS) $(CPPFLAGS) $(OPENSSL_INC) $(PYTHON_INC) -I$(srcdir) -I$(basedir) $(DINCLUDE) $(CFLAGS) $< + $(NO_ECHO)$(CXX) $(DEFS) $(DEBUG) -c $(WCFLAGS) $(CPPFLAGS) $(PYTHON_INC) -I$(srcdir) -I$(basedir) $(DINCLUDE) $(CFLAGS) $< .cc.o: @echo "Compiling $<" - $(NO_ECHO)$(CXX) $(DEFS) $(DEBUG) -c $(WCFLAGS) $(CPPFLAGS) $(OPENSSL_INC) $(PYTHON_INC) -I$(srcdir) -I$(basedir) $(DINCLUDE) $(CFLAGS) $< + $(NO_ECHO)$(CXX) $(DEFS) $(DEBUG) -c $(WCFLAGS) $(CPPFLAGS) $(PYTHON_INC) -I$(srcdir) -I$(basedir) $(DINCLUDE) $(CFLAGS) $< #------------------------------------------------------------------------- all: Makefile libbac.a @@ -81,7 +78,7 @@ Makefile: $(srcdir)/Makefile.in $(topdir)/config.status pythonlib.o: pythonlib.c @echo "Compiling $<" - $(NO_ECHO)$(CXX) $(DEFS) $(DEBUG) -c $(WCFLAGS) $(CPPFLAGS) $(OPENSSL_INC) $(python) -I$(srcdir) -I$(basedir) $(DINCLUDE) $(CFLAGS) $< + $(NO_ECHO)$(CXX) $(DEFS) $(DEBUG) -c $(WCFLAGS) $(CPPFLAGS) $(python) -I$(srcdir) -I$(basedir) $(DINCLUDE) $(CFLAGS) $< rwlock_test: rm -f rwlock.o diff --git a/bacula/src/stored/Makefile.in b/bacula/src/stored/Makefile.in index 1ce5c46d80..6e9456ae3b 100644 --- a/bacula/src/stored/Makefile.in +++ b/bacula/src/stored/Makefile.in @@ -16,9 +16,6 @@ DEBUG=@DEBUG@ GETTEXT_LIBS = @LIBINTL@ -OPENSSL_LIBS = @OPENSSL_LIBS@ -OPENSSL_INC = @OPENSSL_INC@ - first_rule: all dummy: @@ -81,7 +78,7 @@ FDLIBS=@FDLIBS@ # inference rules .c.o: @echo "Compiling $<" - $(NO_ECHO)$(CXX) $(DEFS) $(DEBUG) -c $(WCFLAGS) $(CPPFLAGS) $(PYTHON_INC) $(OPENSSL_INC) -I$(srcdir) -I$(basedir) $(DINCLUDE) $(CFLAGS) $< + $(NO_ECHO)$(CXX) $(DEFS) $(DEBUG) -c $(WCFLAGS) $(CPPFLAGS) $(PYTHON_INC) -I$(srcdir) -I$(basedir) $(DINCLUDE) $(CFLAGS) $< #------------------------------------------------------------------------- all: Makefile bacula-sd @STATIC_SD@ bls bextract bscan btape bcopy @@ -103,7 +100,7 @@ static-bacula-sd: $(SDOBJS) ../lib/libbac.a btape.o: btape.c @echo "Compiling $<" $(NO_ECHO)$(CXX) $(DEFS) $(DEBUG) -c $(CPPFLAGS) -I$(srcdir) \ - -I$(basedir) $(OPENSSL_INC) $(DINCLUDE) $(CFLAGS) $< + -I$(basedir) $(DINCLUDE) $(CFLAGS) $< btape: $(TAPEOBJS) ../lib/libbac.a ../cats/libsql.a $(CXX) $(TTOOL_LDFLAGS) $(LDFLAGS) -L../lib -L../cats -o $@ $(TAPEOBJS) \ @@ -112,7 +109,7 @@ btape: $(TAPEOBJS) ../lib/libbac.a ../cats/libsql.a bls.o: bls.c @echo "Compiling $<" $(NO_ECHO)$(CXX) $(DEFS) $(DEBUG) -c $(CPPFLAGS) $(PYTHON_INC) -I$(srcdir) \ - -I$(basedir) $(OPENSSL_INC) $(DINCLUDE) $(CFLAGS) $< + -I$(basedir) $(DINCLUDE) $(CFLAGS) $< bls: ../findlib/libfind.a $(BLSOBJS) ../lib/libbac.a @echo "Compiling $<" @@ -122,7 +119,7 @@ bls: ../findlib/libfind.a $(BLSOBJS) ../lib/libbac.a bextract.o: bextract.c @echo "Compiling $<" $(NO_ECHO)$(CXX) $(DEFS) $(DEBUG) -c $(CPPFLAGS) $(PYTHON_INC) -I$(srcdir) \ - -I$(basedir) $(OPENSSL_INC) $(DINCLUDE) $(CFLAGS) $< + -I$(basedir) $(DINCLUDE) $(CFLAGS) $< bextract: ../findlib/libfind.a $(BEXTOBJS) ../lib/libbac.a @echo "Compiling $<" @@ -132,7 +129,7 @@ bextract: ../findlib/libfind.a $(BEXTOBJS) ../lib/libbac.a bscan.o: bscan.c @echo "Compiling $<" $(NO_ECHO)$(CXX) $(DEFS) $(DEBUG) -c $(CPPFLAGS) $(PYTHON_INC) -I$(srcdir) \ - -I$(basedir) $(OPENSSL_INC) $(DINCLUDE) $(CFLAGS) $< + -I$(basedir) $(DINCLUDE) $(CFLAGS) $< bscan: ../findlib/libfind.a $(SCNOBJS) ../cats/libsql.a $(CXX) $(TTOOL_LDFLAGS) $(LDFLAGS) -L../lib -L../cats -L../findlib -o $@ $(SCNOBJS) \ @@ -141,7 +138,7 @@ bscan: ../findlib/libfind.a $(SCNOBJS) ../cats/libsql.a bcopy.o: bcopy.c @echo "Compiling $<" $(NO_ECHO)$(CXX) $(DEFS) $(DEBUG) -c $(CPPFLAGS) -I$(srcdir) \ - -I$(basedir) $(OPENSSL_INC) $(DINCLUDE) $(CFLAGS) $< + -I$(basedir) $(DINCLUDE) $(CFLAGS) $< bcopy: $(COPYOBJS) ../findlib/libfind.a ../lib/libbac.a $(CXX) $(TTOOL_LDFLAGS) $(LDFLAGS) -L../lib -L../findlib -o $@ $(COPYOBJS) \ @@ -206,7 +203,7 @@ depend: @$(MV) Makefile Makefile.bak @$(SED) "/^# DO NOT DELETE:/,$$ d" Makefile.bak > Makefile @$(ECHO) "# DO NOT DELETE: nice dependency list follows" >> Makefile - @$(CXX) -S -M $(CPPFLAGS) $(XINC) $(PYTHON_INC) $(OPENSSL_INC) -I$(srcdir) -I$(basedir) $(SQL_INC) *.c >> Makefile + @$(CXX) -S -M $(CPPFLAGS) $(XINC) $(PYTHON_INC) -I$(srcdir) -I$(basedir) $(SQL_INC) *.c >> Makefile @if test -f Makefile ; then \ $(RMF) Makefile.bak; \ else \ diff --git a/bacula/src/tools/Makefile.in b/bacula/src/tools/Makefile.in index 184762e388..b9df3731b5 100644 --- a/bacula/src/tools/Makefile.in +++ b/bacula/src/tools/Makefile.in @@ -27,9 +27,6 @@ dummy: GETTEXT_LIBS = @LIBINTL@ -OPENSSL_INC = @OPENSSL_INC@ -OPENSSL_LIBS = @OPENSSL_LIBS@ - FINDOBJS = testfind.o ../dird/dird_conf.o ../dird/inc_conf.o ../dird/run_conf.o # these are the objects that are changed by the .configure process @@ -62,7 +59,7 @@ all: Makefile $(TOOLS) gigaslam bsmtp: bsmtp.o ../lib/libbac.a $(CXX) $(LDFLAGS) -L../lib -o $@ bsmtp.o -lbac -lm $(DLIB) $(LIBS) $(GETTEXT_LIBS) $(OPENSSL_LIBS) -bregtest: bregtest.o ../lib/libbac.a +bregtest: bregtest.o ../lib/libbac.a $(CXX) $(LDFLAGS) -L../lib -o $@ bregtest.o -lbac -lm $(DLIB) $(LIBS) $(GETTEXT_LIBS) $(OPENSSL_LIBS) dbcheck: dbcheck.o ../lib/libbac.a ../cats/libsql.a $(DIRCONFOBJS) @@ -152,7 +149,7 @@ depend: @$(MV) Makefile Makefile.bak @$(SED) "/^# DO NOT DELETE:/,$$ d" Makefile.bak > Makefile @$(ECHO) "# DO NOT DELETE: nice dependency list follows" >> Makefile - @$(CXX) -S -M $(CPPFLAGS) $(PYTHON_INC) $(OPENSSL_INC) -I$(srcdir) -I$(basedir) $(SQL_INC) *.c >> Makefile + @$(CXX) -S -M $(CPPFLAGS) $(PYTHON_INC) -I$(srcdir) -I$(basedir) $(SQL_INC) *.c >> Makefile @if test -f Makefile ; then \ $(RMF) Makefile.bak; \ else \ diff --git a/bacula/technotes-2.1 b/bacula/technotes-2.1 index 504439aa90..0fa1fab0c2 100644 --- a/bacula/technotes-2.1 +++ b/bacula/technotes-2.1 @@ -1,6 +1,10 @@ Technical notes on version 2.1 General: +27May07 +kes I reworked the OpenSSL include/lib flags to be handled in + the standard Bacula way, which should fix bug #863 concerning + non-standard OpenSSL libraries. 26May07 kes Implement Help Browser window for bat. kes Fix reload bug that reset StorageId to zero.