On Thursday, May 21, 2015 at 4:00:09 PM UTC+1, Marco van Wieringen wrote:
> G Jo <g.johnston <at> kainos.com> writes:
> 
> > Hi Marco,
> > 
> > Thanks for your responses over the last couple of days. The expertise
> > you have very kindly taken the time to provide has been invaluable in
> > moving us forward.
> > 
> > Just for background relevance unfortunately as you suspected we where
> > not building either bareos or the pgsql-plugin from the sources we
> > needed to.
> > 
> > From the presence of a directory /home/centos/bacula-7.0.5 it seems we
> > built bacula-7.0.5 from source and then built the bacula version of
> > the PGSQL Plugin. The README.md in the pgsql-plugin directory has the
> > text “PGSQL Plugin is a Bacula File Daemon plugin”.
> > 
> Ok that indeed is never going to work. 7.0.5 is incompatible in many ways.
> 
> > Anyway now that you put us on the right path I’ve being trying to follow
> > the tip approach you outlined on a totally clean server with the correct
> > bareos versions of the software.
> > 
> > Of course I’ve encountered some issues so I’m hoping that again you’ll
> > be able to spot what’s going wrong and point us in the right direction.
> > 
> > To outline what I’ve done to date
> > 
> > 1) downloaded the pgsql-plugin source using 
> > wget 
> > https://github.com/bareos/contrib-pgsql-plugin/archive/bareos-master.zip
> > 
> > README.md for it has text “contrib-pgsql-plugin - PGSQL Plugin is
> > a Bareos File Daemon plugin” so correct version confirmed.
> > 
> Ok better.
> 
> > 2) Downloaded the current bareos version source code using wget
> > https://github.com/bareos/bareos/archive/master.zip 
> > 
> > 3) We have attempted to build bareos from source using our best guess at
> > the command options. I couldn’t locate any installation build 
> > instructions at https://github.com/bareos/bareos or in the extracted
> > source code directory so if there is documentation available please
> > point us towards it.
> There is a working specfile in platforms/packaging/bareos.spec which
> is used to build the software using OpenSuse Build Service.

Hi,

I'm not ashamed to admit that, as i'm sure you'll have guessed, a lot of the 
open source build world is new to me. After installing the OpenSuse buiild 
Service my command attempt to build the package is 

osc build openSUSE_12.4 x86_64 
/root/bareos-master/platforms/packaging/bareos.spec

However this returns the following error.

Error: '/root/bareos-master/platforms/packaging' is not an osc project dir or 
working copy

Am i along the right lines here and if not could you please tell me what 
command i use to build the bareos.

Thanks,
George
> 


> > 
> > What we attempted from the extracted bareos source code directory was to
> > configure the build to use a postgres backend db with the command
> > 
> > ./configure --with-postgresql=/usr/pgsql-9.4
> > 
> > That offered the version info “configuring for
> > Bareos 15.2.0 (25 April 2015)” along with reams of
> > other output and completed successfully with a couple of warnings.
> > 
> > 4) However and attempt to issue make then returns warnings and the fatal
> error below
> > 
> > Compiling passphrase.c
> > passphrase.c: In function ‘char* generate_crypto_passphrase(int)’:
> > passphrase.c:145:38: warning: array subscript has type ‘char’
> [-Wchar-subscripts]
> >        passphrase[cnt] = valid_chars[c];
> >                                       ^
> > Compiling tls_none.c
> > tls_none.c: In function ‘bool get_tls_verify_peer(TLS_CONTEXT*)’:
> > tls_none.c:71:22: error: invalid use of incomplete type ‘TLS_CONTEXT {aka
> struct TLS_Context}’
> >     return (ctx) ? ctx->verify_peer : false;
> >                       ^
> > In file included from ../lib/lib.h:45:0,
> >                  from ../include/bareos.h:152,
> >                  from tls_none.c:27:
> > ../lib/tls.h:34:16: error: forward declaration of ‘TLS_CONTEXT {aka struct
> TLS_Context}’
> >  typedef struct TLS_Context TLS_CONTEXT;
> >                 ^
> > tls_none.c:72:1: warning: control reaches end of non-void function
> [-Wreturn-type]
> >  }
> >  ^
> > make[1]: *** [tls_none.lo] Error 1
> > make[1]: Leaving directory `/root/bareos-master/src/lib'
> > make: *** [src/lib] Error 2
> > 
> As you have no encryption enabled it tries building the dummy routines
> which indeed have some problems. If you compile with openssl it probably
> works fine. But I will push a commit fixing the above problem.
> 
> The patch is kind of obvious
> 
> commit 7f645303b655eaf56b65c041723166f647e9cf65
> Author: Marco van Wieringen <[email protected]>
> Date:   Thu May 21 16:55:06 2015 +0200
> 
>     Fix typo.
> 
> diff --git a/src/lib/tls_none.c b/src/lib/tls_none.c
> index 2a7af12..8a666f6 100644
> --- a/src/lib/tls_none.c
> +++ b/src/lib/tls_none.c
> @@ -68,7 +68,7 @@ void set_tls_enable(TLS_CONTEXT *ctx, bool value)
>  
>  bool get_tls_verify_peer(TLS_CONTEXT *ctx)
>  {
> -   return (ctx) ? ctx->verify_peer : false;
> +   return false;
>  }
>  
>  TLS_CONNECTION *new_tls_connection(TLS_CONTEXT *ctx, int fd, bool server)
> 
> 
> > 5) Can you advise on this error please? Should we be using additional
> > switches to the configure command?
> > 
> > As an alternative approach you mentioned in your tip advice “
> > if that is to much work change the Makefile to use the stuff that is
> > available”
> > 
> > I’m not sure what you mean by the “stuff that is available” so if you
> > could expand on that please I’d be grateful.
> I was trying to say instead of compiling the sources you can also use
> the packaged include files and libraries from the packaging but that is
> probably a bit of surgery to the Makefile
> 
> -- 
> 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.

Reply via email to