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 > Well I'm not sure that I did this correctly since configure still come up with a NO for ACL support. The following is how I modified configure
--- configure.orig Fri Feb 25 02:46:49 2005 +++ configure Mon Jul 25 17:59:02 2005 @@ -20553,13 +20553,13 @@ fi -echo "$as_me:$LINENO: checking for acl_get_file in -lacl" >&5 -echo $ECHO_N "checking for acl_get_file in -lacl... $ECHO_C" >&6 +echo "$as_me:$LINENO: checking for acl_get_file in -lposix1e" >&5 +echo $ECHO_N "checking for acl_get_file in -lposix1e... $ECHO_C" >&6 if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else - ac_check_lib_save_LIBS=$LIBS -LIBS="-lacl $LIBS" + acl_check_lib_save_LIBS=$LIBS +LIBS="-lposix1e $LIBS" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF @@ -20618,7 +20618,7 @@ echo "$as_me:$LINENO: result: $ac_cv_lib_acl_acl_get_file" >&5 echo "${ECHO_T}$ac_cv_lib_acl_acl_get_file" >&6 if test $ac_cv_lib_acl_acl_get_file = yes; then - FDLIBS="-lacl $FDLIBS" + FDLIBS="-lposix1e $FDLIBS" fi For the hell of it I modified config.h by hand and set HAVE_ACL to true. #define HAVE_ACL 1 This did not (surprise) work.. backup.c:35:24: acl/libacl.h: No such file or directory backup.c: In function `int read_send_acl(JCR*, BSOCK*, int, int)': backup.c:572: error: `TEXT_ABBREVIATE' undeclared (first use this function) backup.c:572: error: (Each undeclared identifier is reported only once for each function it appears in.) backup.c:572: error: `acl_to_any_text' undeclared (first use this function) *** Error code 1 Obviously it needs more than a configure check... -- Tony Lambregts ------------------------------------------------------- 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_idt77&alloc_id492&op=click _______________________________________________ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users