It seems weird that the bacula package in Debian and Ubuntu, et al, is
broken and no one has noticed (checked Debian bug database). I know Debian
has been on 5.x in the stable release for years (still is). It's possible
that 7.0.5 got packaged for their testing release and maybe Ubuntu xenial
picked it up and thus Mint 18. My guess is most folks using bacula on a
Debian distro are on Debian stable, and not Ubuntu or mint (workstation
oriented releases...if anything, may be using bacula-fd) and thus no one
has noticed. I'll do a little digging and talk to the person who packages
bacula for Debian and see if I figure it out.

Thanks for the insight about the known compiler issues!

-Jonathan Hankins

On Sat, Oct 1, 2016, 7:57 AM Kern Sibbald <k...@sibbald.com> wrote:

> Hello Josh,
>
> Yes, if you build either with -D fortify-source=2 or link with 
> -Bsymbolic-functions,
> Bacula will fail.  It is best
> to stick with the Bacula recommended build options, which is what you are
> using.
>
> Also if you have a Bacula version less that 7.4.3 and you build with GNU
> C++ 6.0 or greater,
> Bacula will not work.  This problem is fixed in 7.4.3 and greater, but the
> guys committing to
> C++ have lost all common sense of the basic function of the C++ compiler
> that is to correctly
> compile the source code written by the author.  On multiple occasions,
> they now simply elide (drop
> or delete) your source code.  Consequently, it is likely that with new C++
> compiler we will
> run into additional problems, unless we can find a C++ compiler that
> respects what the programmer
> writes.  It is the user's responsibility (or problem) if he/she adds
> options that the project
> does not use (and often warns against), but when you have rogue C++
> compiler writers, life
> gets much more complicated.
>
> Best regards,
> Kern
>
> On 10/01/2016 02:11 PM, Josh Fisher wrote:
>
>
> On 10/1/2016 2:44 AM, Hankins, Jonathan wrote:
>
> So I've narrowed it down. If I build from Debian's patched source, but run
> ./configure myself, my flags in config.out look like:
>
> Compiler flags:           -g -O2 -Wall -fno-strict-aliasing
> -fno-exceptions -fno-rtti
> Linker flags:
>
> However, if I build using debian's rules file, my flags in config.out look
> like:
>
> Compiler flags:           -g -O2 -fstack-protector-strong -Wformat
> -Werror=format-security -fno-strict-aliasing -fno-exceptions -fno-rtti
> -fno-strict-aliasing -fno-exceptions -fno-rtti
> Linker flags:             -Wl,-Bsymbolic-functions -Wl,-z,relro
>
>
> Years ago I ran into a situation with building Bacula RPMS when RedHat
> started adding -D fortify-source to CFLAGS by default. This would cause
> 'buffer overflow detected' errors even though what Bacula was doing in the
> code was perfectly safe. It just didn't match what GCC's detection code
> expected. The answer was to override RedHat's RPM macro additions with
> user-defined macros and build using the CLFAGS that Bacula's configure
> creates. I'm not so familiar with Debian packaging, but I'm sure there must
> be a way to override the default rules so that Bacula can be built with a
> proper CFLAGS.
>
>
>
>
> ------------------------------------------------------------------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, SlashDot.org! http://sdm.link/slashdot
>
>
>
> _______________________________________________
> Bacula-users mailing 
> listBacula-users@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/bacula-users
>
>
>
> ------------------------------------------------------------------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, SlashDot.org! http://sdm.link/slashdot
> _______________________________________________
> Bacula-users mailing list
> Bacula-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bacula-users
>

-- 
This e-mail is intended only for the recipient and may contain confidential 
or proprietary information. If you are not the intended recipient, the 
review, distribution, duplication or retention of this message and its 
attachments is prohibited. Please notify the sender of this error 
immediately by reply e-mail, and permanently delete this message and its 
attachments in any form in which they may have been preserved.
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most 
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to