Using Clang/LLVM 19 on FreeBSD 15-CURRENT (for testing) and seeing errors building both the UrBackup Server and Client. It appears to be related to changes in Clang 19 for std::char_traits’ base template being removed.
UrBackup Server version 2.5.33
UrBackup Client version 2.5.25.0
Clang / LLVM version 19.1.2
I’ve attached logs for both build attempts. Unfortunately, I don’t have a patch to provide (yet.)
Here are the patches I created that allowed me to successfully build and run both client and server on FBSD 15.0-CURRENT (clang version 19.1.7). It also still builds on older versions of clang (such as version 18.1.6):
I tried different std’s on FBSD 15 but they did not work without some (or all?) of these changes. I haven’t tried the dev branch yet, but it would certainly be worth a shot.
Is there a way to pull the dev branch to test from? If so, where would I find it?
Thanks!
EDIT:
I ran some more tests just to follow up with your suggestions and here’s what I found (with respective logs attached below.) Again, this is with clang v19.1.7:
With just replacing std::auto_ptr with std::unique_ptr:
c++11 - fail
c++14 - fail
c++98 - fail
With replacing std::auto_ptr with std::unique_ptr and also std::char_traits and std::basic_string with std::vector:
c++11 - success
c++14 - success
c++98 - fail