Opened 3 months ago
Last modified 3 months ago
#72993 assigned defect
lftp @4.9.3: error: expected ','
| Reported by: | ryandesign (Ryan Carsten Schmidt) | Owned by: | Schamschula (Marius Schamschula) |
|---|---|---|---|
| Priority: | Normal | Milestone: | |
| Component: | ports | Version: | 2.11.5 |
| Keywords: | lion mountainlion mavericks | Cc: | |
| Port: | lftp |
Description
- https://build.macports.org/builders/ports-10.7_x86_64-builder/builds/228038/steps/install-port/logs/stdio
- https://build.macports.org/builders/ports-10.8_x86_64-builder/builds/213244/steps/install-port/logs/stdio
- https://build.macports.org/builders/ports-10.9_x86_64-builder/builds/313166/steps/install-port/logs/stdio
In file included from Torrent.cc:32:
../lib/dirent.h:100:36: error: expected ','
&& DT_SOCK != DT_WHT);
^
Change History (2)
comment:1 Changed 3 months ago by ryandesign (Ryan Carsten Schmidt)
comment:2 Changed 3 months ago by ryandesign (Ryan Carsten Schmidt)
This port does not indicate a required C++ standard but it uses -std=gnu++11. Fixes would seem to be either:
- set
compiler.cxx_standard 2011and add the second string parameter to eachstatic_assert(there are tons), or - set
compiler.cxx_standard 2017and arrange for-std=gnu++17to be used instead.
Interesting: the log also says:
checking for static_assert... no
So what's it using then?
Note: See
TracTickets for help on using
tickets.

The indicated line is the end of a
static_assert:From what I can tell, when
static_assertwas introduced in C++11, it required a second (string) parameter. In C++17 the second parameter became optional.I reported it to the developer here: https://github.com/lavv17/lftp/issues/766