Problems compiling Bacula on Leap 15.0

Hi,

I have been using Bacula for years. Since 2016 I have been running 7.4.2 (which I compiled at that time). That build survived all the updates of my openSUSE system starting from 13.2 all the way to Leap 42.3.

After updating from Leap 42.3 to Leap 15.0 I am no longer able to start bacula-dir.service as discussed in this thread. Unfortunately the little trick I tried to apply seems inappropriate as I have been told that my service might “explode” and the advice was to try to compile it with newer source.

Trying to avoid the need for database update by switching to a newer major version, first I tried to recompile the exact same source of 7.4.2 which I used in 2016, following the exact same steps from that time. Unfortunately that gives errors during make. So I thought perhaps I should use the situation to upgrade to newest Bacula 9.0.8.

So following the same steps, I cloned from git, ran configure but during make I am getting other errors.

IOW: I can neither have the software which I used so far, nor the new one. Surely that is a big problem because a broken backup system is a serious issue. Sadly this happened as a result of the OS upgrade.

Can someone please help to resolve this situation?

How is it related to installation? There is Development subforum, there is Applications subforum.

I don’t think it is development because I am not developing anything. Also the subheading of Applications forum says it is about desktops and software applications (configuration, usage etc). Similarly Bacula is a network backup software but I doubt this issue belongs in “Network/Internet”. So I thought it is closest to installation: Bacula is a pack of services that start on boot and not a desktop app. Also it is directly related to issues arising from OS upgrade and an attempt of installing a particular package. That’s how I look at it (and I may be wrong) but if mods consider it inappropriate - please move it to relevant section.

But it is an application, and not systems level. This sub=forum is about installing and booting openSUSE, not software running on the platform.

Bacula is not even part of the Leap distribution, and your reported problems (with libmysqlclient) are not specific to openSUSE. They are a result of your chosen Bacula version not complying with changes to MySQL made by Oracle a long time ago (and reflected in MariaDB to maintain compatibility). You would probably get more informed assistance from the Bacula community.

Should I duplicate the thread in the Applications forum?

Bacula is not even part of the Leap distribution, and your reported problems (with libmysqlclient) are not specific to openSUSE. They are a result of your chosen Bacula version not complying with changes to MySQL made by Oracle a long time ago (and reflected in MariaDB to maintain compatibility).

The problem is definitely specific in relation to Leap 15 and as I explained it has never been a problem with previous versions of openSUSE. In regards to compilation (this thread) I don’t see any reference to mysql in the error message, so I hope someone can give some help with that. What I notice is that before the error is shown there are 2 warnings related to libssl and libcrypto but I have no idea if that is the reason for the error or anything else.

You would probably get more informed assistance from the Bacula community.

I have already posted to their mailing list but unfortunately there is no reply so far.

It seems related to the configure option ‘–enable-bat’. If I remove it there are no errors. But this is very strange because the dependency is satisfied: libqt4 and libqt4-devel are installed.

In case someone else gets stuck with the same issue:

–enable-bat seems to prefer Qt5 but there is no obvious indication about that (and it is not documented).

Installing libQt5Gui-devel fixes the problem with make.