SearchFAQMemberlist Log in
Reply to topic Page 1 of 1
Compile Error building Bacula with MySQL andPostgreSql
Author Message
Post Compile Error building Bacula with MySQL andPostgreSql 
Hello
I solved the compilation problem my self. I triad to compile bacula with su=
pport for MySql AND PostgreSql which is not possible. You can have only one=
Database backend. My solution was to compile bacula twice with different p=
refixes, so that I can install bacula twice not compromise each other. I do=
n't run both at the same time bat can switch between the to version easily.=

best regards

Berner Martin
=

=

Hello
I use Bacula 1.38.9 on Sun Solaris in a productive =

environment. Cataloc-Backend is PostgreSql currently. But I =

think the bottleneck in Performance is Postgre. So I like to =

give MySql a try.
Now I try to compile Bacula with Support for both Backend =

MySql and PostgrSql.
I make a configure like this:
./configure --with-postgresql=3D/usr/local/pgsql =

--with-mysql=3D/usr/local/mysql
and a simple make afterwards. But I always get a compilation =

error by sql.c
=

make[1]: Leaving directory =

`/export/home/install/download/bacula-1.38.9/src/console'
=3D=3D>Entering directory =

/export/home/install/download/bacula-1.38.9/src/cats
make[1]: Entering directory =

`/export/home/install/download/bacula-1.38.9/src/cats'
/usr/local/bin/g++ -c -I/usr/local/include -I. -I.. =

-I/usr/local/mysql/include/mysql -g -O2 -Wall mysql.c
/usr/local/bin/g++ -c -I/usr/local/include -I. -I.. =

-I/usr/local/mysql/include/mysql -g -O2 -Wall bdb.c
/usr/local/bin/g++ -c -I/usr/local/include -I. -I.. =

-I/usr/local/mysql/include/mysql -g -O2 -Wall bdb_create.c
/usr/local/bin/g++ -c -I/usr/local/include -I. -I.. =

-I/usr/local/mysql/include/mysql -g -O2 -Wall bdb_get.c
/usr/local/bin/g++ -c -I/usr/local/include -I. -I.. =

-I/usr/local/mysql/include/mysql -g -O2 -Wall bdb_update.c
/usr/local/bin/g++ -c -I/usr/local/include -I. -I.. =

-I/usr/local/mysql/include/mysql -g -O2 -Wall bdb_delete.c
/usr/local/bin/g++ -c -I/usr/local/include -I. -I.. =

-I/usr/local/mysql/include/mysql -g -O2 -Wall bdb_find.c
/usr/local/bin/g++ -c -I/usr/local/include -I. -I.. =

-I/usr/local/mysql/include/mysql -g -O2 -Wall bdb_list.c
/usr/local/bin/g++ -c -I/usr/local/include -I. -I.. =

-I/usr/local/mysql/include/mysql -g -O2 -Wall sql.c
sql.c: In function `void db_start_transaction(JCR*, B_DB*)':
sql.c:296: error: 'struct B_DB' has no member named =

'allow_transactions'
sql.c:301: error: 'struct B_DB' has no member named 'transaction'
sql.c:304: error: 'struct B_DB' has no member named 'transaction'
sql.c:307: error: 'struct B_DB' has no member named 'transaction'
sql.c: In function `void db_end_transaction(JCR*, B_DB*)':
sql.c:346: error: 'struct B_DB' has no member named =

'allow_transactions'
sql.c:350: error: 'struct B_DB' has no member named 'transaction'
sql.c:352: error: 'struct B_DB' has no member named 'transaction'
make[1]: *** [sql.o] Error 1
make[1]: Leaving directory =

`/export/home/install/download/bacula-1.38.9/src/cats'
=

=

=3D=3D=3D=3D=3D=3D Error in =

/export/home/install/download/bacula-1.38.9/src/cats =3D=3D=3D=3D=3D=3D
=

=

I tried with different version of Bacula and tried with =

precompiled MySql from MySql-Site and self compiled version =

of MySQL. I tried with MySql 4.1.22 and 5.0.41 but non of =

them solve my compilation problems.
If I configure only with --with-postgresql=3D/usr/local/pgsql =

and do a make, all works fine.
=

What dos I miss?
=

mit freundlichen Gr=FCssen
=

Berner Martin
_____________________________________________________________
=

Martin Berner, EDV Tel.: ++41-(0)41-729 33 46
Schweizer Braunviehzuchtverband Fax : ++41-(0)41-729 33 77
Chamerstrasse 56 http://www.braunvieh.ch
6300 Zug Email: martin.berner < at > br...
_____________________________________________________________
=

=

=

--------------------------------------------------------------
-----------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Bacula-users mailing list
Bacula-users < at > li...
https://lists.sourceforge.net/lists/listinfo/bacula-users




Re: [Bacula-users] exabyte autochanger From: Maria McKinley

- 2007-06-13 07:10

Falk Sauer wrote:
Hi Maria,



please make shure that your changer device has the correct permissions eg.:

crw-rw---- root disk /dev/sg0

and for the potentially next problem ...
by your tapedrive device i'm unshure, i think this should /dev/nst0, i don't
know how its correct on exabyte tapes.

Normally the /dev/st* device makes a automatic rewind after write,
the /dev/nst* make no auto rewind. Bacula needs imho a non auto rewinding
device. You dosn't write wich OS you use, here are little differences between
the OSes.

regards
Falk


Thanks Falk,

My permissions are:

crw------- 1 root root 21, 0 2005-02-25 22:38 sg0

so, maybe that is my problem. Can I just change this, like any file,
with chown (assuming that the disk part is important) and chmod?

As far as the /dev/nst0, I had this working with the old version of
bacula (1.36), and I found then that only nst0 worked, I would get
errors if I tried to change it to st0.

I am using Debian.

cheers,
maria

Display posts from previous:
Reply to topic Page 1 of 1
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
  


Magic SEO URL for phpBB