Bacula-users

[Bacula-users] Sample plugin compilation errors

2009-10-20 22:04:49
Subject: [Bacula-users] Sample plugin compilation errors
From: 小川兼人 <los.galacticos.kiy17 AT gmail DOT com>
To: Bacula-users AT lists.sourceforge DOT net
Date: Wed, 21 Oct 2009 10:59:10 +0900
Hello all,

I've tried to build a sample bacula plugin on this web site.
Building Bacula Plugins
http://www.bacula.org/en/dev-manual/Bacula_FD_Plugin_API.html

But, I got some error messages.
My compilation procedure is as follows.

cd <bacula-source>
./configure --with-mysql --with-db-name=bacula --with-db-user=bacula --with-plugindir=/path/to/
bacula-3.0.3/plugins
--prefix=/path/to/bacula-3.0.3
make

There is no problem so far.

cd src/plugins/fd
make
make test

After inputting 'make test' command, these error messages are appeared!!

-----error messages start-----
/usr/bin/g++ -I../.. -I../../filed -DTEST_PROGRAM -c ../../filed/fd_plugins.c
../../filed/fd_plugins.c:992: error: conflicting declaration ‘int (* plugin_bopen)(JCR*, const char*, int, mode_t)’
../../filed/fd_plugins.c:47: error: ‘plugin_bopen’ has a previous declaration as ‘int (* plugin_bopen)(BFILE*, const char*, int, mode_t)’
../../filed/fd_plugins.c:993: error: conflicting declaration ‘int (* plugin_bclose)(JCR*)’
../../filed/fd_plugins.c:48: error: ‘plugin_bclose’ has a previous declaration as ‘int (* plugin_bclose)(BFILE*)’
../../filed/fd_plugins.c:994: error: conflicting declaration ‘ssize_t (* plugin_bread)(JCR*, void*, size_t)’
../../filed/fd_plugins.c:49: error: ‘plugin_bread’ has a previous declaration as ‘ssize_t (* plugin_bread)(BFILE*, void*, size_t)’
../../filed/fd_plugins.c:995: error: conflicting declaration ‘ssize_t (* plugin_bwrite)(JCR*, void*, size_t)’
../../filed/fd_plugins.c:50: error: ‘plugin_bwrite’ has a previous declaration as ‘ssize_t (* plugin_bwrite)(BFILE*, void*, size_t)’
../../filed/fd_plugins.c:996: error: conflicting declaration ‘boffset_t (* plugin_blseek)(JCR*, boffset_t, int)’
../../filed/fd_plugins.c:51: error: ‘plugin_blseek’ has a previous declaration as ‘boffset_t (* plugin_blseek)(BFILE*, boffset_t, int)’
-----error messages end-----

OS is Fedora11, and source is bacula-3.0.3.

If anyone has a solution of this problem, would you tell me about it?

Best regards,
Kent
------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
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] Sample plugin compilation errors, 小川兼人 <=