You can subscribe to this list here.
| 2002 |
Jan
|
Feb
|
Mar
|
Apr
(75) |
May
(2) |
Jun
(17) |
Jul
|
Aug
|
Sep
|
Oct
(1) |
Nov
(2) |
Dec
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2003 |
Jan
(39) |
Feb
(22) |
Mar
(40) |
Apr
(12) |
May
(79) |
Jun
(11) |
Jul
(43) |
Aug
(25) |
Sep
(7) |
Oct
(62) |
Nov
(105) |
Dec
(114) |
| 2004 |
Jan
(109) |
Feb
(176) |
Mar
(208) |
Apr
(148) |
May
(91) |
Jun
(114) |
Jul
(47) |
Aug
(92) |
Sep
(82) |
Oct
(33) |
Nov
(221) |
Dec
(309) |
| 2005 |
Jan
(129) |
Feb
(244) |
Mar
(209) |
Apr
(194) |
May
(129) |
Jun
(267) |
Jul
(250) |
Aug
(422) |
Sep
(228) |
Oct
(141) |
Nov
(369) |
Dec
(176) |
| 2006 |
Jan
(184) |
Feb
(342) |
Mar
(296) |
Apr
(321) |
May
(225) |
Jun
(285) |
Jul
(264) |
Aug
(354) |
Sep
(279) |
Oct
(165) |
Nov
(221) |
Dec
(311) |
| 2007 |
Jan
(359) |
Feb
(194) |
Mar
(251) |
Apr
(188) |
May
(328) |
Jun
(263) |
Jul
(244) |
Aug
(339) |
Sep
(517) |
Oct
(156) |
Nov
(148) |
Dec
(158) |
| 2008 |
Jan
(158) |
Feb
(243) |
Mar
(180) |
Apr
(57) |
May
(156) |
Jun
(117) |
Jul
(189) |
Aug
(203) |
Sep
(250) |
Oct
(304) |
Nov
(130) |
Dec
(116) |
| 2009 |
Jan
(153) |
Feb
(123) |
Mar
(222) |
Apr
(171) |
May
(166) |
Jun
(127) |
Jul
(133) |
Aug
(102) |
Sep
(157) |
Oct
(191) |
Nov
(190) |
Dec
(229) |
| 2010 |
Jan
(207) |
Feb
(164) |
Mar
(125) |
Apr
(145) |
May
(139) |
Jun
(65) |
Jul
(97) |
Aug
(132) |
Sep
(87) |
Oct
(59) |
Nov
(81) |
Dec
(50) |
| 2011 |
Jan
(64) |
Feb
(41) |
Mar
(59) |
Apr
(42) |
May
(20) |
Jun
(39) |
Jul
(29) |
Aug
(59) |
Sep
(21) |
Oct
(66) |
Nov
(85) |
Dec
(45) |
| 2012 |
Jan
(25) |
Feb
(35) |
Mar
(41) |
Apr
(10) |
May
(26) |
Jun
(28) |
Jul
(32) |
Aug
(19) |
Sep
(31) |
Oct
(9) |
Nov
(21) |
Dec
(20) |
| 2013 |
Jan
(16) |
Feb
(23) |
Mar
(21) |
Apr
(16) |
May
(6) |
Jun
(2) |
Jul
(16) |
Aug
(13) |
Sep
(24) |
Oct
(28) |
Nov
(13) |
Dec
(20) |
| 2014 |
Jan
(11) |
Feb
(10) |
Mar
(51) |
Apr
(132) |
May
(9) |
Jun
(2) |
Jul
(4) |
Aug
(13) |
Sep
(3) |
Oct
(6) |
Nov
(42) |
Dec
(4) |
| 2015 |
Jan
(5) |
Feb
(11) |
Mar
(15) |
Apr
(15) |
May
(27) |
Jun
(3) |
Jul
(6) |
Aug
(10) |
Sep
(34) |
Oct
(29) |
Nov
(4) |
Dec
(1) |
| 2016 |
Jan
(29) |
Feb
(37) |
Mar
(3) |
Apr
|
May
(8) |
Jun
(8) |
Jul
(4) |
Aug
(4) |
Sep
(18) |
Oct
(13) |
Nov
(7) |
Dec
(3) |
| 2017 |
Jan
|
Feb
(10) |
Mar
(17) |
Apr
(4) |
May
(6) |
Jun
(35) |
Jul
(60) |
Aug
(57) |
Sep
(10) |
Oct
(33) |
Nov
(48) |
Dec
(2) |
| 2018 |
Jan
(5) |
Feb
(10) |
Mar
(2) |
Apr
(23) |
May
(12) |
Jun
(16) |
Jul
(10) |
Aug
(46) |
Sep
(1) |
Oct
(34) |
Nov
(12) |
Dec
(45) |
| 2019 |
Jan
(29) |
Feb
(22) |
Mar
(25) |
Apr
(13) |
May
(12) |
Jun
(8) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
(2) |
Dec
(30) |
| 2020 |
Jan
(5) |
Feb
(46) |
Mar
(19) |
Apr
(5) |
May
(10) |
Jun
(53) |
Jul
(34) |
Aug
(7) |
Sep
(22) |
Oct
(7) |
Nov
(9) |
Dec
(58) |
| 2021 |
Jan
(23) |
Feb
(11) |
Mar
(43) |
Apr
(7) |
May
(29) |
Jun
(10) |
Jul
|
Aug
|
Sep
|
Oct
(21) |
Nov
|
Dec
(4) |
| 2022 |
Jan
|
Feb
|
Mar
(37) |
Apr
|
May
(3) |
Jun
(6) |
Jul
(4) |
Aug
(14) |
Sep
(3) |
Oct
(1) |
Nov
(2) |
Dec
|
| 2023 |
Jan
(20) |
Feb
(2) |
Mar
(1) |
Apr
|
May
(8) |
Jun
|
Jul
|
Aug
|
Sep
(3) |
Oct
(10) |
Nov
(5) |
Dec
(2) |
| 2024 |
Jan
(2) |
Feb
(2) |
Mar
(1) |
Apr
|
May
(41) |
Jun
|
Jul
(3) |
Aug
|
Sep
|
Oct
(7) |
Nov
(9) |
Dec
(3) |
| 2025 |
Jan
(6) |
Feb
(5) |
Mar
(1) |
Apr
|
May
(1) |
Jun
(6) |
Jul
|
Aug
(2) |
Sep
(13) |
Oct
(4) |
Nov
(1) |
Dec
(5) |
| 2026 |
Jan
(11) |
Feb
(1) |
Mar
(6) |
Apr
(2) |
May
(11) |
Jun
(5) |
Jul
|
Aug
(7) |
Sep
|
Oct
|
Nov
|
Dec
|
|
From: Ana E. M. A. <emi...@gm...> - 2026-08-15 02:01:09
|
Hello Marcin, El lun, 10 ago 2026, 23:23, Marcin Haba <gan...@gm...> escribió: > On Mon, 10 Aug 2026 at 09:10, <er...@ba...> wrote: > > > > > This Baculum 17.0.0 is not adapted for Bacula 17.0.0. I will check it > > > together with the Bacula 17.0.0 tests. > > > > No problem, this is a beta release, ping me when your tests are done. > > Hello Eric, hello everybody, > > I have finished adapting Baculum and basic tests. This 17.0.0 behaves > stable for me. At least I didn't find anything wrong. > Great news! Thanks! I'm glad Bacula 17.0.0 is a good release. Best regards, Ana > _______________________________________________ > Bacula-devel mailing list > Bac...@li... > https://lists.sourceforge.net/lists/listinfo/bacula-devel > |
|
From: Marcin H. <gan...@gm...> - 2026-08-11 02:22:49
|
On Mon, 10 Aug 2026 at 09:10, <er...@ba...> wrote: > > > This Baculum 17.0.0 is not adapted for Bacula 17.0.0. I will check it > > together with the Bacula 17.0.0 tests. > > No problem, this is a beta release, ping me when your tests are done. Hello Eric, hello everybody, I have finished adapting Baculum and basic tests. This 17.0.0 behaves stable for me. At least I didn't find anything wrong. Best regards, Marcin Haba |
|
From: Marcin H. <gan...@gm...> - 2026-08-10 09:33:41
|
On Mon, 10 Aug 2026 at 10:57, <er...@ba...> wrote: > > Hello Marcin, > > >> > >> I sent you a message last week, but I have used your bacula.pl email address and I got no error or reply, I will use the gmail one now. > > > > I have not received any e-mail from you. This email from bacula.pl > > works fine, I use it every day. You do not need to change it to email > > from gmail. It uses gmail as well. > > I found back the email in the draft box, sorry, I did not double check with a new one. I will pay more attention the next time. OK. Good. Thanks for the explanation. Best regards, Marcin Haba > Best Regards, > Eric |
|
From: Marcin H. <gan...@gm...> - 2026-08-10 07:32:10
|
Hello Eric, On Mon, 10 Aug 2026 at 09:10, <er...@ba...> wrote: > > Thanks for the feedback, I will fix the file. Thanks. > >> https://www.bacula.org/downloads/Bacula-17.0.0/ReleaseNotes > > > > In ReleaseNotes 17.0.0 are listed changes for Baculum from version 15.0. > > > > Please let me know before new releases, the same as we were doing it > > in the past. This way I know when repo is ready to add changes and I > > have a chance to prepare Baculum for the new version. Thanks in > > advance. > > > > I sent you a message last week, but I have used your bacula.pl email address and I got no error or reply, I will use the gmail one now. I have not received any e-mail from you. This email from bacula.pl works fine, I use it every day. You do not need to change it to email from gmail. It uses gmail as well. > > This Baculum 17.0.0 is not adapted for Bacula 17.0.0. I will check it > > together with the Bacula 17.0.0 tests. > > No problem, this is a beta release, ping me when your tests are done. Sure. Thanks. Best regards, Marcin Haba > Best Regards, > Eric > |
|
From: <er...@ba...> - 2026-08-10 07:10:13
|
Hello Marcin, > Le 10 août 2026 à 08:49, Marcin Haba <gan...@gm...> a écrit : > > Hello Eric, > > That is really great news. Congratulations to everybody involved in > changes for this beta release. > > Today I am starting tests with 17.0.0. For now I found a few problems > described below. > > On Fri, 7 Aug 2026 at 10:31, eric--- via Bacula-devel > <bac...@li...> wrote: >> >> Some default behaviors have changed since the previous version: >> - The DirectoryACL and UidAcl Console ACL directives can now be left unset, rather than being set to *all* > > This directive is named UserIdAcl, not UidAcl. > >> - The Storage Daemon Device/SyncOnClose directive is now enabled by default > > This Device/SyncOnClose directive is enabled by default already in > Bacula version 15.0. > Thanks for the feedback, I will fix the file. >> https://www.bacula.org/downloads/Bacula-17.0.0/ReleaseNotes > > In ReleaseNotes 17.0.0 are listed changes for Baculum from version 15.0. > > Please let me know before new releases, the same as we were doing it > in the past. This way I know when repo is ready to add changes and I > have a chance to prepare Baculum for the new version. Thanks in > advance. > I sent you a message last week, but I have used your bacula.pl email address and I got no error or reply, I will use the gmail one now. > This Baculum 17.0.0 is not adapted for Bacula 17.0.0. I will check it > together with the Bacula 17.0.0 tests. No problem, this is a beta release, ping me when your tests are done. Best Regards, Eric |
|
From: Marcin H. <gan...@gm...> - 2026-08-10 06:49:27
|
Hello Eric, That is really great news. Congratulations to everybody involved in changes for this beta release. Today I am starting tests with 17.0.0. For now I found a few problems described below. On Fri, 7 Aug 2026 at 10:31, eric--- via Bacula-devel <bac...@li...> wrote: > > Some default behaviors have changed since the previous version: > - The DirectoryACL and UidAcl Console ACL directives can now be left unset, rather than being set to *all* This directive is named UserIdAcl, not UidAcl. > - The Storage Daemon Device/SyncOnClose directive is now enabled by default This Device/SyncOnClose directive is enabled by default already in Bacula version 15.0. > https://www.bacula.org/downloads/Bacula-17.0.0/ReleaseNotes In ReleaseNotes 17.0.0 are listed changes for Baculum from version 15.0. Please let me know before new releases, the same as we were doing it in the past. This way I know when repo is ready to add changes and I have a chance to prepare Baculum for the new version. Thanks in advance. This Baculum 17.0.0 is not adapted for Bacula 17.0.0. I will check it together with the Bacula 17.0.0 tests. Best regards, Marcin Haba |
|
From: <er...@ba...> - 2026-08-07 08:31:35
|
Hello, We are pleased to announce the first beta release of Bacula 17.0.0 on both the Bacula website (www.bacula.org) and SourceForge. This beta release includes hundreds of patches and thousands of new lines of code, mainly backported from Bacula Enterprise, and no AI slope. We have introduced many new security features to protect the File Daemon. I strongly recommend implementing them whenever possible. For example, you can now restrict RunScript execution to a specific set of directories (or forbid it entirely), limit restore destinations, and restrict the locations from which files can be backed up. The CRAM-MD5 handshake protocol has been replaced with SCRAM-SHA256 to remove the weak MD5 protocol from Bacula. Keep in mind, however, that network communication is also protected by TLS by default, so if you cannot install use GSASL it is not a critical flaw. It is now simpler to protect a single job from being pruned from the catalog with the "update jobix=x prune" command. Some default behaviors have changed since the previous version: - The DirectoryACL and UidAcl Console ACL directives can now be left unset, rather than being set to *all* - The Storage Daemon Device/SyncOnClose directive is now enabled by default Other changes are described in the ReleaseNotes file. The documentation is available online at https://docs.baculasystems.com We have added a brand-new feedback button. The distinction between Community and Enterprise versions is now indicated through dedicated tags, and the Developer Guide for advanced users is now available online: https://docs.baculasystems.com/BEAdvancedFeaturesUsage/DeveloperGuide/index.html#developerguide We have also reorganized the Technical Reference chapter and introduced a new format for presenting directives: https://docs.baculasystems.com/BETechnicalReference/Director/DirectorResourceTypes/DirectorResource/index.html#technicalreferencedirdirectorresource Binaries for Windows, Red Hat 7, 8, 9, and 10 (and compatible systems), Debian 11, 12, and 13, and Ubuntu 22, 24, and 26 LTS are available on Bacula.org. Any feedback is welcome ! (Note that it's a "beta" release, but packages are in the "release" part). The certificate used to sign package is still the same one, and we will work to support a stronger one for the official stable release. Thanks to all contributors, especially Bacula Systems, for their support! Thank you for using Bacula. Eric https://www.bacula.org/source-download-center/ https://www.bacula.org/downloads/Bacula-17.0.0/ReleaseNotes |
|
From: Carsten L. <le...@de...> - 2026-06-12 22:56:22
|
Hi Martin, Martin Simmons <ma...@li...> writes: > The version of Bacula (11) that introduced these three SET statements predates > postgres 15 by 2 years, so possibly most people upgraded Bacula before that > postgres release? thanks, that helps. - Carsten |
|
From: Martin S. <ma...@li...> - 2026-06-12 18:12:37
|
>>>>> On Fri, 12 Jun 2026 00:10:50 +0200, Carsten Leonhardt said: > > Hi, > > we got a Debian bug¹ report about the postgres database upgrade script > where the user executed "update_postgresql_tables" and it failed in step > "15 to 1017", specifically the part with the dump to file and restore > from file. > > The part where data is written to file is executed as > > psql ... set ... set ... set ... (and then the actual data is generated) > > see: > https://gitlab.bacula.org/bacula-community-edition/bacula-community/-/blob/Branch-15.0/bacula/src/cats/update_postgresql_tables.in?ref_type=heads#L189 > > which results in the file containing three "SET" statements at the > beginning. That looks wrong? The user reported that he needed to add a > "-q" for "quiet" to the dump, which supresses the output of the "SET" > statements into the file and then the upgrade worked. > > I do wonder though why nobody else reported the problem. > > Any thoughts? It depends on the version of postgres. Prior to version 15, psql only printed the results of the last command, but this was changed in version 15 to print all results by default (see "Make psql output all results" at https://www.postgresql.org/docs/release/15.0/). The version of Bacula (11) that introduced these three SET statements predates postgres 15 by 2 years, so possibly most people upgraded Bacula before that postgres release? __Martin |
|
From: Sven H. <sv...@sv...> - 2026-06-12 13:00:08
|
On 12.06.26 00:10, Carsten Leonhardt wrote: > Hi, > > we got a Debian bug¹ report about the postgres database upgrade script > where the user executed "update_postgresql_tables" and it failed in step > "15 to 1017", specifically the part with the dump to file and restore > from file. Is saw the discussion on the Bacula ML. > The part where data is written to file is executed as > > psql ... set ... set ... set ... (and then the actual data is generated) > > see: > https://gitlab.bacula.org/bacula-community-edition/bacula-community/-/blob/Branch-15.0/bacula/src/cats/update_postgresql_tables.in?ref_type=heads#L189 > > which results in the file containing three "SET" statements at the > beginning. That looks wrong? The user reported that he needed to add a > "-q" for "quiet" to the dump, which supresses the output of the "SET" > statements into the file and then the upgrade worked. > > I do wonder though why nobody else reported the problem. > > Any thoughts? People probably don't execute the upgrade scripts manually. The dbconfig route for the package uses works, or we would have had more reports and piuparts would also have complained. Question is, is this Debian PostgreSQL or the one from the upstream repository? Maybe there is a differenct with newer version than the one in Trixie? And isn't this more of an upstream bug, since it is the Bacula-native update script? Grüße, Sven. |
|
From: Arno L. <al...@it...> - 2026-06-12 12:54:58
|
Hi Carsten, Am 12.06.2026 um 00:10 schrieb Carsten Leonhardt: > Hi, > > we got a Debian bug¹ report about the postgres database upgrade script > where the user executed "update_postgresql_tables" and it failed in step > "15 to 1017", specifically the part with the dump to file and restore > from file. > > The part where data is written to file is executed as > > psql ... set ... set ... set ... (and then the actual data is generated) > > see: > https://gitlab.bacula.org/bacula-community-edition/bacula-community/-/blob/Branch-15.0/bacula/src/cats/update_postgresql_tables.in?ref_type=heads#L189 > > which results in the file containing three "SET" statements at the > beginning. That looks wrong? The user reported that he needed to add a > "-q" for "quiet" to the dump, which supresses the output of the "SET" > statements into the file and then the upgrade worked. > > I do wonder though why nobody else reported the problem. I can think of a few reasons, but that would be pure speculation. So, instead... > Any thoughts? ... this should be straightforward to reproduce. On the other hand, I would trust the Credativ team to have this properly qualified, so, as this does not seem to be a very risky thing, apply their patch :-) Cheers, Arno > - Carsten > > > 1) https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1113777 (don't mind > the part about escaping "$$", that's already fixed in development) -- Arno Lehmann IT-Service Lehmann Sandstr. 6, 49080 Osnabrück |
|
From: Carsten L. <le...@de...> - 2026-06-11 22:11:07
|
Hi, we got a Debian bug¹ report about the postgres database upgrade script where the user executed "update_postgresql_tables" and it failed in step "15 to 1017", specifically the part with the dump to file and restore from file. The part where data is written to file is executed as psql ... set ... set ... set ... (and then the actual data is generated) see: https://gitlab.bacula.org/bacula-community-edition/bacula-community/-/blob/Branch-15.0/bacula/src/cats/update_postgresql_tables.in?ref_type=heads#L189 which results in the file containing three "SET" statements at the beginning. That looks wrong? The user reported that he needed to add a "-q" for "quiet" to the dump, which supresses the output of the "SET" statements into the file and then the upgrade worked. I do wonder though why nobody else reported the problem. Any thoughts? - Carsten 1) https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1113777 (don't mind the part about escaping "$$", that's already fixed in development) |
|
From: Phil S. <ph...@ca...> - 2026-05-25 22:58:20
|
On 12/5/25 10:52, Thomas Beierlein wrote: > Hi all, > > as Qt5 support here on Gentoo Linux is nearing its end, I would like to ask again about the state of the bat Qt console for bacula? Any news here?> > It would be a pitty if we would be forced the support. > > So any comment ist welcome. > > Sincerly, Thomas. I just looked this up myself actually, hoping not to have to venture into installing one of the web interfaces, and ... actually Gentoo's app-backup/bacula ebuild appears to have had BAT already ported to Qt6. So perhaps this is no longer an issue. -- Phil Stracchino Fenian House Publishing ph...@ca... ph...@co... Landline: +1.603.293.8485 Mobile: +1.603.998.6958 |
|
From: Phil S. <ph...@ca...> - 2026-05-17 15:05:11
|
On 5/17/26 10:24, Phil Stracchino wrote: > Qt5 has reached end-of-life and is scheduled for imminent removal from > Gentoo Linux (and possibly other distributions). Do we have any > progress in updating BAT for Qt6? It is the only non-Web management GUI > for Bacula. > > I'm aware we now have *two* different web GUIs, but we have a perfectly > good *non-web-based* management GUI, and it should be kept alive. Not > everyone wants to do everything through their web browser. Meant to add, the Gentoo ticket references the following links for porting from Qt5 to Qt6. Note in particular the reference to using the Qt5compat library: https://doc.qt.io/qt-6/portingguide.html https://www.qt.io/blog/references-and-hints-about-porting-from-qt5-to-qt6 https://www.qt.io/blog/porting-from-qt-5-to-qt-6-using-qt5compat-library I *do not feel confident* in doing this myself, I *do not know* C++ (and even my C is very rusty, not in a good way) and have never really been a professional code developer, but I'm willing to have a preliminary look at it if nobody with better development skills wants to take the time. -- Phil Stracchino Fenian House Publishing ph...@ca... ph...@co... Landline: +1.603.293.8485 Mobile: +1.603.998.6958 |
|
From: Phil S. <ph...@ca...> - 2026-05-17 14:43:12
|
Qt5 has reached end-of-life and is scheduled for imminent removal from Gentoo Linux (and possibly other distributions). Do we have any progress in updating BAT for Qt6? It is the only non-Web management GUI for Bacula. I'm aware we now have *two* different web GUIs, but we have a perfectly good *non-web-based* management GUI, and it should be kept alive. Not everyone wants to do everything through their web browser. -- Phil Stracchino Fenian House Publishing ph...@ca... ph...@co... Landline: +1.603.293.8485 Mobile: +1.603.998.6958 |
|
From: Martin S. <ma...@li...> - 2026-05-14 17:25:49
|
Yes, that should work. It might be better for Bacula to reimport xxhash from the original repository, because I see that has a commit to fix this (and also a few other things) by swapping the clauses: https://github.com/Cyan4973/xxHash/commit/91776a52e854e7ba562132b7d49861b074362a3a.patch __Martin >>>>> On Thu, 14 May 2026 17:38:00 +0100, Andrew Watkins said: > > Very useful information you have given me. > > Looks like the GCC build on Solaris has "__STDC_VERSION__" defined, > trying to find a good reference, but looks like all for compatibility > reasons. > > ref: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=57025 & > https://github.com/jperkin/notes/blob/main/gcc-cpp-stdc/README.md > > "On Solaris, __STDC_VERSION__ is defined even for C++ build, meaning that > the following check doesn't work as expected. Replacing it with __cplusplus > fixes the issue." > > Solaris11.4$ /usr/gcc/14/bin/g++ -dM -x c++ -E - < /dev/null | egrep > "__cplusplus|_STDC_VERSION_" > #define __cplusplus 201703L > #define __STDC_VERSION__ 201112L > > Ubuntu24.04$ g++-14 -dM -x c++ -E - < /dev/null | egrep > "__cplusplus|_STDC_VERSION_" > #define __cplusplus 201703L > > I think a possible fix which may work on all platforms is: > > --- bacula-15.0.3/src/lib/xxhash.h 2025-03-26 14:34:35.000000000 +0000 > +++ bacula-15.0.3/src/lib/xxhash.h 2026-05-14 11:19:57.899228372 +0100 > @@ -1808,7 +1808,7 @@ > > /* note: use after variable declarations */ > #ifndef XXH_STATIC_ASSERT > -# if defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 201112L) /* > C11 */ > +# if !defined(__cplusplus) && defined(__STDC_VERSION__) && > (__STDC_VERSION__ >= 201112L) /* C11 */ > # define XXH_STATIC_ASSERT_WITH_MESSAGE(c,m) do { > _Static_assert((c),m); } while(0) > # elif defined(__cplusplus) && (__cplusplus >= 201103L) /* > C++11 */ > # define XXH_STATIC_ASSERT_WITH_MESSAGE(c,m) do { > static_assert((c),m); } while(0) > > Anyway, thanks for your help so far. > > Andrew > > On 5/13/2026 8:30 PM, Martin Simmons wrote: > > Yes, it should be picking line 1814, but it appears to be picking line 1812 > > because __STDC_VERSION__ is defined unexpectedly. > > > > Your test with -dD is useful, but I suggest trying it with xxhash.c and the > > compiler used by libtool in case that is different, i.e. > > > > cd src/lib > > /usr/gcc/14/bin/g++ -E -dD -x c++ -fno-strict-aliasing -fno-exceptions -fno-rtti -I. -I.. -g -O2 -Wall -m64 -x c++ -fno-strict-aliasing -fno-exceptions -fno-rtti xxhash.c -fPIC -DPIC > > > > and verify that also defines __STDC_VERSION__ as a "<built-in>" macro. > > > > If it isn't a "<built-in>" macro, then which file defines it? > > > > If it is a "<built-in>" macro, then I think your /usr/gcc/14/bin/g++ is > > broken, because __STDC_VERSION__ should not be defined when compiling C++ > > according to > > https://gcc.gnu.org/onlinedocs/cpp/Standard-Predefined-Macros.html. > > > > Also, does it define __cplusplus like it should? > > > > I see you are now using /usr/gcc/14/bin/g++ instead of /usr/gcc/13/bin/g++ as > > in previous output. FWIW, __STDC_VERSION__ is not defined in FreeBSD's g++13 > > and g++14 when -x c++ is passed. This must be true for most other > > platforms/version as well, otherwise the problem would have been fixed > > already. > > > > __Martin > > > > > >>>>>> On Wed, 13 May 2026 16:10:44 +0100, Andrew Watkins said: > >> Hi, > >> > >> Full output of compile below. > >> > >> I see the problem the libtool is picking this line 1812 in xxhash.h: > >> > >> # if defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 201112L) > >> /* C11 */ > >> define XXH_STATIC_ASSERT_WITH_MESSAGE(c,m) do { > >> *_Static_assert*((c),m); } while(0) > >> > >> Where it should be "I am gussing" line 1814: > >> > >> # elif defined(__cplusplus) && (__cplusplus >= 201103L) > >> /* C++11 */ > >> # define XXH_STATIC_ASSERT_WITH_MESSAGE(c,m) do { > >> *static_assert*((c),m); } while(0) > >> > >> The question of how to fix it. Information I have: > >> > >> # gcc -x c++ /dev/null -E -dD |grep STDC_VERSION > >> #define __STDC_VERSION__ 201112L > >> > >> Full output: > >> > >> $ cd src/lib > >> $ /home/andrew/src/bacula-15.0.3/libtool --tag=CXX --mode=compile > >> /usr/gcc/14/bin/g++ -c -x c++ -fno-strict-aliasing -fno-exceptions > >> -fno-rtti -I. -I.. -g -O2 -W all -m64 -x c++ -fno-strict-aliasing > >> -fno-exceptions -fno-rtti xxhash.c > >> libtool: compile: /usr/gcc/14/bin/g++ -c -x c++ -fno-strict-aliasing > >> -fno-exceptions -fno-rtti -I. -I.. -g -O2 -Wall -m64 -x c++ > >> -fno-strict-aliasing -fno-exceptions -fno-rtti xxhash.c -fPIC -DPIC -o > >> .libs/xxhash.o > >> In file included from xxhash.c:43: > >> *xxhash.h: In function 'void XXH32_canonicalFromHash(XXH32_canonical_t*, > >> XXH32_hash_t)':* > >> *xxhash.h:1812:54: error: '_Static_assert' was not declared in this > >> scope; did you mean 'static_assert'?* > >> 1812 | # define XXH_STATIC_ASSERT_WITH_MESSAGE(c,m) do { > >> _Static_assert((c),m); } while(0) > >> | ^~~~~~~~~~~~~~ > >> xxhash.h:1818:32: note: in expansion of macro > >> 'XXH_STATIC_ASSERT_WITH_MESSAGE' > >> 1818 | # define XXH_STATIC_ASSERT(c) > >> XXH_STATIC_ASSERT_WITH_MESSAGE((c),#c) > >> | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > >> xxhash.h:2535:5: note: in expansion of macro 'XXH_STATIC_ASSERT' > >> 2535 | XXH_STATIC_ASSERT(sizeof(XXH32_canonical_t) == > >> sizeof(XXH32_hash_t)); > >> | ^~~~~~~~~~~~~~~~~ > >> xxhash.h: In function 'void XXH64_canonicalFromHash(XXH64_canonical_t*, > >> XXH64_hash_t)': > >> xxhash.h:1812:54: error: '_Static_assert' was not declared in this > >> scope; did you mean 'static_assert'? > >> 1812 | # define XXH_STATIC_ASSERT_WITH_MESSAGE(c,m) do { > >> _Static_assert((c),m); } while(0) > >> | ^~~~~~~~~~~~~~ > >> xxhash.h:1818:32: note: in expansion of macro > >> 'XXH_STATIC_ASSERT_WITH_MESSAGE' > >> 1818 | # define XXH_STATIC_ASSERT(c) > >> XXH_STATIC_ASSERT_WITH_MESSAGE((c),#c) > >> | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > >> xxhash.h:2961:5: note: in expansion of macro 'XXH_STATIC_ASSERT' > >> 2961 | XXH_STATIC_ASSERT(sizeof(XXH64_canonical_t) == > >> sizeof(XXH64_hash_t)); > >> | ^~~~~~~~~~~~~~~~~ > >> xxhash.h: In function 'void XXH3_initCustomSecret_sse2(void*, xxh_u64)': > >> xxhash.h:1812:54: error: '_Static_assert' was not declared in this > >> scope; did you mean 'static_assert'? > >> 1812 | # define XXH_STATIC_ASSERT_WITH_MESSAGE(c,m) do { > >> _Static_assert((c),m); } while(0) > >> | ^~~~~~~~~~~~~~ > >> xxhash.h:1818:32: note: in expansion of macro > >> 'XXH_STATIC_ASSERT_WITH_MESSAGE' > >> 1818 | # define XXH_STATIC_ASSERT(c) > >> XXH_STATIC_ASSERT_WITH_MESSAGE((c),#c) > >> | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > >> xxhash.h:4383:5: note: in expansion of macro 'XXH_STATIC_ASSERT' > >> 4383 | XXH_STATIC_ASSERT((XXH_SECRET_DEFAULT_SIZE & 15) == 0); > >> | ^~~~~~~~~~~~~~~~~ > >> xxhash.h: In function 'void XXH3_initCustomSecret_scalar(void*, xxh_u64)': > >> xxhash.h:1812:54: error: '_Static_assert' was not declared in this > >> scope; did you mean 'static_assert'? > >> 1812 | # define XXH_STATIC_ASSERT_WITH_MESSAGE(c,m) do { > >> _Static_assert((c),m); } while(0) > >> | ^~~~~~~~~~~~~~ > >> xxhash.h:1818:32: note: in expansion of macro > >> 'XXH_STATIC_ASSERT_WITH_MESSAGE' > >> 1818 | # define XXH_STATIC_ASSERT(c) > >> XXH_STATIC_ASSERT_WITH_MESSAGE((c),#c) > >> | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > >> xxhash.h:4752:5: note: in expansion of macro 'XXH_STATIC_ASSERT' > >> 4752 | XXH_STATIC_ASSERT((XXH_SECRET_DEFAULT_SIZE & 15) == 0); > >> | ^~~~~~~~~~~~~~~~~ > >> xxhash.h: In function 'XXH64_hash_t XXH3_hashLong_64b_internal(const > >> void*, std::size_t, const void*, std::size_t, XXH3_f_accumulate_512, > >> XXH3_f_scrambleAcc)': > >> xxhash.h:1812:54: error: '_Static_assert' was not declared in this > >> scope; did you mean 'static_assert'? > >> 1812 | # define XXH_STATIC_ASSERT_WITH_MESSAGE(c,m) do { > >> _Static_assert((c),m); } while(0) > >> | ^~~~~~~~~~~~~~ > >> xxhash.h:1818:32: note: in expansion of macro > >> 'XXH_STATIC_ASSERT_WITH_MESSAGE' > >> 1818 | # define XXH_STATIC_ASSERT(c) > >> XXH_STATIC_ASSERT_WITH_MESSAGE((c),#c) > >> | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > >> xxhash.h:4976:5: note: in expansion of macro 'XXH_STATIC_ASSERT' > >> 4976 | XXH_STATIC_ASSERT(sizeof(acc) == 64); > >> | ^~~~~~~~~~~~~~~~~ > >> xxhash.h: In function 'XXH_errorcode XXH3_update(XXH3_state_t*, const > >> xxh_u8*, std::size_t, XXH3_f_accumulate_512, XXH3_f_scrambleAcc)': > >> xxhash.h:1812:54: error: '_Static_assert' was not declared in this > >> scope; did you mean 'static_assert'? > >> 1812 | # define XXH_STATIC_ASSERT_WITH_MESSAGE(c,m) do { > >> _Static_assert((c),m); } while(0) > >> | ^~~~~~~~~~~~~~ > >> xxhash.h:1818:32: note: in expansion of macro > >> 'XXH_STATIC_ASSERT_WITH_MESSAGE' > >> 1818 | # define XXH_STATIC_ASSERT(c) > >> XXH_STATIC_ASSERT_WITH_MESSAGE((c),#c) > >> | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > >> xxhash.h:5342:9: note: in expansion of macro 'XXH_STATIC_ASSERT' > >> 5342 | XXH_STATIC_ASSERT(XXH3_INTERNALBUFFER_SIZE % XXH_STRIPE_LEN == > >> 0); /* clean multiple */ > >> | ^~~~~~~~~~~~~~~~~ > >> xxhash.h: In function 'XXH128_hash_t XXH3_hashLong_128b_internal(const > >> void*, std::size_t, const xxh_u8*, std::size_t, XXH3_f_accumulate_512, > >> XXH3_f_scrambleAcc)': > >> xxhash.h:1812:54: error: '_Static_assert' was not declared in this > >> scope; did you mean 'static_assert'? > >> 1812 | # define XXH_STATIC_ASSERT_WITH_MESSAGE(c,m) do { > >> _Static_assert((c),m); } while(0) > >> | ^~~~~~~~~~~~~~ > >> xxhash.h:1818:32: note: in expansion of macro > >> 'XXH_STATIC_ASSERT_WITH_MESSAGE' > >> 1818 | # define XXH_STATIC_ASSERT(c) > >> XXH_STATIC_ASSERT_WITH_MESSAGE((c),#c) > >> | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > >> xxhash.h:5768:5: note: in expansion of macro 'XXH_STATIC_ASSERT' > >> 5768 | XXH_STATIC_ASSERT(sizeof(acc) == 64); > >> | ^~~~~~~~~~~~~~~~~ > >> xxhash.h: In function 'void > >> XXH128_canonicalFromHash(XXH128_canonical_t*, XXH128_hash_t)': > >> xxhash.h:1812:54: error: '_Static_assert' was not declared in this > >> scope; did you mean 'static_assert'? > >> 1812 | # define XXH_STATIC_ASSERT_WITH_MESSAGE(c,m) do { > >> _Static_assert((c),m); } while(0) > >> | ^~~~~~~~~~~~~~ > >> xxhash.h:1818:32: note: in expansion of macro > >> 'XXH_STATIC_ASSERT_WITH_MESSAGE' > >> 1818 | # define XXH_STATIC_ASSERT(c) > >> XXH_STATIC_ASSERT_WITH_MESSAGE((c),#c) > >> | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > >> xxhash.h:6011:5: note: in expansion of macro 'XXH_STATIC_ASSERT' > >> 6011 | XXH_STATIC_ASSERT(sizeof(XXH128_canonical_t) == > >> sizeof(XXH128_hash_t)); > >> | ^~~~~~~~~~~~~~~~~ > >> > >> Thanks, > >> Andrew > >> > >> On 5/11/2026 5:56 PM, Martin Simmons wrote: > >>> The config.out looks OK to me. > >>> > >>> In particular in: > >>> > >>> C Compiler: gcc 13.4.0 > >>> C++ Compiler: /usr/gcc/13/bin/g++ 13.4.0 > >>> Compiler flags: -g -O2 -Wall -m64 -x c++ -fno-strict-aliasing -fno-exceptions -fno-rtti > >>> > >>> the -x c++ option is supposed to force the compiler to compile the file as > >>> C++, so __STDC_VERSION__ should not be defined. That works for gcc/g++ in > >>> general. > >>> > >>> I think you have to investigate the exact command line used to compile > >>> xxhash.c by doing: > >>> > >>> cd src/lib > >>> make NO_ECHO= > >>> > >>> That should make it print the commands so you can check it is using the > >>> expected compiler and flags. I assume this will give the same error. > >>> > >>> If you see it running libtool --silent then try running the same libtool > >>> command without --silent to see how libtool is invoking the compiler. > >>> > >>> __Martin > >>> > >>> > >>>>>>>> On Fri, 1 May 2026 19:57:20 +0100, Andrew Watkins said: > >>>> Hi, > >>>> > >>>> I can see what it is doing but why? > >>>> > >>>> From xxhash.h > >>>> > >>>> /* note: use after variable declarations */ > >>>> #ifndef XXH_STATIC_ASSERT > >>>> # if defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 201112L) /* > >>>> C11 */ <<<<< > >>>> # define XXH_STATIC_ASSERT_WITH_MESSAGE(c,m) do { > >>>> _Static_assert((c),m); } while(0) <<<<< This being picked in error!!! > >>>> # elif defined(__cplusplus) && (__cplusplus >= 201103L) /* > >>>> C++11 */ > >>>> # define XXH_STATIC_ASSERT_WITH_MESSAGE(c,m) do { > >>>> static_assert((c),m); } while(0) <<<<< Is this correct for Solaris? > >>>> # else > >>>> # define XXH_STATIC_ASSERT_WITH_MESSAGE(c,m) do { struct xxh_sa { > >>>> char x[(c) ? 1 : -1]; }; } while(0) > >>>> # endif > >>>> # define XXH_STATIC_ASSERT(c) XXH_STATIC_ASSERT_WITH_MESSAGE((c),#c) > >>>> #endif > >>>> > >>>> Attached is config.out > >>>> > >>>> Thanks, > >>>> Andrew > >>>> > >>>> > >>>> On 5/1/2026 5:27 PM, Martin Simmons wrote: > >>>>>>>>>> On Fri, 1 May 2026 12:14:09 +0100, Andrew Watkins said: > >>>>>> Hello, > >>>>>> > >>>>>> I was looking at moving to Bacula 15.0.3 on our servers, but it does not > >>>>>> build on Solaris 11.4 > >>>>>> > >>>>>> Version 13.0.4 builds on Solaris. > >>>>>> > >>>>>> I get this in xxhash (doesn't look like this is in v13) > >>>>>> > >>>>>> In file included from xxhash.c:43: > >>>>>> xxhash.h: In function 'void XXH32_canonicalFromHash(XXH32_canonical_t*, > >>>>>> XXH32_hash_t)': > >>>>>> xxhash.h:1812:54: error: '_Static_assert' was not declared in this > >>>>>> scope; did you mean 'static_assert'? > >>>>>> 1812 | # define XXH_STATIC_ASSERT_WITH_MESSAGE(c,m) do { > >>>>>> _Static_assert((c),m); } while(0) > >>>>>> | ^~~~~~~~~~~~~~ > >>>>>> xxhash.h:1818:32: note: in expansion of macro > >>>>>> 'XXH_STATIC_ASSERT_WITH_MESSAGE' > >>>>>> 1818 | # define XXH_STATIC_ASSERT(c) > >>>>>> XXH_STATIC_ASSERT_WITH_MESSAGE((c),#c) > >>>>>> | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > >>>>>> xxhash.h:2535:5: note: in expansion of macro 'XXH_STATIC_ASSERT' > >>>>>> 2535 | XXH_STATIC_ASSERT(sizeof(XXH32_canonical_t) == > >>>>>> sizeof(XXH32_hash_t)); > >>>>>> | ^~~~~~~~~~~~~~~~~ >>>>> It looks like there is some confusion about C v.s. C++. > >>>>> >>>>> What C++ compiler & version are you using? > >>>>> >>>>> Can you show us the contents of config.out (generated by configure)? > >>>>> >>>>> __Martin > >>>> -- > >>>> ***************************************************** > >>>> ***** Sup...@dc... ***** > >>>> ***************************************************** > >>>> * Andrew Watkins * > >>>> * Birkbeck, University of London * > >>>> * Computing and Mathematical Sciences * > >>>> *https://linkprotect.cudasvc.com/url?a=http%3a%2f%2fnotallmicrosoft.blogspot.com&c=E,1,wm3CK_7eqnUXaHAjzfsRLCBJb57d1tQSxCgVdR7fBUl0EOcqDDZiY3osSJYGGLO5uWR0p9F8P2bQQgDQz0UIDEvkV1Cn0256T-dDtOFVLo4l&typo=1 * > >>>> ***************************************************** > >>>> > >> -- > >> ***************************************************** > >> ***** Support Req...@dc... ***** > >> ***************************************************** > >> * Andrew Watkins * > >> * Birkbeck, University of London * > >> * Computing and Mathematical Sciences * > >> *https://linkprotect.cudasvc.com/url?a=http%3a%2f%2fnotallmicrosoft.blogspot.com&c=E,1,6cLoHThLPIkc4Wiz-1yuip6MNklMxViyw2i6xd4qeCoWvv1cqhfusu-ScQQU9HdPwr3dS6sG0BChW5F8mkU3M1b7fPMdRpnt52Qw3kI-eH7_eHw,&typo=1 * > >> ***************************************************** > >> > -- > ***************************************************** > ***** Support Request to...@dc... ***** > ***************************************************** > * Andrew Watkins * > * Birkbeck, University of London * > * Computing and Mathematical Sciences * > *http://notallmicrosoft.blogspot.com * > ***************************************************** > |
|
From: Andrew W. <a.w...@bb...> - 2026-05-14 16:53:27
|
Very useful information you have given me. Looks like the GCC build on Solaris has "__STDC_VERSION__" defined, trying to find a good reference, but looks like all for compatibility reasons. ref: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=57025 & https://github.com/jperkin/notes/blob/main/gcc-cpp-stdc/README.md "On Solaris, __STDC_VERSION__ is defined even for C++ build, meaning that the following check doesn't work as expected. Replacing it with __cplusplus fixes the issue." Solaris11.4$ /usr/gcc/14/bin/g++ -dM -x c++ -E - < /dev/null | egrep "__cplusplus|_STDC_VERSION_" #define __cplusplus 201703L #define __STDC_VERSION__ 201112L Ubuntu24.04$ g++-14 -dM -x c++ -E - < /dev/null | egrep "__cplusplus|_STDC_VERSION_" #define __cplusplus 201703L I think a possible fix which may work on all platforms is: --- bacula-15.0.3/src/lib/xxhash.h 2025-03-26 14:34:35.000000000 +0000 +++ bacula-15.0.3/src/lib/xxhash.h 2026-05-14 11:19:57.899228372 +0100 @@ -1808,7 +1808,7 @@ /* note: use after variable declarations */ #ifndef XXH_STATIC_ASSERT -# if defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 201112L) /* C11 */ +# if !defined(__cplusplus) && defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 201112L) /* C11 */ # define XXH_STATIC_ASSERT_WITH_MESSAGE(c,m) do { _Static_assert((c),m); } while(0) # elif defined(__cplusplus) && (__cplusplus >= 201103L) /* C++11 */ # define XXH_STATIC_ASSERT_WITH_MESSAGE(c,m) do { static_assert((c),m); } while(0) Anyway, thanks for your help so far. Andrew On 5/13/2026 8:30 PM, Martin Simmons wrote: > Yes, it should be picking line 1814, but it appears to be picking line 1812 > because __STDC_VERSION__ is defined unexpectedly. > > Your test with -dD is useful, but I suggest trying it with xxhash.c and the > compiler used by libtool in case that is different, i.e. > > cd src/lib > /usr/gcc/14/bin/g++ -E -dD -x c++ -fno-strict-aliasing -fno-exceptions -fno-rtti -I. -I.. -g -O2 -Wall -m64 -x c++ -fno-strict-aliasing -fno-exceptions -fno-rtti xxhash.c -fPIC -DPIC > > and verify that also defines __STDC_VERSION__ as a "<built-in>" macro. > > If it isn't a "<built-in>" macro, then which file defines it? > > If it is a "<built-in>" macro, then I think your /usr/gcc/14/bin/g++ is > broken, because __STDC_VERSION__ should not be defined when compiling C++ > according to > https://gcc.gnu.org/onlinedocs/cpp/Standard-Predefined-Macros.html. > > Also, does it define __cplusplus like it should? > > I see you are now using /usr/gcc/14/bin/g++ instead of /usr/gcc/13/bin/g++ as > in previous output. FWIW, __STDC_VERSION__ is not defined in FreeBSD's g++13 > and g++14 when -x c++ is passed. This must be true for most other > platforms/version as well, otherwise the problem would have been fixed > already. > > __Martin > > >>>>>> On Wed, 13 May 2026 16:10:44 +0100, Andrew Watkins said: >> Hi, >> >> Full output of compile below. >> >> I see the problem the libtool is picking this line 1812 in xxhash.h: >> >> # if defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 201112L) >> /* C11 */ >> define XXH_STATIC_ASSERT_WITH_MESSAGE(c,m) do { >> *_Static_assert*((c),m); } while(0) >> >> Where it should be "I am gussing" line 1814: >> >> # elif defined(__cplusplus) && (__cplusplus >= 201103L) >> /* C++11 */ >> # define XXH_STATIC_ASSERT_WITH_MESSAGE(c,m) do { >> *static_assert*((c),m); } while(0) >> >> The question of how to fix it. Information I have: >> >> # gcc -x c++ /dev/null -E -dD |grep STDC_VERSION >> #define __STDC_VERSION__ 201112L >> >> Full output: >> >> $ cd src/lib >> $ /home/andrew/src/bacula-15.0.3/libtool --tag=CXX --mode=compile >> /usr/gcc/14/bin/g++ -c -x c++ -fno-strict-aliasing -fno-exceptions >> -fno-rtti -I. -I.. -g -O2 -W all -m64 -x c++ -fno-strict-aliasing >> -fno-exceptions -fno-rtti xxhash.c >> libtool: compile: /usr/gcc/14/bin/g++ -c -x c++ -fno-strict-aliasing >> -fno-exceptions -fno-rtti -I. -I.. -g -O2 -Wall -m64 -x c++ >> -fno-strict-aliasing -fno-exceptions -fno-rtti xxhash.c -fPIC -DPIC -o >> .libs/xxhash.o >> In file included from xxhash.c:43: >> *xxhash.h: In function 'void XXH32_canonicalFromHash(XXH32_canonical_t*, >> XXH32_hash_t)':* >> *xxhash.h:1812:54: error: '_Static_assert' was not declared in this >> scope; did you mean 'static_assert'?* >> 1812 | # define XXH_STATIC_ASSERT_WITH_MESSAGE(c,m) do { >> _Static_assert((c),m); } while(0) >> | ^~~~~~~~~~~~~~ >> xxhash.h:1818:32: note: in expansion of macro >> 'XXH_STATIC_ASSERT_WITH_MESSAGE' >> 1818 | # define XXH_STATIC_ASSERT(c) >> XXH_STATIC_ASSERT_WITH_MESSAGE((c),#c) >> | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >> xxhash.h:2535:5: note: in expansion of macro 'XXH_STATIC_ASSERT' >> 2535 | XXH_STATIC_ASSERT(sizeof(XXH32_canonical_t) == >> sizeof(XXH32_hash_t)); >> | ^~~~~~~~~~~~~~~~~ >> xxhash.h: In function 'void XXH64_canonicalFromHash(XXH64_canonical_t*, >> XXH64_hash_t)': >> xxhash.h:1812:54: error: '_Static_assert' was not declared in this >> scope; did you mean 'static_assert'? >> 1812 | # define XXH_STATIC_ASSERT_WITH_MESSAGE(c,m) do { >> _Static_assert((c),m); } while(0) >> | ^~~~~~~~~~~~~~ >> xxhash.h:1818:32: note: in expansion of macro >> 'XXH_STATIC_ASSERT_WITH_MESSAGE' >> 1818 | # define XXH_STATIC_ASSERT(c) >> XXH_STATIC_ASSERT_WITH_MESSAGE((c),#c) >> | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >> xxhash.h:2961:5: note: in expansion of macro 'XXH_STATIC_ASSERT' >> 2961 | XXH_STATIC_ASSERT(sizeof(XXH64_canonical_t) == >> sizeof(XXH64_hash_t)); >> | ^~~~~~~~~~~~~~~~~ >> xxhash.h: In function 'void XXH3_initCustomSecret_sse2(void*, xxh_u64)': >> xxhash.h:1812:54: error: '_Static_assert' was not declared in this >> scope; did you mean 'static_assert'? >> 1812 | # define XXH_STATIC_ASSERT_WITH_MESSAGE(c,m) do { >> _Static_assert((c),m); } while(0) >> | ^~~~~~~~~~~~~~ >> xxhash.h:1818:32: note: in expansion of macro >> 'XXH_STATIC_ASSERT_WITH_MESSAGE' >> 1818 | # define XXH_STATIC_ASSERT(c) >> XXH_STATIC_ASSERT_WITH_MESSAGE((c),#c) >> | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >> xxhash.h:4383:5: note: in expansion of macro 'XXH_STATIC_ASSERT' >> 4383 | XXH_STATIC_ASSERT((XXH_SECRET_DEFAULT_SIZE & 15) == 0); >> | ^~~~~~~~~~~~~~~~~ >> xxhash.h: In function 'void XXH3_initCustomSecret_scalar(void*, xxh_u64)': >> xxhash.h:1812:54: error: '_Static_assert' was not declared in this >> scope; did you mean 'static_assert'? >> 1812 | # define XXH_STATIC_ASSERT_WITH_MESSAGE(c,m) do { >> _Static_assert((c),m); } while(0) >> | ^~~~~~~~~~~~~~ >> xxhash.h:1818:32: note: in expansion of macro >> 'XXH_STATIC_ASSERT_WITH_MESSAGE' >> 1818 | # define XXH_STATIC_ASSERT(c) >> XXH_STATIC_ASSERT_WITH_MESSAGE((c),#c) >> | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >> xxhash.h:4752:5: note: in expansion of macro 'XXH_STATIC_ASSERT' >> 4752 | XXH_STATIC_ASSERT((XXH_SECRET_DEFAULT_SIZE & 15) == 0); >> | ^~~~~~~~~~~~~~~~~ >> xxhash.h: In function 'XXH64_hash_t XXH3_hashLong_64b_internal(const >> void*, std::size_t, const void*, std::size_t, XXH3_f_accumulate_512, >> XXH3_f_scrambleAcc)': >> xxhash.h:1812:54: error: '_Static_assert' was not declared in this >> scope; did you mean 'static_assert'? >> 1812 | # define XXH_STATIC_ASSERT_WITH_MESSAGE(c,m) do { >> _Static_assert((c),m); } while(0) >> | ^~~~~~~~~~~~~~ >> xxhash.h:1818:32: note: in expansion of macro >> 'XXH_STATIC_ASSERT_WITH_MESSAGE' >> 1818 | # define XXH_STATIC_ASSERT(c) >> XXH_STATIC_ASSERT_WITH_MESSAGE((c),#c) >> | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >> xxhash.h:4976:5: note: in expansion of macro 'XXH_STATIC_ASSERT' >> 4976 | XXH_STATIC_ASSERT(sizeof(acc) == 64); >> | ^~~~~~~~~~~~~~~~~ >> xxhash.h: In function 'XXH_errorcode XXH3_update(XXH3_state_t*, const >> xxh_u8*, std::size_t, XXH3_f_accumulate_512, XXH3_f_scrambleAcc)': >> xxhash.h:1812:54: error: '_Static_assert' was not declared in this >> scope; did you mean 'static_assert'? >> 1812 | # define XXH_STATIC_ASSERT_WITH_MESSAGE(c,m) do { >> _Static_assert((c),m); } while(0) >> | ^~~~~~~~~~~~~~ >> xxhash.h:1818:32: note: in expansion of macro >> 'XXH_STATIC_ASSERT_WITH_MESSAGE' >> 1818 | # define XXH_STATIC_ASSERT(c) >> XXH_STATIC_ASSERT_WITH_MESSAGE((c),#c) >> | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >> xxhash.h:5342:9: note: in expansion of macro 'XXH_STATIC_ASSERT' >> 5342 | XXH_STATIC_ASSERT(XXH3_INTERNALBUFFER_SIZE % XXH_STRIPE_LEN == >> 0); /* clean multiple */ >> | ^~~~~~~~~~~~~~~~~ >> xxhash.h: In function 'XXH128_hash_t XXH3_hashLong_128b_internal(const >> void*, std::size_t, const xxh_u8*, std::size_t, XXH3_f_accumulate_512, >> XXH3_f_scrambleAcc)': >> xxhash.h:1812:54: error: '_Static_assert' was not declared in this >> scope; did you mean 'static_assert'? >> 1812 | # define XXH_STATIC_ASSERT_WITH_MESSAGE(c,m) do { >> _Static_assert((c),m); } while(0) >> | ^~~~~~~~~~~~~~ >> xxhash.h:1818:32: note: in expansion of macro >> 'XXH_STATIC_ASSERT_WITH_MESSAGE' >> 1818 | # define XXH_STATIC_ASSERT(c) >> XXH_STATIC_ASSERT_WITH_MESSAGE((c),#c) >> | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >> xxhash.h:5768:5: note: in expansion of macro 'XXH_STATIC_ASSERT' >> 5768 | XXH_STATIC_ASSERT(sizeof(acc) == 64); >> | ^~~~~~~~~~~~~~~~~ >> xxhash.h: In function 'void >> XXH128_canonicalFromHash(XXH128_canonical_t*, XXH128_hash_t)': >> xxhash.h:1812:54: error: '_Static_assert' was not declared in this >> scope; did you mean 'static_assert'? >> 1812 | # define XXH_STATIC_ASSERT_WITH_MESSAGE(c,m) do { >> _Static_assert((c),m); } while(0) >> | ^~~~~~~~~~~~~~ >> xxhash.h:1818:32: note: in expansion of macro >> 'XXH_STATIC_ASSERT_WITH_MESSAGE' >> 1818 | # define XXH_STATIC_ASSERT(c) >> XXH_STATIC_ASSERT_WITH_MESSAGE((c),#c) >> | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >> xxhash.h:6011:5: note: in expansion of macro 'XXH_STATIC_ASSERT' >> 6011 | XXH_STATIC_ASSERT(sizeof(XXH128_canonical_t) == >> sizeof(XXH128_hash_t)); >> | ^~~~~~~~~~~~~~~~~ >> >> Thanks, >> Andrew >> >> On 5/11/2026 5:56 PM, Martin Simmons wrote: >>> The config.out looks OK to me. >>> >>> In particular in: >>> >>> C Compiler: gcc 13.4.0 >>> C++ Compiler: /usr/gcc/13/bin/g++ 13.4.0 >>> Compiler flags: -g -O2 -Wall -m64 -x c++ -fno-strict-aliasing -fno-exceptions -fno-rtti >>> >>> the -x c++ option is supposed to force the compiler to compile the file as >>> C++, so __STDC_VERSION__ should not be defined. That works for gcc/g++ in >>> general. >>> >>> I think you have to investigate the exact command line used to compile >>> xxhash.c by doing: >>> >>> cd src/lib >>> make NO_ECHO= >>> >>> That should make it print the commands so you can check it is using the >>> expected compiler and flags. I assume this will give the same error. >>> >>> If you see it running libtool --silent then try running the same libtool >>> command without --silent to see how libtool is invoking the compiler. >>> >>> __Martin >>> >>> >>>>>>>> On Fri, 1 May 2026 19:57:20 +0100, Andrew Watkins said: >>>> Hi, >>>> >>>> I can see what it is doing but why? >>>> >>>> From xxhash.h >>>> >>>> /* note: use after variable declarations */ >>>> #ifndef XXH_STATIC_ASSERT >>>> # if defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 201112L) /* >>>> C11 */ <<<<< >>>> # define XXH_STATIC_ASSERT_WITH_MESSAGE(c,m) do { >>>> _Static_assert((c),m); } while(0) <<<<< This being picked in error!!! >>>> # elif defined(__cplusplus) && (__cplusplus >= 201103L) /* >>>> C++11 */ >>>> # define XXH_STATIC_ASSERT_WITH_MESSAGE(c,m) do { >>>> static_assert((c),m); } while(0) <<<<< Is this correct for Solaris? >>>> # else >>>> # define XXH_STATIC_ASSERT_WITH_MESSAGE(c,m) do { struct xxh_sa { >>>> char x[(c) ? 1 : -1]; }; } while(0) >>>> # endif >>>> # define XXH_STATIC_ASSERT(c) XXH_STATIC_ASSERT_WITH_MESSAGE((c),#c) >>>> #endif >>>> >>>> Attached is config.out >>>> >>>> Thanks, >>>> Andrew >>>> >>>> >>>> On 5/1/2026 5:27 PM, Martin Simmons wrote: >>>>>>>>>> On Fri, 1 May 2026 12:14:09 +0100, Andrew Watkins said: >>>>>> Hello, >>>>>> >>>>>> I was looking at moving to Bacula 15.0.3 on our servers, but it does not >>>>>> build on Solaris 11.4 >>>>>> >>>>>> Version 13.0.4 builds on Solaris. >>>>>> >>>>>> I get this in xxhash (doesn't look like this is in v13) >>>>>> >>>>>> In file included from xxhash.c:43: >>>>>> xxhash.h: In function 'void XXH32_canonicalFromHash(XXH32_canonical_t*, >>>>>> XXH32_hash_t)': >>>>>> xxhash.h:1812:54: error: '_Static_assert' was not declared in this >>>>>> scope; did you mean 'static_assert'? >>>>>> 1812 | # define XXH_STATIC_ASSERT_WITH_MESSAGE(c,m) do { >>>>>> _Static_assert((c),m); } while(0) >>>>>> | ^~~~~~~~~~~~~~ >>>>>> xxhash.h:1818:32: note: in expansion of macro >>>>>> 'XXH_STATIC_ASSERT_WITH_MESSAGE' >>>>>> 1818 | # define XXH_STATIC_ASSERT(c) >>>>>> XXH_STATIC_ASSERT_WITH_MESSAGE((c),#c) >>>>>> | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >>>>>> xxhash.h:2535:5: note: in expansion of macro 'XXH_STATIC_ASSERT' >>>>>> 2535 | XXH_STATIC_ASSERT(sizeof(XXH32_canonical_t) == >>>>>> sizeof(XXH32_hash_t)); >>>>>> | ^~~~~~~~~~~~~~~~~ >>>>> It looks like there is some confusion about C v.s. C++. >>>>> >>>>> What C++ compiler & version are you using? >>>>> >>>>> Can you show us the contents of config.out (generated by configure)? >>>>> >>>>> __Martin >>>> -- >>>> ***************************************************** >>>> ***** Sup...@dc... ***** >>>> ***************************************************** >>>> * Andrew Watkins * >>>> * Birkbeck, University of London * >>>> * Computing and Mathematical Sciences * >>>> *https://linkprotect.cudasvc.com/url?a=http%3a%2f%2fnotallmicrosoft.blogspot.com&c=E,1,wm3CK_7eqnUXaHAjzfsRLCBJb57d1tQSxCgVdR7fBUl0EOcqDDZiY3osSJYGGLO5uWR0p9F8P2bQQgDQz0UIDEvkV1Cn0256T-dDtOFVLo4l&typo=1 * >>>> ***************************************************** >>>> >> -- >> ***************************************************** >> ***** Support Req...@dc... ***** >> ***************************************************** >> * Andrew Watkins * >> * Birkbeck, University of London * >> * Computing and Mathematical Sciences * >> *https://linkprotect.cudasvc.com/url?a=http%3a%2f%2fnotallmicrosoft.blogspot.com&c=E,1,6cLoHThLPIkc4Wiz-1yuip6MNklMxViyw2i6xd4qeCoWvv1cqhfusu-ScQQU9HdPwr3dS6sG0BChW5F8mkU3M1b7fPMdRpnt52Qw3kI-eH7_eHw,&typo=1 * >> ***************************************************** >> -- ***************************************************** ***** Support Request to...@dc... ***** ***************************************************** * Andrew Watkins * * Birkbeck, University of London * * Computing and Mathematical Sciences * *http://notallmicrosoft.blogspot.com * ***************************************************** |
|
From: Martin S. <ma...@li...> - 2026-05-13 19:30:39
|
Yes, it should be picking line 1814, but it appears to be picking line 1812 because __STDC_VERSION__ is defined unexpectedly. Your test with -dD is useful, but I suggest trying it with xxhash.c and the compiler used by libtool in case that is different, i.e. cd src/lib /usr/gcc/14/bin/g++ -E -dD -x c++ -fno-strict-aliasing -fno-exceptions -fno-rtti -I. -I.. -g -O2 -Wall -m64 -x c++ -fno-strict-aliasing -fno-exceptions -fno-rtti xxhash.c -fPIC -DPIC and verify that also defines __STDC_VERSION__ as a "<built-in>" macro. If it isn't a "<built-in>" macro, then which file defines it? If it is a "<built-in>" macro, then I think your /usr/gcc/14/bin/g++ is broken, because __STDC_VERSION__ should not be defined when compiling C++ according to https://gcc.gnu.org/onlinedocs/cpp/Standard-Predefined-Macros.html. Also, does it define __cplusplus like it should? I see you are now using /usr/gcc/14/bin/g++ instead of /usr/gcc/13/bin/g++ as in previous output. FWIW, __STDC_VERSION__ is not defined in FreeBSD's g++13 and g++14 when -x c++ is passed. This must be true for most other platforms/version as well, otherwise the problem would have been fixed already. __Martin >>>>> On Wed, 13 May 2026 16:10:44 +0100, Andrew Watkins said: > > Hi, > > Full output of compile below. > > I see the problem the libtool is picking this line 1812 in xxhash.h: > > # if defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 201112L) > /* C11 */ > define XXH_STATIC_ASSERT_WITH_MESSAGE(c,m) do { > *_Static_assert*((c),m); } while(0) > > Where it should be "I am gussing" line 1814: > > # elif defined(__cplusplus) && (__cplusplus >= 201103L) > /* C++11 */ > # define XXH_STATIC_ASSERT_WITH_MESSAGE(c,m) do { > *static_assert*((c),m); } while(0) > > The question of how to fix it. Information I have: > > # gcc -x c++ /dev/null -E -dD |grep STDC_VERSION > #define __STDC_VERSION__ 201112L > > Full output: > > $ cd src/lib > $ /home/andrew/src/bacula-15.0.3/libtool --tag=CXX --mode=compile > /usr/gcc/14/bin/g++ -c -x c++ -fno-strict-aliasing -fno-exceptions > -fno-rtti -I. -I.. -g -O2 -W all -m64 -x c++ -fno-strict-aliasing > -fno-exceptions -fno-rtti xxhash.c > libtool: compile: /usr/gcc/14/bin/g++ -c -x c++ -fno-strict-aliasing > -fno-exceptions -fno-rtti -I. -I.. -g -O2 -Wall -m64 -x c++ > -fno-strict-aliasing -fno-exceptions -fno-rtti xxhash.c -fPIC -DPIC -o > .libs/xxhash.o > In file included from xxhash.c:43: > *xxhash.h: In function 'void XXH32_canonicalFromHash(XXH32_canonical_t*, > XXH32_hash_t)':* > *xxhash.h:1812:54: error: '_Static_assert' was not declared in this > scope; did you mean 'static_assert'?* > 1812 | # define XXH_STATIC_ASSERT_WITH_MESSAGE(c,m) do { > _Static_assert((c),m); } while(0) > | ^~~~~~~~~~~~~~ > xxhash.h:1818:32: note: in expansion of macro > 'XXH_STATIC_ASSERT_WITH_MESSAGE' > 1818 | # define XXH_STATIC_ASSERT(c) > XXH_STATIC_ASSERT_WITH_MESSAGE((c),#c) > | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > xxhash.h:2535:5: note: in expansion of macro 'XXH_STATIC_ASSERT' > 2535 | XXH_STATIC_ASSERT(sizeof(XXH32_canonical_t) == > sizeof(XXH32_hash_t)); > | ^~~~~~~~~~~~~~~~~ > xxhash.h: In function 'void XXH64_canonicalFromHash(XXH64_canonical_t*, > XXH64_hash_t)': > xxhash.h:1812:54: error: '_Static_assert' was not declared in this > scope; did you mean 'static_assert'? > 1812 | # define XXH_STATIC_ASSERT_WITH_MESSAGE(c,m) do { > _Static_assert((c),m); } while(0) > | ^~~~~~~~~~~~~~ > xxhash.h:1818:32: note: in expansion of macro > 'XXH_STATIC_ASSERT_WITH_MESSAGE' > 1818 | # define XXH_STATIC_ASSERT(c) > XXH_STATIC_ASSERT_WITH_MESSAGE((c),#c) > | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > xxhash.h:2961:5: note: in expansion of macro 'XXH_STATIC_ASSERT' > 2961 | XXH_STATIC_ASSERT(sizeof(XXH64_canonical_t) == > sizeof(XXH64_hash_t)); > | ^~~~~~~~~~~~~~~~~ > xxhash.h: In function 'void XXH3_initCustomSecret_sse2(void*, xxh_u64)': > xxhash.h:1812:54: error: '_Static_assert' was not declared in this > scope; did you mean 'static_assert'? > 1812 | # define XXH_STATIC_ASSERT_WITH_MESSAGE(c,m) do { > _Static_assert((c),m); } while(0) > | ^~~~~~~~~~~~~~ > xxhash.h:1818:32: note: in expansion of macro > 'XXH_STATIC_ASSERT_WITH_MESSAGE' > 1818 | # define XXH_STATIC_ASSERT(c) > XXH_STATIC_ASSERT_WITH_MESSAGE((c),#c) > | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > xxhash.h:4383:5: note: in expansion of macro 'XXH_STATIC_ASSERT' > 4383 | XXH_STATIC_ASSERT((XXH_SECRET_DEFAULT_SIZE & 15) == 0); > | ^~~~~~~~~~~~~~~~~ > xxhash.h: In function 'void XXH3_initCustomSecret_scalar(void*, xxh_u64)': > xxhash.h:1812:54: error: '_Static_assert' was not declared in this > scope; did you mean 'static_assert'? > 1812 | # define XXH_STATIC_ASSERT_WITH_MESSAGE(c,m) do { > _Static_assert((c),m); } while(0) > | ^~~~~~~~~~~~~~ > xxhash.h:1818:32: note: in expansion of macro > 'XXH_STATIC_ASSERT_WITH_MESSAGE' > 1818 | # define XXH_STATIC_ASSERT(c) > XXH_STATIC_ASSERT_WITH_MESSAGE((c),#c) > | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > xxhash.h:4752:5: note: in expansion of macro 'XXH_STATIC_ASSERT' > 4752 | XXH_STATIC_ASSERT((XXH_SECRET_DEFAULT_SIZE & 15) == 0); > | ^~~~~~~~~~~~~~~~~ > xxhash.h: In function 'XXH64_hash_t XXH3_hashLong_64b_internal(const > void*, std::size_t, const void*, std::size_t, XXH3_f_accumulate_512, > XXH3_f_scrambleAcc)': > xxhash.h:1812:54: error: '_Static_assert' was not declared in this > scope; did you mean 'static_assert'? > 1812 | # define XXH_STATIC_ASSERT_WITH_MESSAGE(c,m) do { > _Static_assert((c),m); } while(0) > | ^~~~~~~~~~~~~~ > xxhash.h:1818:32: note: in expansion of macro > 'XXH_STATIC_ASSERT_WITH_MESSAGE' > 1818 | # define XXH_STATIC_ASSERT(c) > XXH_STATIC_ASSERT_WITH_MESSAGE((c),#c) > | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > xxhash.h:4976:5: note: in expansion of macro 'XXH_STATIC_ASSERT' > 4976 | XXH_STATIC_ASSERT(sizeof(acc) == 64); > | ^~~~~~~~~~~~~~~~~ > xxhash.h: In function 'XXH_errorcode XXH3_update(XXH3_state_t*, const > xxh_u8*, std::size_t, XXH3_f_accumulate_512, XXH3_f_scrambleAcc)': > xxhash.h:1812:54: error: '_Static_assert' was not declared in this > scope; did you mean 'static_assert'? > 1812 | # define XXH_STATIC_ASSERT_WITH_MESSAGE(c,m) do { > _Static_assert((c),m); } while(0) > | ^~~~~~~~~~~~~~ > xxhash.h:1818:32: note: in expansion of macro > 'XXH_STATIC_ASSERT_WITH_MESSAGE' > 1818 | # define XXH_STATIC_ASSERT(c) > XXH_STATIC_ASSERT_WITH_MESSAGE((c),#c) > | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > xxhash.h:5342:9: note: in expansion of macro 'XXH_STATIC_ASSERT' > 5342 | XXH_STATIC_ASSERT(XXH3_INTERNALBUFFER_SIZE % XXH_STRIPE_LEN == > 0); /* clean multiple */ > | ^~~~~~~~~~~~~~~~~ > xxhash.h: In function 'XXH128_hash_t XXH3_hashLong_128b_internal(const > void*, std::size_t, const xxh_u8*, std::size_t, XXH3_f_accumulate_512, > XXH3_f_scrambleAcc)': > xxhash.h:1812:54: error: '_Static_assert' was not declared in this > scope; did you mean 'static_assert'? > 1812 | # define XXH_STATIC_ASSERT_WITH_MESSAGE(c,m) do { > _Static_assert((c),m); } while(0) > | ^~~~~~~~~~~~~~ > xxhash.h:1818:32: note: in expansion of macro > 'XXH_STATIC_ASSERT_WITH_MESSAGE' > 1818 | # define XXH_STATIC_ASSERT(c) > XXH_STATIC_ASSERT_WITH_MESSAGE((c),#c) > | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > xxhash.h:5768:5: note: in expansion of macro 'XXH_STATIC_ASSERT' > 5768 | XXH_STATIC_ASSERT(sizeof(acc) == 64); > | ^~~~~~~~~~~~~~~~~ > xxhash.h: In function 'void > XXH128_canonicalFromHash(XXH128_canonical_t*, XXH128_hash_t)': > xxhash.h:1812:54: error: '_Static_assert' was not declared in this > scope; did you mean 'static_assert'? > 1812 | # define XXH_STATIC_ASSERT_WITH_MESSAGE(c,m) do { > _Static_assert((c),m); } while(0) > | ^~~~~~~~~~~~~~ > xxhash.h:1818:32: note: in expansion of macro > 'XXH_STATIC_ASSERT_WITH_MESSAGE' > 1818 | # define XXH_STATIC_ASSERT(c) > XXH_STATIC_ASSERT_WITH_MESSAGE((c),#c) > | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > xxhash.h:6011:5: note: in expansion of macro 'XXH_STATIC_ASSERT' > 6011 | XXH_STATIC_ASSERT(sizeof(XXH128_canonical_t) == > sizeof(XXH128_hash_t)); > | ^~~~~~~~~~~~~~~~~ > > Thanks, > Andrew > > On 5/11/2026 5:56 PM, Martin Simmons wrote: > > The config.out looks OK to me. > > > > In particular in: > > > > C Compiler: gcc 13.4.0 > > C++ Compiler: /usr/gcc/13/bin/g++ 13.4.0 > > Compiler flags: -g -O2 -Wall -m64 -x c++ -fno-strict-aliasing -fno-exceptions -fno-rtti > > > > the -x c++ option is supposed to force the compiler to compile the file as > > C++, so __STDC_VERSION__ should not be defined. That works for gcc/g++ in > > general. > > > > I think you have to investigate the exact command line used to compile > > xxhash.c by doing: > > > > cd src/lib > > make NO_ECHO= > > > > That should make it print the commands so you can check it is using the > > expected compiler and flags. I assume this will give the same error. > > > > If you see it running libtool --silent then try running the same libtool > > command without --silent to see how libtool is invoking the compiler. > > > > __Martin > > > > > >>>>>> On Fri, 1 May 2026 19:57:20 +0100, Andrew Watkins said: > >> Hi, > >> > >> I can see what it is doing but why? > >> > >> From xxhash.h > >> > >> /* note: use after variable declarations */ > >> #ifndef XXH_STATIC_ASSERT > >> # if defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 201112L) /* > >> C11 */ <<<<< > >> # define XXH_STATIC_ASSERT_WITH_MESSAGE(c,m) do { > >> _Static_assert((c),m); } while(0) <<<<< This being picked in error!!! > >> # elif defined(__cplusplus) && (__cplusplus >= 201103L) /* > >> C++11 */ > >> # define XXH_STATIC_ASSERT_WITH_MESSAGE(c,m) do { > >> static_assert((c),m); } while(0) <<<<< Is this correct for Solaris? > >> # else > >> # define XXH_STATIC_ASSERT_WITH_MESSAGE(c,m) do { struct xxh_sa { > >> char x[(c) ? 1 : -1]; }; } while(0) > >> # endif > >> # define XXH_STATIC_ASSERT(c) XXH_STATIC_ASSERT_WITH_MESSAGE((c),#c) > >> #endif > >> > >> Attached is config.out > >> > >> Thanks, > >> Andrew > >> > >> > >> On 5/1/2026 5:27 PM, Martin Simmons wrote: > >>>>>>>> On Fri, 1 May 2026 12:14:09 +0100, Andrew Watkins said: > >>>> Hello, > >>>> > >>>> I was looking at moving to Bacula 15.0.3 on our servers, but it does not > >>>> build on Solaris 11.4 > >>>> > >>>> Version 13.0.4 builds on Solaris. > >>>> > >>>> I get this in xxhash (doesn't look like this is in v13) > >>>> > >>>> In file included from xxhash.c:43: > >>>> xxhash.h: In function 'void XXH32_canonicalFromHash(XXH32_canonical_t*, > >>>> XXH32_hash_t)': > >>>> xxhash.h:1812:54: error: '_Static_assert' was not declared in this > >>>> scope; did you mean 'static_assert'? > >>>> 1812 | # define XXH_STATIC_ASSERT_WITH_MESSAGE(c,m) do { > >>>> _Static_assert((c),m); } while(0) > >>>> | ^~~~~~~~~~~~~~ > >>>> xxhash.h:1818:32: note: in expansion of macro > >>>> 'XXH_STATIC_ASSERT_WITH_MESSAGE' > >>>> 1818 | # define XXH_STATIC_ASSERT(c) > >>>> XXH_STATIC_ASSERT_WITH_MESSAGE((c),#c) > >>>> | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > >>>> xxhash.h:2535:5: note: in expansion of macro 'XXH_STATIC_ASSERT' > >>>> 2535 | XXH_STATIC_ASSERT(sizeof(XXH32_canonical_t) == > >>>> sizeof(XXH32_hash_t)); > >>>> | ^~~~~~~~~~~~~~~~~ > >>> It looks like there is some confusion about C v.s. C++. > >>> > >>> What C++ compiler & version are you using? > >>> > >>> Can you show us the contents of config.out (generated by configure)? > >>> > >>> __Martin > >> -- > >> ***************************************************** > >> ***** Support Req...@dc... ***** > >> ***************************************************** > >> * Andrew Watkins * > >> * Birkbeck, University of London * > >> * Computing and Mathematical Sciences * > >> *https://linkprotect.cudasvc.com/url?a=http%3a%2f%2fnotallmicrosoft.blogspot.com&c=E,1,wm3CK_7eqnUXaHAjzfsRLCBJb57d1tQSxCgVdR7fBUl0EOcqDDZiY3osSJYGGLO5uWR0p9F8P2bQQgDQz0UIDEvkV1Cn0256T-dDtOFVLo4l&typo=1 * > >> ***************************************************** > >> > -- > ***************************************************** > ***** Support Request to...@dc... ***** > ***************************************************** > * Andrew Watkins * > * Birkbeck, University of London * > * Computing and Mathematical Sciences * > *http://notallmicrosoft.blogspot.com * > ***************************************************** > |
|
From: Andrew W. <a.w...@bb...> - 2026-05-13 15:25:32
|
Hi,
Full output of compile below.
I see the problem the libtool is picking this line 1812 in xxhash.h:
# if defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 201112L)
/* C11 */
define XXH_STATIC_ASSERT_WITH_MESSAGE(c,m) do {
*_Static_assert*((c),m); } while(0)
Where it should be "I am gussing" line 1814:
# elif defined(__cplusplus) && (__cplusplus >= 201103L)
/* C++11 */
# define XXH_STATIC_ASSERT_WITH_MESSAGE(c,m) do {
*static_assert*((c),m); } while(0)
The question of how to fix it. Information I have:
# gcc -x c++ /dev/null -E -dD |grep STDC_VERSION
#define __STDC_VERSION__ 201112L
Full output:
$ cd src/lib
$ /home/andrew/src/bacula-15.0.3/libtool --tag=CXX --mode=compile
/usr/gcc/14/bin/g++ -c -x c++ -fno-strict-aliasing -fno-exceptions
-fno-rtti -I. -I.. -g -O2 -W all -m64 -x c++ -fno-strict-aliasing
-fno-exceptions -fno-rtti xxhash.c
libtool: compile: /usr/gcc/14/bin/g++ -c -x c++ -fno-strict-aliasing
-fno-exceptions -fno-rtti -I. -I.. -g -O2 -Wall -m64 -x c++
-fno-strict-aliasing -fno-exceptions -fno-rtti xxhash.c -fPIC -DPIC -o
.libs/xxhash.o
In file included from xxhash.c:43:
*xxhash.h: In function 'void XXH32_canonicalFromHash(XXH32_canonical_t*,
XXH32_hash_t)':*
*xxhash.h:1812:54: error: '_Static_assert' was not declared in this
scope; did you mean 'static_assert'?*
1812 | # define XXH_STATIC_ASSERT_WITH_MESSAGE(c,m) do {
_Static_assert((c),m); } while(0)
| ^~~~~~~~~~~~~~
xxhash.h:1818:32: note: in expansion of macro
'XXH_STATIC_ASSERT_WITH_MESSAGE'
1818 | # define XXH_STATIC_ASSERT(c)
XXH_STATIC_ASSERT_WITH_MESSAGE((c),#c)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
xxhash.h:2535:5: note: in expansion of macro 'XXH_STATIC_ASSERT'
2535 | XXH_STATIC_ASSERT(sizeof(XXH32_canonical_t) ==
sizeof(XXH32_hash_t));
| ^~~~~~~~~~~~~~~~~
xxhash.h: In function 'void XXH64_canonicalFromHash(XXH64_canonical_t*,
XXH64_hash_t)':
xxhash.h:1812:54: error: '_Static_assert' was not declared in this
scope; did you mean 'static_assert'?
1812 | # define XXH_STATIC_ASSERT_WITH_MESSAGE(c,m) do {
_Static_assert((c),m); } while(0)
| ^~~~~~~~~~~~~~
xxhash.h:1818:32: note: in expansion of macro
'XXH_STATIC_ASSERT_WITH_MESSAGE'
1818 | # define XXH_STATIC_ASSERT(c)
XXH_STATIC_ASSERT_WITH_MESSAGE((c),#c)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
xxhash.h:2961:5: note: in expansion of macro 'XXH_STATIC_ASSERT'
2961 | XXH_STATIC_ASSERT(sizeof(XXH64_canonical_t) ==
sizeof(XXH64_hash_t));
| ^~~~~~~~~~~~~~~~~
xxhash.h: In function 'void XXH3_initCustomSecret_sse2(void*, xxh_u64)':
xxhash.h:1812:54: error: '_Static_assert' was not declared in this
scope; did you mean 'static_assert'?
1812 | # define XXH_STATIC_ASSERT_WITH_MESSAGE(c,m) do {
_Static_assert((c),m); } while(0)
| ^~~~~~~~~~~~~~
xxhash.h:1818:32: note: in expansion of macro
'XXH_STATIC_ASSERT_WITH_MESSAGE'
1818 | # define XXH_STATIC_ASSERT(c)
XXH_STATIC_ASSERT_WITH_MESSAGE((c),#c)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
xxhash.h:4383:5: note: in expansion of macro 'XXH_STATIC_ASSERT'
4383 | XXH_STATIC_ASSERT((XXH_SECRET_DEFAULT_SIZE & 15) == 0);
| ^~~~~~~~~~~~~~~~~
xxhash.h: In function 'void XXH3_initCustomSecret_scalar(void*, xxh_u64)':
xxhash.h:1812:54: error: '_Static_assert' was not declared in this
scope; did you mean 'static_assert'?
1812 | # define XXH_STATIC_ASSERT_WITH_MESSAGE(c,m) do {
_Static_assert((c),m); } while(0)
| ^~~~~~~~~~~~~~
xxhash.h:1818:32: note: in expansion of macro
'XXH_STATIC_ASSERT_WITH_MESSAGE'
1818 | # define XXH_STATIC_ASSERT(c)
XXH_STATIC_ASSERT_WITH_MESSAGE((c),#c)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
xxhash.h:4752:5: note: in expansion of macro 'XXH_STATIC_ASSERT'
4752 | XXH_STATIC_ASSERT((XXH_SECRET_DEFAULT_SIZE & 15) == 0);
| ^~~~~~~~~~~~~~~~~
xxhash.h: In function 'XXH64_hash_t XXH3_hashLong_64b_internal(const
void*, std::size_t, const void*, std::size_t, XXH3_f_accumulate_512,
XXH3_f_scrambleAcc)':
xxhash.h:1812:54: error: '_Static_assert' was not declared in this
scope; did you mean 'static_assert'?
1812 | # define XXH_STATIC_ASSERT_WITH_MESSAGE(c,m) do {
_Static_assert((c),m); } while(0)
| ^~~~~~~~~~~~~~
xxhash.h:1818:32: note: in expansion of macro
'XXH_STATIC_ASSERT_WITH_MESSAGE'
1818 | # define XXH_STATIC_ASSERT(c)
XXH_STATIC_ASSERT_WITH_MESSAGE((c),#c)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
xxhash.h:4976:5: note: in expansion of macro 'XXH_STATIC_ASSERT'
4976 | XXH_STATIC_ASSERT(sizeof(acc) == 64);
| ^~~~~~~~~~~~~~~~~
xxhash.h: In function 'XXH_errorcode XXH3_update(XXH3_state_t*, const
xxh_u8*, std::size_t, XXH3_f_accumulate_512, XXH3_f_scrambleAcc)':
xxhash.h:1812:54: error: '_Static_assert' was not declared in this
scope; did you mean 'static_assert'?
1812 | # define XXH_STATIC_ASSERT_WITH_MESSAGE(c,m) do {
_Static_assert((c),m); } while(0)
| ^~~~~~~~~~~~~~
xxhash.h:1818:32: note: in expansion of macro
'XXH_STATIC_ASSERT_WITH_MESSAGE'
1818 | # define XXH_STATIC_ASSERT(c)
XXH_STATIC_ASSERT_WITH_MESSAGE((c),#c)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
xxhash.h:5342:9: note: in expansion of macro 'XXH_STATIC_ASSERT'
5342 | XXH_STATIC_ASSERT(XXH3_INTERNALBUFFER_SIZE % XXH_STRIPE_LEN ==
0); /* clean multiple */
| ^~~~~~~~~~~~~~~~~
xxhash.h: In function 'XXH128_hash_t XXH3_hashLong_128b_internal(const
void*, std::size_t, const xxh_u8*, std::size_t, XXH3_f_accumulate_512,
XXH3_f_scrambleAcc)':
xxhash.h:1812:54: error: '_Static_assert' was not declared in this
scope; did you mean 'static_assert'?
1812 | # define XXH_STATIC_ASSERT_WITH_MESSAGE(c,m) do {
_Static_assert((c),m); } while(0)
| ^~~~~~~~~~~~~~
xxhash.h:1818:32: note: in expansion of macro
'XXH_STATIC_ASSERT_WITH_MESSAGE'
1818 | # define XXH_STATIC_ASSERT(c)
XXH_STATIC_ASSERT_WITH_MESSAGE((c),#c)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
xxhash.h:5768:5: note: in expansion of macro 'XXH_STATIC_ASSERT'
5768 | XXH_STATIC_ASSERT(sizeof(acc) == 64);
| ^~~~~~~~~~~~~~~~~
xxhash.h: In function 'void
XXH128_canonicalFromHash(XXH128_canonical_t*, XXH128_hash_t)':
xxhash.h:1812:54: error: '_Static_assert' was not declared in this
scope; did you mean 'static_assert'?
1812 | # define XXH_STATIC_ASSERT_WITH_MESSAGE(c,m) do {
_Static_assert((c),m); } while(0)
| ^~~~~~~~~~~~~~
xxhash.h:1818:32: note: in expansion of macro
'XXH_STATIC_ASSERT_WITH_MESSAGE'
1818 | # define XXH_STATIC_ASSERT(c)
XXH_STATIC_ASSERT_WITH_MESSAGE((c),#c)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
xxhash.h:6011:5: note: in expansion of macro 'XXH_STATIC_ASSERT'
6011 | XXH_STATIC_ASSERT(sizeof(XXH128_canonical_t) ==
sizeof(XXH128_hash_t));
| ^~~~~~~~~~~~~~~~~
Thanks,
Andrew
On 5/11/2026 5:56 PM, Martin Simmons wrote:
> The config.out looks OK to me.
>
> In particular in:
>
> C Compiler: gcc 13.4.0
> C++ Compiler: /usr/gcc/13/bin/g++ 13.4.0
> Compiler flags: -g -O2 -Wall -m64 -x c++ -fno-strict-aliasing -fno-exceptions -fno-rtti
>
> the -x c++ option is supposed to force the compiler to compile the file as
> C++, so __STDC_VERSION__ should not be defined. That works for gcc/g++ in
> general.
>
> I think you have to investigate the exact command line used to compile
> xxhash.c by doing:
>
> cd src/lib
> make NO_ECHO=
>
> That should make it print the commands so you can check it is using the
> expected compiler and flags. I assume this will give the same error.
>
> If you see it running libtool --silent then try running the same libtool
> command without --silent to see how libtool is invoking the compiler.
>
> __Martin
>
>
>>>>>> On Fri, 1 May 2026 19:57:20 +0100, Andrew Watkins said:
>> Hi,
>>
>> I can see what it is doing but why?
>>
>> From xxhash.h
>>
>> /* note: use after variable declarations */
>> #ifndef XXH_STATIC_ASSERT
>> # if defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 201112L) /*
>> C11 */ <<<<<
>> # define XXH_STATIC_ASSERT_WITH_MESSAGE(c,m) do {
>> _Static_assert((c),m); } while(0) <<<<< This being picked in error!!!
>> # elif defined(__cplusplus) && (__cplusplus >= 201103L) /*
>> C++11 */
>> # define XXH_STATIC_ASSERT_WITH_MESSAGE(c,m) do {
>> static_assert((c),m); } while(0) <<<<< Is this correct for Solaris?
>> # else
>> # define XXH_STATIC_ASSERT_WITH_MESSAGE(c,m) do { struct xxh_sa {
>> char x[(c) ? 1 : -1]; }; } while(0)
>> # endif
>> # define XXH_STATIC_ASSERT(c) XXH_STATIC_ASSERT_WITH_MESSAGE((c),#c)
>> #endif
>>
>> Attached is config.out
>>
>> Thanks,
>> Andrew
>>
>>
>> On 5/1/2026 5:27 PM, Martin Simmons wrote:
>>>>>>>> On Fri, 1 May 2026 12:14:09 +0100, Andrew Watkins said:
>>>> Hello,
>>>>
>>>> I was looking at moving to Bacula 15.0.3 on our servers, but it does not
>>>> build on Solaris 11.4
>>>>
>>>> Version 13.0.4 builds on Solaris.
>>>>
>>>> I get this in xxhash (doesn't look like this is in v13)
>>>>
>>>> In file included from xxhash.c:43:
>>>> xxhash.h: In function 'void XXH32_canonicalFromHash(XXH32_canonical_t*,
>>>> XXH32_hash_t)':
>>>> xxhash.h:1812:54: error: '_Static_assert' was not declared in this
>>>> scope; did you mean 'static_assert'?
>>>> 1812 | # define XXH_STATIC_ASSERT_WITH_MESSAGE(c,m) do {
>>>> _Static_assert((c),m); } while(0)
>>>> | ^~~~~~~~~~~~~~
>>>> xxhash.h:1818:32: note: in expansion of macro
>>>> 'XXH_STATIC_ASSERT_WITH_MESSAGE'
>>>> 1818 | # define XXH_STATIC_ASSERT(c)
>>>> XXH_STATIC_ASSERT_WITH_MESSAGE((c),#c)
>>>> | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>>>> xxhash.h:2535:5: note: in expansion of macro 'XXH_STATIC_ASSERT'
>>>> 2535 | XXH_STATIC_ASSERT(sizeof(XXH32_canonical_t) ==
>>>> sizeof(XXH32_hash_t));
>>>> | ^~~~~~~~~~~~~~~~~
>>> It looks like there is some confusion about C v.s. C++.
>>>
>>> What C++ compiler & version are you using?
>>>
>>> Can you show us the contents of config.out (generated by configure)?
>>>
>>> __Martin
>> --
>> *****************************************************
>> ***** Support Req...@dc... *****
>> *****************************************************
>> * Andrew Watkins *
>> * Birkbeck, University of London *
>> * Computing and Mathematical Sciences *
>> *https://linkprotect.cudasvc.com/url?a=http%3a%2f%2fnotallmicrosoft.blogspot.com&c=E,1,wm3CK_7eqnUXaHAjzfsRLCBJb57d1tQSxCgVdR7fBUl0EOcqDDZiY3osSJYGGLO5uWR0p9F8P2bQQgDQz0UIDEvkV1Cn0256T-dDtOFVLo4l&typo=1 *
>> *****************************************************
>>
--
*****************************************************
***** Support Request to...@dc... *****
*****************************************************
* Andrew Watkins *
* Birkbeck, University of London *
* Computing and Mathematical Sciences *
*http://notallmicrosoft.blogspot.com *
*****************************************************
|
|
From: Martin S. <ma...@li...> - 2026-05-11 16:56:48
|
The config.out looks OK to me.
In particular in:
C Compiler: gcc 13.4.0
C++ Compiler: /usr/gcc/13/bin/g++ 13.4.0
Compiler flags: -g -O2 -Wall -m64 -x c++ -fno-strict-aliasing -fno-exceptions -fno-rtti
the -x c++ option is supposed to force the compiler to compile the file as
C++, so __STDC_VERSION__ should not be defined. That works for gcc/g++ in
general.
I think you have to investigate the exact command line used to compile
xxhash.c by doing:
cd src/lib
make NO_ECHO=
That should make it print the commands so you can check it is using the
expected compiler and flags. I assume this will give the same error.
If you see it running libtool --silent then try running the same libtool
command without --silent to see how libtool is invoking the compiler.
__Martin
>>>>> On Fri, 1 May 2026 19:57:20 +0100, Andrew Watkins said:
>
> Hi,
>
> I can see what it is doing but why?
>
> From xxhash.h
>
> /* note: use after variable declarations */
> #ifndef XXH_STATIC_ASSERT
> # if defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 201112L) /*
> C11 */ <<<<<
> # define XXH_STATIC_ASSERT_WITH_MESSAGE(c,m) do {
> _Static_assert((c),m); } while(0) <<<<< This being picked in error!!!
> # elif defined(__cplusplus) && (__cplusplus >= 201103L) /*
> C++11 */
> # define XXH_STATIC_ASSERT_WITH_MESSAGE(c,m) do {
> static_assert((c),m); } while(0) <<<<< Is this correct for Solaris?
> # else
> # define XXH_STATIC_ASSERT_WITH_MESSAGE(c,m) do { struct xxh_sa {
> char x[(c) ? 1 : -1]; }; } while(0)
> # endif
> # define XXH_STATIC_ASSERT(c) XXH_STATIC_ASSERT_WITH_MESSAGE((c),#c)
> #endif
>
> Attached is config.out
>
> Thanks,
> Andrew
>
>
> On 5/1/2026 5:27 PM, Martin Simmons wrote:
> >>>>>> On Fri, 1 May 2026 12:14:09 +0100, Andrew Watkins said:
> >> Hello,
> >>
> >> I was looking at moving to Bacula 15.0.3 on our servers, but it does not
> >> build on Solaris 11.4
> >>
> >> Version 13.0.4 builds on Solaris.
> >>
> >> I get this in xxhash (doesn't look like this is in v13)
> >>
> >> In file included from xxhash.c:43:
> >> xxhash.h: In function 'void XXH32_canonicalFromHash(XXH32_canonical_t*,
> >> XXH32_hash_t)':
> >> xxhash.h:1812:54: error: '_Static_assert' was not declared in this
> >> scope; did you mean 'static_assert'?
> >> 1812 | # define XXH_STATIC_ASSERT_WITH_MESSAGE(c,m) do {
> >> _Static_assert((c),m); } while(0)
> >> | ^~~~~~~~~~~~~~
> >> xxhash.h:1818:32: note: in expansion of macro
> >> 'XXH_STATIC_ASSERT_WITH_MESSAGE'
> >> 1818 | # define XXH_STATIC_ASSERT(c)
> >> XXH_STATIC_ASSERT_WITH_MESSAGE((c),#c)
> >> | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> >> xxhash.h:2535:5: note: in expansion of macro 'XXH_STATIC_ASSERT'
> >> 2535 | XXH_STATIC_ASSERT(sizeof(XXH32_canonical_t) ==
> >> sizeof(XXH32_hash_t));
> >> | ^~~~~~~~~~~~~~~~~
> > It looks like there is some confusion about C v.s. C++.
> >
> > What C++ compiler & version are you using?
> >
> > Can you show us the contents of config.out (generated by configure)?
> >
> > __Martin
>
> --
> *****************************************************
> ***** Support Request to...@dc... *****
> *****************************************************
> * Andrew Watkins *
> * Birkbeck, University of London *
> * Computing and Mathematical Sciences *
> *http://notallmicrosoft.blogspot.com *
> *****************************************************
>
|
|
From: Andrew W. <a.w...@bb...> - 2026-05-01 18:57:30
|
Hi,
I can see what it is doing but why?
From xxhash.h
/* note: use after variable declarations */
#ifndef XXH_STATIC_ASSERT
# if defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 201112L) /*
C11 */ <<<<<
# define XXH_STATIC_ASSERT_WITH_MESSAGE(c,m) do {
_Static_assert((c),m); } while(0) <<<<< This being picked in error!!!
# elif defined(__cplusplus) && (__cplusplus >= 201103L) /*
C++11 */
# define XXH_STATIC_ASSERT_WITH_MESSAGE(c,m) do {
static_assert((c),m); } while(0) <<<<< Is this correct for Solaris?
# else
# define XXH_STATIC_ASSERT_WITH_MESSAGE(c,m) do { struct xxh_sa {
char x[(c) ? 1 : -1]; }; } while(0)
# endif
# define XXH_STATIC_ASSERT(c) XXH_STATIC_ASSERT_WITH_MESSAGE((c),#c)
#endif
Attached is config.out
Thanks,
Andrew
On 5/1/2026 5:27 PM, Martin Simmons wrote:
>>>>>> On Fri, 1 May 2026 12:14:09 +0100, Andrew Watkins said:
>> Hello,
>>
>> I was looking at moving to Bacula 15.0.3 on our servers, but it does not
>> build on Solaris 11.4
>>
>> Version 13.0.4 builds on Solaris.
>>
>> I get this in xxhash (doesn't look like this is in v13)
>>
>> In file included from xxhash.c:43:
>> xxhash.h: In function 'void XXH32_canonicalFromHash(XXH32_canonical_t*,
>> XXH32_hash_t)':
>> xxhash.h:1812:54: error: '_Static_assert' was not declared in this
>> scope; did you mean 'static_assert'?
>> 1812 | # define XXH_STATIC_ASSERT_WITH_MESSAGE(c,m) do {
>> _Static_assert((c),m); } while(0)
>> | ^~~~~~~~~~~~~~
>> xxhash.h:1818:32: note: in expansion of macro
>> 'XXH_STATIC_ASSERT_WITH_MESSAGE'
>> 1818 | # define XXH_STATIC_ASSERT(c)
>> XXH_STATIC_ASSERT_WITH_MESSAGE((c),#c)
>> | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> xxhash.h:2535:5: note: in expansion of macro 'XXH_STATIC_ASSERT'
>> 2535 | XXH_STATIC_ASSERT(sizeof(XXH32_canonical_t) ==
>> sizeof(XXH32_hash_t));
>> | ^~~~~~~~~~~~~~~~~
> It looks like there is some confusion about C v.s. C++.
>
> What C++ compiler & version are you using?
>
> Can you show us the contents of config.out (generated by configure)?
>
> __Martin
--
*****************************************************
***** Support Request to...@dc... *****
*****************************************************
* Andrew Watkins *
* Birkbeck, University of London *
* Computing and Mathematical Sciences *
*http://notallmicrosoft.blogspot.com *
*****************************************************
|
|
From: Martin S. <ma...@li...> - 2026-05-01 16:28:05
|
>>>>> On Fri, 1 May 2026 12:14:09 +0100, Andrew Watkins said:
>
> Hello,
>
> I was looking at moving to Bacula 15.0.3 on our servers, but it does not
> build on Solaris 11.4
>
> Version 13.0.4 builds on Solaris.
>
> I get this in xxhash (doesn't look like this is in v13)
>
> In file included from xxhash.c:43:
> xxhash.h: In function 'void XXH32_canonicalFromHash(XXH32_canonical_t*,
> XXH32_hash_t)':
> xxhash.h:1812:54: error: '_Static_assert' was not declared in this
> scope; did you mean 'static_assert'?
> 1812 | # define XXH_STATIC_ASSERT_WITH_MESSAGE(c,m) do {
> _Static_assert((c),m); } while(0)
> | ^~~~~~~~~~~~~~
> xxhash.h:1818:32: note: in expansion of macro
> 'XXH_STATIC_ASSERT_WITH_MESSAGE'
> 1818 | # define XXH_STATIC_ASSERT(c)
> XXH_STATIC_ASSERT_WITH_MESSAGE((c),#c)
> | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> xxhash.h:2535:5: note: in expansion of macro 'XXH_STATIC_ASSERT'
> 2535 | XXH_STATIC_ASSERT(sizeof(XXH32_canonical_t) ==
> sizeof(XXH32_hash_t));
> | ^~~~~~~~~~~~~~~~~
It looks like there is some confusion about C v.s. C++.
What C++ compiler & version are you using?
Can you show us the contents of config.out (generated by configure)?
__Martin
|
|
From: Andrew W. <a.w...@bb...> - 2026-05-01 14:50:44
|
Hello,
I was looking at moving to Bacula 15.0.3 on our servers, but it does not
build on Solaris 11.4
Version 13.0.4 builds on Solaris.
I get this in xxhash (doesn't look like this is in v13)
In file included from xxhash.c:43:
xxhash.h: In function 'void XXH32_canonicalFromHash(XXH32_canonical_t*,
XXH32_hash_t)':
xxhash.h:1812:54: error: '_Static_assert' was not declared in this
scope; did you mean 'static_assert'?
1812 | # define XXH_STATIC_ASSERT_WITH_MESSAGE(c,m) do {
_Static_assert((c),m); } while(0)
| ^~~~~~~~~~~~~~
xxhash.h:1818:32: note: in expansion of macro
'XXH_STATIC_ASSERT_WITH_MESSAGE'
1818 | # define XXH_STATIC_ASSERT(c)
XXH_STATIC_ASSERT_WITH_MESSAGE((c),#c)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
xxhash.h:2535:5: note: in expansion of macro 'XXH_STATIC_ASSERT'
2535 | XXH_STATIC_ASSERT(sizeof(XXH32_canonical_t) ==
sizeof(XXH32_hash_t));
| ^~~~~~~~~~~~~~~~~
xxhash.h: In function 'void XXH64_canonicalFromHash(XXH64_canonical_t*,
XXH64_hash_t)':
xxhash.h:1812:54: error: '_Static_assert' was not declared in this
scope; did you mean 'static_assert'?
1812 | # define XXH_STATIC_ASSERT_WITH_MESSAGE(c,m) do {
_Static_assert((c),m); } while(0)
| ^~~~~~~~~~~~~~
xxhash.h:1818:32: note: in expansion of macro
'XXH_STATIC_ASSERT_WITH_MESSAGE'
1818 | # define XXH_STATIC_ASSERT(c)
XXH_STATIC_ASSERT_WITH_MESSAGE((c),#c)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
xxhash.h:2961:5: note: in expansion of macro 'XXH_STATIC_ASSERT'
2961 | XXH_STATIC_ASSERT(sizeof(XXH64_canonical_t) ==
sizeof(XXH64_hash_t));
| ^~~~~~~~~~~~~~~~~
xxhash.h: In function 'void XXH3_initCustomSecret_sse2(void*, xxh_u64)':
xxhash.h:1812:54: error: '_Static_assert' was not declared in this
scope; did you mean 'static_assert'?
1812 | # define XXH_STATIC_ASSERT_WITH_MESSAGE(c,m) do {
_Static_assert((c),m); } while(0)
| ^~~~~~~~~~~~~~
xxhash.h:1818:32: note: in expansion of macro
'XXH_STATIC_ASSERT_WITH_MESSAGE'
1818 | # define XXH_STATIC_ASSERT(c)
XXH_STATIC_ASSERT_WITH_MESSAGE((c),#c)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
xxhash.h:4383:5: note: in expansion of macro 'XXH_STATIC_ASSERT'
4383 | XXH_STATIC_ASSERT((XXH_SECRET_DEFAULT_SIZE & 15) == 0);
| ^~~~~~~~~~~~~~~~~
xxhash.h: In function 'void XXH3_initCustomSecret_scalar(void*, xxh_u64)':
xxhash.h:1812:54: error: '_Static_assert' was not declared in this
scope; did you mean 'static_assert'?
1812 | # define XXH_STATIC_ASSERT_WITH_MESSAGE(c,m) do {
_Static_assert((c),m); } while(0)
| ^~~~~~~~~~~~~~
xxhash.h:1818:32: note: in expansion of macro
'XXH_STATIC_ASSERT_WITH_MESSAGE'
1818 | # define XXH_STATIC_ASSERT(c)
XXH_STATIC_ASSERT_WITH_MESSAGE((c),#c)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
xxhash.h:4752:5: note: in expansion of macro 'XXH_STATIC_ASSERT'
4752 | XXH_STATIC_ASSERT((XXH_SECRET_DEFAULT_SIZE & 15) == 0);
| ^~~~~~~~~~~~~~~~~
xxhash.h: In function 'XXH64_hash_t XXH3_hashLong_64b_internal(const
void*, std::size_t, const void*, std::size_t, XXH3_f_accumulate_512,
XXH3_f_scrambleAcc)':
xxhash.h:1812:54: error: '_Static_assert' was not declared in this
scope; did you mean 'static_assert'?
1812 | # define XXH_STATIC_ASSERT_WITH_MESSAGE(c,m) do {
_Static_assert((c),m); } while(0)
| ^~~~~~~~~~~~~~
xxhash.h:1818:32: note: in expansion of macro
'XXH_STATIC_ASSERT_WITH_MESSAGE'
1818 | # define XXH_STATIC_ASSERT(c)
XXH_STATIC_ASSERT_WITH_MESSAGE((c),#c)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
xxhash.h:4976:5: note: in expansion of macro 'XXH_STATIC_ASSERT'
4976 | XXH_STATIC_ASSERT(sizeof(acc) == 64);
| ^~~~~~~~~~~~~~~~~
xxhash.h: In function 'XXH_errorcode XXH3_update(XXH3_state_t*, const
xxh_u8*, std::size_t, XXH3_f_accumulate_512, XXH3_f_scrambleAcc)':
xxhash.h:1812:54: error: '_Static_assert' was not declared in this
scope; did you mean 'static_assert'?
1812 | # define XXH_STATIC_ASSERT_WITH_MESSAGE(c,m) do {
_Static_assert((c),m); } while(0)
| ^~~~~~~~~~~~~~
xxhash.h:1818:32: note: in expansion of macro
'XXH_STATIC_ASSERT_WITH_MESSAGE'
1818 | # define XXH_STATIC_ASSERT(c)
XXH_STATIC_ASSERT_WITH_MESSAGE((c),#c)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
xxhash.h:5342:9: note: in expansion of macro 'XXH_STATIC_ASSERT'
5342 | XXH_STATIC_ASSERT(XXH3_INTERNALBUFFER_SIZE %
XXH_STRIPE_LEN == 0); /* clean multiple */
| ^~~~~~~~~~~~~~~~~
xxhash.h: In function 'XXH128_hash_t XXH3_hashLong_128b_internal(const
void*, std::size_t, const xxh_u8*, std::size_t, XXH3_f_accumulate_512,
XXH3_f_scrambleAcc)':
xxhash.h:1812:54: error: '_Static_assert' was not declared in this
scope; did you mean 'static_assert'?
1812 | # define XXH_STATIC_ASSERT_WITH_MESSAGE(c,m) do {
_Static_assert((c),m); } while(0)
| ^~~~~~~~~~~~~~
xxhash.h:1818:32: note: in expansion of macro
'XXH_STATIC_ASSERT_WITH_MESSAGE'
1818 | # define XXH_STATIC_ASSERT(c)
XXH_STATIC_ASSERT_WITH_MESSAGE((c),#c)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
xxhash.h:5768:5: note: in expansion of macro 'XXH_STATIC_ASSERT'
5768 | XXH_STATIC_ASSERT(sizeof(acc) == 64);
| ^~~~~~~~~~~~~~~~~
xxhash.h: In function 'void
XXH128_canonicalFromHash(XXH128_canonical_t*, XXH128_hash_t)':
xxhash.h:1812:54: error: '_Static_assert' was not declared in this
scope; did you mean 'static_assert'?
1812 | # define XXH_STATIC_ASSERT_WITH_MESSAGE(c,m) do {
_Static_assert((c),m); } while(0)
| ^~~~~~~~~~~~~~
xxhash.h:1818:32: note: in expansion of macro
'XXH_STATIC_ASSERT_WITH_MESSAGE'
1818 | # define XXH_STATIC_ASSERT(c)
XXH_STATIC_ASSERT_WITH_MESSAGE((c),#c)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
xxhash.h:6011:5: note: in expansion of macro 'XXH_STATIC_ASSERT'
6011 | XXH_STATIC_ASSERT(sizeof(XXH128_canonical_t) ==
sizeof(XXH128_hash_t));
| ^~~~~~~~~~~~~~~~~
Any thoughts?
Andrew
--
*****************************************************
***** Support Request to...@dc... *****
*****************************************************
* Andrew Watkins *
* Birkbeck, University of London *
* Computing and Mathematical Sciences *
*http://notallmicrosoft.blogspot.com *
*****************************************************
|
|
From: Eric B. <er...@ba...> - 2026-04-02 07:04:13
|
Hello Dan, Thanks Best Regards, Eric On 4/1/26 22:00, Dan Langille wrote: > Hello, > > The attached patch fixes the build for check_bacula on FreeBSD 16 - conio.c should be including this but isn't. Respected sources say "looks like a change caused by FreeBSD 16 upgrading to ncurses 6.6, so it will probably affect other OSes at some point too." > > The build error I get: > > conio.c:150:23: error: variable has incomplete type 'struct termios' > 150 | static struct termios old_term_params; > | ^ > conio.c:150:15: note: forward declaration of 'termios' > 150 | static struct termios old_term_params; > | ^ > conio.c:939:19: error: variable has incomplete type 'struct termios' > 939 | struct termios t; > > I'm running this patch under FreeBSD 15 without error. > > re https://sourceforge.net/p/bacula/mailman/message/59288082/ (which incorrectly says FreeBSD 15, not 16) > > > > _______________________________________________ > Bacula-devel mailing list > Bac...@li... > https://lists.sourceforge.net/lists/listinfo/bacula-devel |
|
From: Dan L. <da...@la...> - 2026-04-01 20:01:00
|
Hello,
The attached patch fixes the build for check_bacula on FreeBSD 16 - conio.c should be including this but isn't. Respected sources say "looks like a change caused by FreeBSD 16 upgrading to ncurses 6.6, so it will probably affect other OSes at some point too."
The build error I get:
conio.c:150:23: error: variable has incomplete type 'struct termios'
150 | static struct termios old_term_params;
| ^
conio.c:150:15: note: forward declaration of 'termios'
150 | static struct termios old_term_params;
| ^
conio.c:939:19: error: variable has incomplete type 'struct termios'
939 | struct termios t;
I'm running this patch under FreeBSD 15 without error.
re https://sourceforge.net/p/bacula/mailman/message/59288082/ (which incorrectly says FreeBSD 15, not 16)
--
Dan Langille
da...@la... |