>>>>> On Mon, 25 Jul 2005 16:09:59 -0600, Tony Lambregts <[EMAIL PROTECTED]> 
>>>>> said:

  Tony> On 7/22/05, Martin Simmons <[EMAIL PROTECTED]> wrote:
  >> >>>>> On Wed, 20 Jul 2005 12:15:23 -0600, Tony Lambregts <[EMAIL 
PROTECTED]> said:
  >> 
  Tony> I have ACL's working on our FreeBSD Server using Samba but when I
  Tony> tried to backup and restore the files using Bacula I was unable to
  Tony> restore the ACL's. When I investigated I discovered that Bacula
  Tony> configured itself to have  "ACL support: no". I compiled it from
  Tony> soure using ports (bacula-1.36.2) The relevant portion of the
  Tony> configure check is as follows.
  >> 
  Tony> checking sys/acl.h usability... yes
  Tony> checking sys/acl.h presence... yes
  Tony> checking for sys/acl.h... yes
  Tony> checking for acl_get_file in -lacl... no
  >> 
  Tony> From my research that last test is only really valid on linux.
  >> 
  Tony> I would really like to know how to get Bacula to backup and restore
  Tony> ACL's on FreeBSD. Is this a known issue that has a simple fix or have
  Tony> I missed something?
  >> 
  >> You could try hacking configure to use -lposix1e instead of -lacl.  YMMV.
  >> 
  >> __Martin
  >> 

  Tony> Well I'm not sure that I did this correctly since configure still come
  Tony> up with a NO for ACL support. The following is how I modified
  Tony> configure

  Tony> --- configure.orig      Fri Feb 25 02:46:49 2005
  Tony> +++ configure   Mon Jul 25 17:59:02 2005
  Tony> @@ -20553,13 +20553,13 @@
  Tony>   fi
 
 
  Tony> -echo "$as_me:$LINENO: checking for acl_get_file in -lacl" >&5
  Tony> -echo $ECHO_N "checking for acl_get_file in -lacl... $ECHO_C" >&6
  Tony> +echo "$as_me:$LINENO: checking for acl_get_file in -lposix1e" >&5
  Tony> +echo $ECHO_N "checking for acl_get_file in -lposix1e... $ECHO_C" >&6
  Tony>  if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then
  Tony>    echo $ECHO_N "(cached) $ECHO_C" >&6
  Tony>  else
  Tony> -  ac_check_lib_save_LIBS=$LIBS
  Tony> -LIBS="-lacl  $LIBS"
  Tony> +  acl_check_lib_save_LIBS=$LIBS
  Tony> +LIBS="-lposix1e  $LIBS"
  Tony>   cat >conftest.$ac_ext <<_ACEOF
  Tony>  /* confdefs.h.  */
  Tony>  _ACEOF
  Tony> @@ -20618,7 +20618,7 @@
  Tony>   echo "$as_me:$LINENO: result: $ac_cv_lib_acl_acl_get_file" >&5
  Tony>  echo "${ECHO_T}$ac_cv_lib_acl_acl_get_file" >&6
  Tony>  if test $ac_cv_lib_acl_acl_get_file = yes; then
  Tony> -  FDLIBS="-lacl $FDLIBS"
  Tony> +  FDLIBS="-lposix1e $FDLIBS"
  Tony>   fi

  Tony> For the hell of it I modified config.h by hand and set HAVE_ACL to true.

  Tony> #define HAVE_ACL 1

  Tony> This did not (surprise) work..

  Tony> backup.c:35:24: acl/libacl.h: No such file or directory
  Tony> backup.c: In function `int read_send_acl(JCR*, BSOCK*, int, int)':
  Tony> backup.c:572: error: `TEXT_ABBREVIATE' undeclared (first use this 
function)
  Tony> backup.c:572: error: (Each undeclared identifier is reported only once
  Tony> for each function it appears in.)
  Tony> backup.c:572: error: `acl_to_any_text' undeclared (first use this 
function)
  Tony> *** Error code 1


  Tony> Obviously it needs more than a configure check...

Oh well, it looks like bacula is using non-portable acl functions.

__Martin



-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
Bacula-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to