Hello
I solved the compilation problem my self. I triad to compile bacula with 
support for MySql AND PostgreSql which is not possible. You can have only one 
Database backend. My solution was to compile bacula twice with different 
prefixes, so that I can install bacula twice not compromise each other. I don'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=/usr/local/pgsql 
> --with-mysql=/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'
> ==>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'
> 
> 
>   ====== Error in 
> /export/home/install/download/bacula-1.38.9/src/cats ======
> 
> 
> 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=/usr/local/pgsql 
> and do a make, all works fine.
> 
> What dos I miss?
> 
> mit freundlichen GrĂ¼ssen
> 
> 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: [EMAIL PROTECTED]
> _____________________________________________________________
>  
> 
> 
> --------------------------------------------------------------
> -----------
> 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@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bacula-users
> 


-------------------------------------------------------------------------
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@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to