Each platform requires other configure flags. As you are only after
a working SD you should start with a minimum setting.
I came up with the following build script for my FreeBSD compile.
#!/bin/sh
CFLAGS="-O3"
CXXFLAGS="-O3"
export CFLAGS CXXFLAGS
./configure \
--prefix=/opt/bareos \
--with-plugindir=/opt/bareos/lib/plugins \
--with-sbin-perm=0555 \
--enable-lockmgr \
--enable-includes \
--enable-ipv6 \
--enable-dynamic-cats-backends \
--disable-bat \
--with-sqlite3=/usr/local \
--with-lzo=/usr/local \
--with-readline=/usr/local \
--disable-conio \
--enable-ndmp \
--enable-scsi-crypto
You probably can loose the last two e.g. change them to
--disable-ndmp
--disable-scsi-crypto
I install everything into /opt/bareos so I don't have to find all my
scripts and binaries all over the filesystem or in the already overcrouded
/usr/local dir.
>
> I installed FreeBSD 9.1-RELEASE, downloaded the source code of Bareos and
> compiled it with the command found in Howto Compile.
>
> You said you have already successfully compiled it on FreeBSD. Which
> version of FreeBSD do you use?
9.1
> Which additional packages did you install?
Quite some but that was mostly to get Gnome up and running in the VM.
I think you should make sure that at least readline, sqlite3 and lzo2
are installed of the ports as those are used in the above configure.
>
> I get the following error:
>
> Compiling scsi_lli.c
> scsi_lli.c: In function 'bool do_scsi_cmd_page(int, const char*, void*,
unsigned int, void*, unsigned
> int, int)':
> scsi_lli.c:284: error: 'cam_getccv' was not declared in this scope
> /usr/include/string.h:67: error: too few arguments to function 'void*
memset(void*, int, size_t)'
> scsi_lli.c:296: error: at this point in file
> scsi_lli.c:296: error: expected `;' before ')' token
> scsi_lli.c:302: error: expected primary-expression before ',' token
> scsi_lli.c:308: error: 'SPP_SP_CMD_LEN' was not declared in this scope
> scsi_lli.c:326: error: 'SAM_STAT_CHECK_CONDITION' was not declared in this
scope
> scsi_lli.c:327: error: 'SAM_STAT_COMMAND_TERMINATED' was not declared in
this scope
> *** [scsi_lli.lo] Error code 1
>
> Stop in /usr/home/guenterg/bareos-Release-12.4.4/src/lib.
>
> ====== Error in /usr/home/guenterg/bareos-Release-12.4.4/src/lib ======
>
> *** [all] Error code 1
>
> Stop in /usr/home/guenterg/bareos-Release-12.4.4.
>
> Do you know this error? I'm not sure if I did something wrong or if there
> is really a problem in the code because you said you compiled it without >
a problem.
It does when you don't enable SCSI crypto (which is not tested on FreeBSD
anyway.) But if you pull the latest 12.4/13.2 or master the above problem
is fixed just as is a problem in compiling the NDMP code. But as I said
above you can probably do without it for a SD only.