Re: webdar compilation issues
Denis Corbin via Dar-support <[email protected]>
| Newsgroups | gmane.comp.sysutils.backup.dar.support |
|---|---|
| Message-ID | <[email protected]> |
Le 04/08/2026 à 18:50, Denis Corbin via Dar-support a écrit : > Le 04/08/2026 à 15:56, John Goerzen via Dar-support a écrit : >> Hi Denis, > > Hi John, > >> >> I wanted to let you know that webdar is failing to compile on Debian sid >> (which will eventually become the next release). Information here: >> https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1133665 > > Thank you, I will have a look to that problem shortly, keep you informed. the problem seems to come from the way the configure script is generated from the configure.ac file: Even under Debian Trixie (*), the resulting configure script has the "-std=c++11" flag given to the compiler (here g++), while webdar needs C++14 support at least. So I had to add a statement in the configure.ac file for the configure script to add a test to compile a sample c++14 code and if it fails compiling it, the configure.ac instructs to forcibly add "-std=c++14" flag to the compiler command line to be able to compile webdar. I understand that C++14 is in turn not sufficient for the nlohman-json3-dev package, which webdar depends on... thus removing the flag fixes the issue... but will avoid webdar compiling on some older systems... looking how to have something that works in all environments. I hope to have something this week. (*) will double check that, as I was testing it a bit fast and played with many platforms at the same time. > >> >> I discovered that it is the -std=c++14 that is doing this. The rest of >> the system is built to a newer standard. My workaround is to run this >> after configure: >> >> sed -i 's,-std=c++14,,g' Makefile */Makefile >> >> but I bet that others will run into this as their environments move to >> newer compilers as well. >> >> Thanks, >> >> John >> > > Cheers, > Denis >