Bacula-users

[Bacula-users] How to build with DBI support?

2010-01-18 10:55:16
Subject: [Bacula-users] How to build with DBI support?
From: "Moray Henderson (ICT)" <Moray.Henderson AT ict.om DOT org>
To: <bacula-users AT lists.sourceforge DOT net>
Date: Mon, 18 Jan 2010 15:52:29 +0000
I'm trying to build bacula with dbi support for SQLite3.  The
documentation says you can do this: 'Currently the drivers supported by
Bacula are: postgresql, mysql, sqlite, sqlite3; these are the names that
may be added to string "dbi:".'

I'm on CentOS 5 building from bacula-3.0.3.tar.gz; I've built and
installed the sqlite3 dbi driver.  Everything builds fine without dbi,
but as soon as I try to add dbi I get the following errors from
configure and when compiling dbi.c:

mock-chroot> rpm -qa libdbi\* sql\*
libdbi-drivers-0.8.1a-1.2.2
sqlite-devel-3.3.6-2
sqlite-3.3.6-2
libdbi-0.8.1-2.1
libdbi-devel-0.8.1-2.1
libdbi-dbd-sqlite3-0.8.1a-1.2.2 
mock-chroot> ./configure --with-sqlite3 --with-dbi
--with-dbi-driver=sqlite3
...
checking for DBI drivers support... yes
nm: atoll.o: no symbols
nm: asprintf.o: no symbols
nm: timegm.o: no symbols
nm: /usr/lib/libsqlite3.so: no symbols
checking for getconf... getconf
...
mock-chroot> make
...
==>Entering directory /builddir/build/BUILD/bacula-3.0.3/src/cats
make[1]: Entering directory
`/builddir/build/BUILD/bacula-3.0.3/src/cats'
Compiling mysql.c
Compiling bdb.c
Compiling dbi.c
dbi.c: In function 'B_DB* db_init_database(JCR*, const char*, const
char*, const char*, const char*, int, const char*, int)':
dbi.c:124: error: 'struct B_DB' has no member named 'db_driver'
dbi.c:126: error: 'dbi_conn_error' was not declared in this scope
dbi.c:149: error: 'struct B_DB' has no member named 'db_driverdir'
dbi.c:152: error: 'struct B_DB' has no member named 'db_driver'
dbi.c:154: error: 'struct B_DB' has no member named 'db_type'
dbi.c: In function 'int db_open_database(JCR*, B_DB*)':
dbi.c:213: error: 'struct B_DB' has no member named 'db_driverdir'
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:215: error: 'struct B_DB' has no member named 'db_driverdir'
dbi.c:221: error: 'struct B_DB' has no member named 'db_driver'
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:223: error: 'struct B_DB' has no member named 'db_type'
dbi.c:225: error: 'dbi_conn_set_option' was not declared in this scope
dbi.c:268: error: 'dbi_conn_connect' was not declared in this scope
dbi.c:273: error: 'dbi_conn_error' was not declared in this scope
dbi.c:281: error: 'struct B_DB' has no member named 'db_driver'
dbi.c:301: error: 'struct B_DB' has no member named 'db_type'
dbi.c: In function 'void db_close_database(JCR*, B_DB*)':
dbi.c:342: error: 'struct B_DB' has no member named 'instance'
dbi.c:342: error: 'dbi_shutdown_r' was not declared in this scope
dbi.c:344: error: 'struct B_DB' has no member named 'instance'
dbi.c:369: error: 'struct B_DB' has no member named 'db_driverdir'
dbi.c:370: error: 'struct B_DB' has no member named 'db_driverdir'
dbi.c:372: error: 'struct B_DB' has no member named 'db_driver'
dbi.c:373: error: 'struct B_DB' has no member named 'db_driver'
dbi.c: In function 'void db_escape_string(JCR*, B_DB*, char*, char*,
int)':
dbi.c:421: error: 'dbi_conn_escape_string_copy' was not declared in this
scope
dbi.c: At global scope:
dbi.c:475: error: 'DBI_ROW' does not name a type
dbi.c: In function 'int my_dbi_max_length(B_DB*, int)':
dbi.c:545: error: 'my_dbi_getisnull' was not declared in this scope
dbi.c:548: error: 'my_dbi_getvalue' was not declared in this scope
dbi.c: At global scope:
dbi.c:562: error: expected constructor, destructor, or type conversion
before '*' token
make[1]: *** [dbi.lo] Error 1
make[1]: Leaving directory `/builddir/build/BUILD/bacula-3.0.3/src/cats'


  ====== Error in /builddir/build/BUILD/bacula-3.0.3/src/cats ======
...
==>Entering directory /builddir/build/BUILD/bacula-3.0.3/src/dird
make[1]: Entering directory
`/builddir/build/BUILD/bacula-3.0.3/src/dird'
Compiling dird.c
...
Compiling verify.c
make[1]: *** No rule to make target `../cats/libbacsql.la', needed by
`bacula-dir'.  Stop.
make[1]: Leaving directory `/builddir/build/BUILD/bacula-3.0.3/src/dird'


  ====== Error in /builddir/build/BUILD/bacula-3.0.3/src/dird ======


Moray.
"To err is human.  To purr, feline"




------------------------------------------------------------------------------
Throughout its 18-year history, RSA Conference consistently attracts the
world's best and brightest in the field, creating opportunities for Conference
attendees to learn about information security's most important issues through
interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users

<Prev in Thread] Current Thread [Next in Thread>
  • [Bacula-users] How to build with DBI support?, Moray Henderson (ICT) <=