[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Need help on Bacula FTBFS



Bacula 5.0 is failing to build on both kfreebsd-i386 and amd64.  It is
building fine on all other Debian architectures.

A couple of weird things here:

1) We're not getting an overt build failure, just the failure of a
program to actually be built (or placed in the expected location)

The error is shown in buildd log, but the build
should bail out much earlier:

Compiling acl.c
acl.c: In function 'bacl_exit_code build_acl_streams(JCR*, FF_PKT*)':
acl.c:1233: error: 'os_build_acl_streams' was not declared in this scope
acl.c: In function 'bacl_exit_code parse_acl_streams(JCR*, int)':
acl.c:1249: error: 'os_parse_acl_streams' was not declared in this scope
acl.c:1254: error: 'os_parse_acl_streams' was not declared in this scope
acl.c:1258: error: 'os_access_acl_streams' was not declared in this scope
acl.c:1266: error: 'os_default_acl_streams' was not declared in this scope
acl.c: At global scope:
acl.c:72: warning: 'bacl_exit_code send_acl_stream(JCR*, int)' defined but not used
make[2]: *** [acl.o] Error 1


2) Bacula 3.0.0 built fine on both of these platforms.  Unsure if the
present failure is due to a change in Bacula or in the platform.


Please explicitely disable ACL and xattr,
idea build tested as shown bellow.

Petr


--- debian/rules
+++ debian/rules
@@ -9,7 +9,7 @@
 # from having to guess our platform (since we know it already)
 DEB_HOST_GNU_TYPE   ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
 DEB_BUILD_GNU_TYPE  ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
-
+DEB_HOST_ARCH_OS    ?= $(shell dpkg-architecture -qDEB_HOST_ARCH_OS)

 CFLAGS = -g -Wall
 INSTALL_PROGRAM = install
@@ -58,6 +58,10 @@
 CONF_common    = --disable-gnome --disable-bwx-console --disable-tray-monitor \
                        --disable-bat

+ifeq ($(DEB_HOST_ARCH_OS),kfreebsd)
+CONF_ALL	+= --disable-acl --disable-xattr
+endif
+
 CONF_sqlite3   = --with-sqlite3 --without-mysql --without-postgresql --without-sqlite \
                        --enable-tray-monitor --enable-bat
 CONF_mysql     = --with-mysql --without-sqlite --without-postgresql --without-sqlite3 $(CONF_common)


Reply to: