Hi!

[ This is a repost of my original message that went to
  bacula-users, but got no useful replies at all.
  I need some valuable answer to provide good-quality
  Bacula packages for Gentoo... ]

1. dbi
   As bacula does support libdbi since 3.x, the configure script
   has --with-dbi and --with-dbi-driver=(mysql|postgres|sqlite3).

1.1. When I want to build with dbi support, do I have to disable
     any of the --with-mysql/--with-postgresql/--with-sqlite3
     (making it --without-[...])?

1.2. Does --enable-batch-insert affect dbi builds of Bacula?

1.3. Compilation using --with-dbi --with-dbi-driver=postgresql
     shows the following errors (but does not abort -- bad!)

--8<--
==>Entering directory 
/var/tmp/portage/app-backup/bacula-5.0.0-r100/work/bacula-5.0.0/src/cats
make[1]: Entering directory 
`/var/tmp/portage/app-backup/bacula-5.0.0-r100/work/bacula-5.0.0/src/cats'
Compiling mysql.c
Compiling bdb.c
Compiling dbi.c
Compiling sql.c
Compiling sql_cmds.c
Compiling sql_create.c
In file included from bdb.c:50:
cats.h:684: error: ‘dbi_inst’ does not name a type
make[1]: *** [bdb.lo] Error 1
make[1]: *** Waiting for unfinished jobs....
In file included from mysql.c:46:
cats.h:684: error: ‘dbi_inst’ does not name a type
make[1]: *** [mysql.lo] Error 1
In file included from sql.c:48:
cats.h:684: error: ‘dbi_inst’ does not name a type
make[1]: *** [sql.lo] Error 1
In file included from dbi.c:47:
cats.h:684: error: ‘dbi_inst’ does not name a type
dbi.c: In function ‘int db_open_database(JCR*, B_DB*)’:
dbi.c:213: error: ‘struct B_DB’ has no member named ‘instance’
dbi.c:213: error: ‘dbi_initialize_r’ was not declared in this scope
dbi.c:221: error: ‘struct B_DB’ has no member named ‘instance’
dbi.c:221: error: ‘dbi_conn_new_r’ was not declared in this scope
dbi.c: In function ‘void db_close_database(JCR*, B_DB*)’:
dbi.c:341: error: ‘struct B_DB’ has no member named ‘instance’
dbi.c:341: error: ‘dbi_shutdown_r’ was not declared in this scope
dbi.c:343: error: ‘struct B_DB’ has no member named ‘instance’
make[1]: *** [dbi.lo] Error 1
In file included from sql_create.c:43:
cats.h:684: error: ‘dbi_inst’ does not name a type
sql_create.c: In function ‘bool db_create_job_record(JCR*, B_DB*, JOB_DBR*)’:
sql_create.c:99: warning: deprecated conversion from string constant to ‘char*’
sql_create.c: In function ‘bool db_create_pool_record(JCR*, B_DB*, POOL_DBR*)’:
sql_create.c:217: warning: deprecated conversion from string constant to ‘char*’
sql_create.c: In function ‘bool db_create_device_record(JCR*, B_DB*, 
DEVICE_DBR*)’:
sql_create.c:264: warning: deprecated conversion from string constant to ‘char*’
sql_create.c: In function ‘bool db_create_storage_record(JCR*, B_DB*, 
STORAGE_DBR*)’:
sql_create.c:322: warning: deprecated conversion from string constant to ‘char*’
sql_create.c: In function ‘bool db_create_mediatype_record(JCR*, B_DB*, 
MEDIATYPE_DBR*)’:
sql_create.c:370: warning: deprecated conversion from string constant to ‘char*’
sql_create.c: In function ‘int db_create_media_record(JCR*, B_DB*, MEDIA_DBR*)’:
sql_create.c:449: warning: deprecated conversion from string constant to ‘char*’
sql_create.c: In function ‘int db_create_client_record(JCR*, B_DB*, 
CLIENT_DBR*)’:
sql_create.c:530: warning: deprecated conversion from string constant to ‘char*’
sql_create.c: In function ‘int db_create_path_record(JCR*, B_DB*, ATTR_DBR*)’:
sql_create.c:596: warning: deprecated conversion from string constant to ‘char*’
sql_create.c: In function ‘bool db_create_fileset_record(JCR*, B_DB*, 
FILESET_DBR*)’:
sql_create.c:709: warning: deprecated conversion from string constant to ‘char*’
sql_create.c: In function ‘int db_create_file_record(JCR*, B_DB*, ATTR_DBR*)’:
sql_create.c:1032: warning: deprecated conversion from string constant to 
‘char*’
sql_create.c: In function ‘int db_create_filename_record(JCR*, B_DB*, 
ATTR_DBR*)’:
sql_create.c:1079: warning: deprecated conversion from string constant to 
‘char*’
make[1]: *** [sql_create.lo] Error 1
make[1]: Leaving directory 
`/var/tmp/portage/app-backup/bacula-5.0.0-r100/work/bacula-5.0.0/src/cats'


  ====== Error in 
/var/tmp/portage/app-backup/bacula-5.0.0-r100/work/bacula-5.0.0/src/cats ======
--8<--

I'm using dev-db/libdbi-0.8.3 + dev-db/libdbi-drivers-0.8.3.
configure seems to detect DBI correctly:
--8<--
checking for DBI support... yes
checking for DBI drivers support... yes
--8<--

2. readline + termcap/terminfo

2.1. Why does Bacula depend on the legacy termcap library
     for readline support instead of the new terminfo
     (at least its emulation of the termcap interface)?

Thanks!
-- 
Regards,
Wolfram Schlich <[email protected]>
Gentoo Linux * http://dev.gentoo.org/~wschlich/

------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Bacula-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bacula-devel

Reply via email to