On Thursday 24 February 2011 22:41:03 Steve Downie wrote:
> Background:  Synology NAS servers use optware package manager called ipkg,
> and only certain versions of programs are available as precompiled
> libraries. The only version of bacula that they have to offer is the 3.0.3,
> which is precompiled for use with SQlite, which I understand is NOT
> recommended for use with Bacula-5.0.3. I prefer and am more familar with
> MySQL, so I decided to build it from source. This is a 64 bit processor
> (dual core Intel Atom D510).
>
> In order to get bacula-5.0.3 to compile correctly on my Synology DS411+ NAS
> server, I had to #undef HAVE_CHFLAGS in both attribs.c and in
> create_file.c, both in the bacula-5.0.3/src/findlib directory.

The proper way to do that would be to comment it out in /src/config.h

>
> It was being defined, yet nowhere in any of my sources, including all my
> standard .h files, was that a member of the structure "struct stat" that
> contained a member named st_flags.
>
> This was causing compilation of findlib to fail, and subsequently filed,
> dired, stored and tools also failed to compile. Most were related to the
> fact the libbacfind.la was not being built.

HAVE_CHFLAGS is set when there is a chflags function on your system and you 
run ./configure.  Either you did not run ./configure on your NAS or there is 
some missing or modified header files.  chflags is something that is 
implemented on FreeBSD and possibly other BSD systems, which are commonly 
used for NAS boxes.

>
> Since I'm unfamiliar  the codebase, could someone tell me what effect
> changing HAVE_CHFLAGS to undefined might have on operation of bacula and
> associated programs.

Well, without that code, Bacula will not save and restore the appropriate 
flags bits, which are an extension over standard Unix/Linux permissions.  I 
would guess it may not be so important on a NAS, but the only way you can 
know is ask the manufacturer.  If you want to know more look at the FreeBSD 
man pages for chflags.

Best regards,

Kern

>
> I'm hoping that it's an innocuous change, but I'd like to be reassured
> before deploying.
>
> TIA for all replies,
>
> -- Steve Downie
> s...@comcast.net
>
> ---------------------------------------------------------------------------
>--- Free Software Download: Index, Search & Analyze Logs and other IT data
> in Real-Time with Splunk. Collect, index and harness all the fast moving IT
> data generated by your applications, servers and devices whether physical,
> virtual or in the cloud. Deliver compliance at lower cost and gain new
> business insights. http://p.sf.net/sfu/splunk-dev2dev
> _______________________________________________
> Bacula-devel mailing list
> Bacula-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bacula-devel



------------------------------------------------------------------------------
Free Software Download: Index, Search & Analyze Logs and other IT data in 
Real-Time with Splunk. Collect, index and harness all the fast moving IT data 
generated by your applications, servers and devices whether physical, virtual
or in the cloud. Deliver compliance at lower cost and gain new business 
insights. http://p.sf.net/sfu/splunk-dev2dev 
_______________________________________________
Bacula-devel mailing list
Bacula-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-devel

Reply via email to