On Wednesday, May 20, 2015 at 4:09:39 PM UTC+1, Marco van Wieringen wrote: > Hi, > > I tried it myself and after hacking the Makefile.bareos a bit > (as that is mostly Linux based and I work on Solaris) it seems > things still work mostly. > > 16:58 [mvw:mercury][4121] > /projects/GITrepositories/BAREOS/contrib-pgsql-plugin > > /opt/bareos/sbin/i86/bpluginfo /opt/bareos/lib/plugins/pgsql-fd.so > > > pgsql plugin: version 2.2 April 2013 (c) 2011 by Inteos > pgsql plugin: connected to Bareos version 1 > > Plugin type: Bareos File Daemon plugin > Plugin version: 2.2 > Plugin release date: April 2013 > Plugin author: Inteos Sp. z o.o. > Plugin licence: AGPLv3 > Plugin description: PostgreSQL online backup and recovery plugin (c) Inteos > Sp. z o.o. > Plugin API version: 9 > > root@mercury:~# /opt/bareos/sbin/i86/bareos-fd -f -d 200 > bareos-fd: filed_conf.c:493-0 Inserting Director res: mercury-mon > mercury-fd: bsys.c:622-0 Could not open state file. sfd=-1 size=188: ERR=No > such file or directory > mercury-fd: plugins.c:222-0 load_plugins > mercury-fd: fd_plugins.c:1615-0 is_plugin_compatible called > pgsql plugin: version 2.2 April 2013 (c) 2011 by Inteos > pgsql plugin: connected to Bareos version 9 > mercury-fd: fd_plugins.c:1615-0 is_plugin_compatible called > mercury-fd: fd_plugins.c:1590-0 Loaded plugin: python-fd.so > mercury-fd: fd_plugins.c:1590-0 Loaded plugin: pgsql-fd.so > mercury-fd: socket_server.c:96-0 filed: listening on port 8102 > mercury-fd: bnet_server_tcp.c:166-0 Addresses host[ipv4;0.0.0.0;8102] > > So my tip would be to clone > > https://github.com/bareos/contrib-pgsql-plugin > cp Makefile.bareos Makefile > edit Makefile > make; make install > > That plugin should a least load I had some problems with the location > of the PostgreSQL libs on Solaris so I added -R to the link stage. > > Further more the Makefile.bareos uses the source dir as it uses the libtool > we distibute with BAREOS and not the system one now. So you also need to > checkout the current bareos version and build that or if that is to much > work change the Makefile to use the stuff that is available. > > -- > 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
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”. 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. 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. 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 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. Thank you once again. Regards, George -- 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.
